aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorAmir Goldstein <[email protected]>2024-04-16 21:14:52 +0300
committerJan Kara <[email protected]>2024-04-17 15:06:50 +0200
commit795bb82d12a16a4cee42845b0e4c7e3276574e5d (patch)
treee82347600c4058d7e4c08ca42d7afd9af065405a /scripts/rustdoc_test_builder.rs
parenta5e57b4d370c6d320e5bfb0c919fe00aee29e039 (diff)
fsnotify: fix UAF from FS_ERROR event on a shutting down filesystem
Protect against use after free when filesystem calls fsnotify_sb_error() during fs shutdown. Move freeing of sb->s_fsnotify_info to destroy_super_work(), because it may be accessed from fs shutdown context. Reported-by: [email protected] Suggested-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/linux-fsdevel/20240416173211.4lnmgctyo4jn5fha@quack3/ Fixes: 07a3b8d0bf72 ("fsnotify: lazy attach fsnotify_sb_info state to sb") Reviewed-by: Christian Brauner <[email protected]> Signed-off-by: Amir Goldstein <[email protected]> Signed-off-by: Jan Kara <[email protected]> Message-Id: <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions