summaryrefslogtreecommitdiff
path: root/mm/Kconfig.debug
diff options
context:
space:
mode:
authorEnzo Matsumiya <ematsumiya@suse.de>2025-09-29 18:08:24 -0300
committerEnzo Matsumiya <ematsumiya@suse.de>2025-10-02 12:14:02 -0300
commita4c019bf68fcd681cf2903d7e056a6e707d5f8e6 (patch)
tree6c6dc95ecc75f144796571db5252e3e1fbb02892 /mm/Kconfig.debug
parent847699805691dcb4c48ad281e5ec00611be7119f (diff)
downloadlinux-a4c019bf68fcd681cf2903d7e056a6e707d5f8e6.tar.gz
linux-a4c019bf68fcd681cf2903d7e056a6e707d5f8e6.tar.bz2
linux-a4c019bf68fcd681cf2903d7e056a6e707d5f8e6.zip
smb: client: rework cached dirs synchronization
This patch adds usage of RCU and seqlocks for cached dir (list and entries). Traversing the list under RCU allows faster lookups (no locks) and also guarantees that entries being read are not gone (i.e. prevents UAF). seqlocks provides atomicity/consistency when reading entries, allowing callers to re-check cfid in case of write-side invalidation. Combined with refcounting, this new approach provides safety for callers and flexibility for future enhancements. Other: - now that we can inform lookups of cfid changes, set cfid->dentry earlier in open_cached_dir() to allow by-dentry lookups to find this cfid Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions