aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorPaul Aurich <[email protected]>2025-05-07 05:28:09 +0000
committerSteve French <[email protected]>2025-05-07 20:24:46 +0000
commit3ca02e63edccb78ef3659bebc68579c7224a6ca2 (patch)
tree91bc586c7988d6550311fe7382f6352b09ea5dd2 /lib/netdev-notifier-error-inject.c
parentsmb3 client: warn when parse contexts returns error on compounded operation (diff)
downloadkernel-3ca02e63edccb78ef3659bebc68579c7224a6ca2.tar.gz
kernel-3ca02e63edccb78ef3659bebc68579c7224a6ca2.zip
smb: client: Avoid race in open_cached_dir with lease breaks
A pre-existing valid cfid returned from find_or_create_cached_dir might race with a lease break, meaning open_cached_dir doesn't consider it valid, and thinks it's newly-constructed. This leaks a dentry reference if the allocation occurs before the queued lease break work runs. Avoid the race by extending holding the cfid_list_lock across find_or_create_cached_dir and when the result is checked. Cc: [email protected] Reviewed-by: Henrique Carvalho <[email protected]> Signed-off-by: Paul Aurich <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions