diff options
| author | 2026-09-03 02:21:00 +0200 | |
|---|---|---|
| committer | 2026-09-04 12:56:04 +0200 | |
| commit | 8d01d6b4c17c406f37a9b6edac93dfb858af30d0 (patch) | |
| tree | e9fd385663dfcd022c11541be02a4ccd15c079b7 /scripts/Makefile.thinlto | |
| parent | chardev: check return value of kobject_set_name() in __register_chrdev() (diff) | |
fs_pin: publish pins with RCU list helpers
pin_insert() initializes a pin before adding it under pin_lock. The kill
paths read the list heads under RCU without taking that lock. Plain hlist
insertion does not publish the earlier initialization to those readers.
KCSAN weak-memory checking reported acct_on() callback initialization
racing with pin_kill() after the superblock-list publication. The
corresponding LKMM model permits the stale read with plain publication;
the RCU release/acquire pair forbids it.
Use the RCU hlist add and dereference helpers for both pin lists.
Fixes: 2798d4ce6160 ("acct: get rid of acct_lock for acct->count")
Cc: stable@vger.kernel.org
Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com>
Link: https://patch.msgid.link/20260903002100.34822-1-kmehltretter@gmail.com
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
