Skip to content

Commit eb93720

Browse files
committed
coredump: move revert_cred() before coredump_cleanup()
There's no need to pin the credentials across the coredump_cleanup() call. Nothing in there depends on elevated credentials. Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-5-b447b82f2c9b@kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent b7b4f75 commit eb93720

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/coredump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,8 +1197,8 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
11971197
}
11981198

11991199
close_fail:
1200-
coredump_cleanup(&cn, &cprm);
12011200
revert_creds(old_cred);
1201+
coredump_cleanup(&cn, &cprm);
12021202
return;
12031203
}
12041204

0 commit comments

Comments
 (0)