]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
coredump: rename do_coredump() to vfs_coredump()
authorChristian Brauner <brauner@kernel.org>
Thu, 12 Jun 2025 13:25:23 +0000 (15:25 +0200)
committerChristian Brauner <brauner@kernel.org>
Mon, 16 Jun 2025 15:01:22 +0000 (17:01 +0200)
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>
Documentation/security/credentials.rst
Documentation/translations/zh_CN/security/credentials.rst
fs/coredump.c
include/linux/coredump.h
kernel/signal.c

index 2aa0791bcefe4c4a9de149317ffd55921f91a1be..d0191c8b8060edb7b272402c019cff941ec22743 100644 (file)
@@ -555,5 +555,5 @@ the VFS, and that can be done by calling into such as ``vfs_mkdir()`` with a
 different set of credentials.  This is done in the following places:
 
  * ``sys_faccessat()``.
- * ``do_coredump()``.
+ * ``vfs_coredump()``.
  * nfs4recover.c.
index 91c353dfb62217dcba5da649c79cb51e3030a001..88fcd9152ffe91d79fc10bfc7b2a37d301b4938a 100644 (file)
@@ -475,5 +475,5 @@ const指针上操作,因此不需要进行类型转换,但需要临时放弃
 如 ``vfs_mkdir()`` 来实现。以下是一些进行此操作的位置:
 
  * ``sys_faccessat()``.
- * ``do_coredump()``.
+ * ``vfs_coredump()``.
  * nfs4recover.c.
index 52efd1b342615f14b1128feb99da3d689953454a..8a401eeee940de363d3c2da4389d3694c5cf8e7a 100644 (file)
@@ -865,7 +865,7 @@ static inline void coredump_sock_wait(struct file *file) { }
 static inline void coredump_sock_shutdown(struct file *file) { }
 #endif
 
-void do_coredump(const kernel_siginfo_t *siginfo)
+void vfs_coredump(const kernel_siginfo_t *siginfo)
 {
        struct core_state core_state;
        struct core_name cn;
index 76e41805b92de9a92c8288f00c0fb7251e9be37a..96e8a66da133cf0c8f180bdb9d704226fab33adb 100644 (file)
@@ -43,7 +43,7 @@ extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
 extern int dump_align(struct coredump_params *cprm, int align);
 int dump_user_range(struct coredump_params *cprm, unsigned long start,
                    unsigned long len);
-extern void do_coredump(const kernel_siginfo_t *siginfo);
+extern void vfs_coredump(const kernel_siginfo_t *siginfo);
 
 /*
  * Logging for the coredump code, ratelimited.
@@ -63,7 +63,7 @@ extern void do_coredump(const kernel_siginfo_t *siginfo);
 #define coredump_report_failure(fmt, ...) __COREDUMP_PRINTK(KERN_WARNING, fmt, ##__VA_ARGS__)
 
 #else
-static inline void do_coredump(const kernel_siginfo_t *siginfo) {}
+static inline void vfs_coredump(const kernel_siginfo_t *siginfo) {}
 
 #define coredump_report(...)
 #define coredump_report_failure(...)
index 148082db9a553dc1cbdb384b9bfbee7889fff06c..e2c928de7d2c14b90a4920fd2bc2c4c0ed95e758 100644 (file)
@@ -3016,7 +3016,7 @@ relock:
                         * first and our do_group_exit call below will use
                         * that value and ignore the one we pass it.
                         */
-                       do_coredump(&ksig->info);
+                       vfs_coredump(&ksig->info);
                }
 
                /*