]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
coredump: pass struct linux_binfmt as const
authorChristian Brauner <brauner@kernel.org>
Mon, 3 Nov 2025 14:57:32 +0000 (15:57 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 5 Nov 2025 22:11:51 +0000 (23:11 +0100)
We don't actually modify it.

Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-6-b447b82f2c9b@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/coredump.c

index 4fce2a2f279c0489e29c225b4b1bac046014552e..590360ba0a28f9844e2a7456d407dff95868d74b 100644 (file)
@@ -1036,7 +1036,7 @@ static bool coredump_pipe(struct core_name *cn, struct coredump_params *cprm,
 
 static bool coredump_write(struct core_name *cn,
                          struct coredump_params *cprm,
-                         struct linux_binfmt *binfmt)
+                         const struct linux_binfmt *binfmt)
 {
 
        if (dump_interrupted())
@@ -1093,7 +1093,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
        struct core_state core_state;
        struct core_name cn;
        struct mm_struct *mm = current->mm;
-       struct linux_binfmt *binfmt = mm->binfmt;
+       const struct linux_binfmt *binfmt = mm->binfmt;
        const struct cred *old_cred;
        int argc = 0;
        struct coredump_params cprm = {