Skip to content

Commit 70e3ee3

Browse files
committed
coredump: rename do_coredump() to vfs_coredump()
Align the naming with the rest of our helpers exposed outside of core vfs. Link: https://lore.kernel.org/20250612-work-coredump-massage-v1-9-315c0c34ba94@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent 8a25350 commit 70e3ee3

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

Documentation/security/credentials.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,5 +555,5 @@ the VFS, and that can be done by calling into such as ``vfs_mkdir()`` with a
555555
different set of credentials. This is done in the following places:
556556

557557
* ``sys_faccessat()``.
558-
* ``do_coredump()``.
558+
* ``vfs_coredump()``.
559559
* nfs4recover.c.

Documentation/translations/zh_CN/security/credentials.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,5 +475,5 @@ const指针上操作,因此不需要进行类型转换,但需要临时放弃
475475
如 ``vfs_mkdir()`` 来实现。以下是一些进行此操作的位置:
476476

477477
* ``sys_faccessat()``.
478-
* ``do_coredump()``.
478+
* ``vfs_coredump()``.
479479
* nfs4recover.c.

fs/coredump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ static inline void coredump_sock_wait(struct file *file) { }
865865
static inline void coredump_sock_shutdown(struct file *file) { }
866866
#endif
867867

868-
void do_coredump(const kernel_siginfo_t *siginfo)
868+
void vfs_coredump(const kernel_siginfo_t *siginfo)
869869
{
870870
struct core_state core_state;
871871
struct core_name cn;

include/linux/coredump.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
4343
extern int dump_align(struct coredump_params *cprm, int align);
4444
int dump_user_range(struct coredump_params *cprm, unsigned long start,
4545
unsigned long len);
46-
extern void do_coredump(const kernel_siginfo_t *siginfo);
46+
extern void vfs_coredump(const kernel_siginfo_t *siginfo);
4747

4848
/*
4949
* Logging for the coredump code, ratelimited.
@@ -63,7 +63,7 @@ extern void do_coredump(const kernel_siginfo_t *siginfo);
6363
#define coredump_report_failure(fmt, ...) __COREDUMP_PRINTK(KERN_WARNING, fmt, ##__VA_ARGS__)
6464

6565
#else
66-
static inline void do_coredump(const kernel_siginfo_t *siginfo) {}
66+
static inline void vfs_coredump(const kernel_siginfo_t *siginfo) {}
6767

6868
#define coredump_report(...)
6969
#define coredump_report_failure(...)

kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,7 @@ bool get_signal(struct ksignal *ksig)
30163016
* first and our do_group_exit call below will use
30173017
* that value and ignore the one we pass it.
30183018
*/
3019-
do_coredump(&ksig->info);
3019+
vfs_coredump(&ksig->info);
30203020
}
30213021

30223022
/*

0 commit comments

Comments
 (0)