summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2026-04-10 11:09:18 +0300
committerChristian Brauner <brauner@kernel.org>2026-05-21 14:39:33 +0300
commit9f93417af489f74739c9434c4c43557ccc07d222 (patch)
tree027dedf472515445ea60a6ada1f03775b71d87a9 /scripts/Makefile.thinlto
parent0447533faeeefc02c2979abf46c4dcbbbe6d9871 (diff)
downloadlinux-9f93417af489f74739c9434c4c43557ccc07d222.tar.xz
fs/coredump: reduce redundant log noise in validate_coredump_safety
Currently, writing to 'core_pattern' or 'suid_dumpable' sysctl nodes always triggers validate_coredump_safety(), even if the values have not changed. This results in redundant warning messages in dmesg: "Unsafe core_pattern used with fs.suid_dumpable=2..." This patch optimizes the procfs handlers to only invoke the safety validation when an actual change in the configuration is detected: 1. In proc_dostring_coredump(), compare the new core_pattern string with the existing one using strncmp(). 2. In proc_dointvec_minmax_coredump(), check if the new suid_dumpable value differs from the previous one. This keeps the kernel log clean from repetitive warnings when re-applying the same sysctl settings. Signed-off-by: Li RongQing <lirongqing@baidu.com> Link: https://patch.msgid.link/20260410080918.2319-1-lirongqing@baidu.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions