summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJianlin Shi <shijianlin11@foxmail.com>2026-06-15 10:27:41 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-08-13 15:42:04 -0700
commit36969d97fea854b524784e486322325f6d2c74cb (patch)
tree0366fd3b28bcbc21107e40b5b82b68576d8058a4 /scripts/Makefile.thinlto
parent9f121705503a17007777adfa609df46bb7c35be0 (diff)
downloadlinux-stable-36969d97fea854b524784e486322325f6d2c74cb.tar.gz
linux-stable-36969d97fea854b524784e486322325f6d2c74cb.zip
ipc: only destroy orphaned shm segments on sysctl write
proc_ipc_dointvec_minmax_orphans() currently calls shm_destroy_orphaned() whenever shm_rmid_forced is set, including on sysctl reads. Reading /proc/sys/kernel/shm_rmid_forced should not take shm_ids rwsem for write and walk all segments. Only run the cleanup when the sysctl is written and the forced RMID policy is enabled. When shm_rmid_forced=1, monitoring tools that read /proc/sys/kernel/shm_rmid_forced trigger the cleanup on every read. Link: https://lore.kernel.org/all/?q=only+destroy+orphaned+shm+segments+on+sysctl+write Link: https://lore.kernel.org/tencent_738A8BC6E9EA205F555E4B0DAA154D4F8E0A@qq.com Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com> Acked-by: Davidlohr Bueso <dave@stgolabs.net> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions