fs/super.c: don't drop ->s_user_ns until we free struct super_block itself
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 2 Feb 2024 02:10:01 +0000 (21:10 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 25 Feb 2024 07:10:31 +0000 (02:10 -0500)
commit583340de1d8b2d6a474eccd5e7d9f7f42f061e1b
tree9f7f3710f5c5231630bd81bf8cf5951c134714c8
parent6613476e225e090cc9aad49be7fa504e290dd33d
fs/super.c: don't drop ->s_user_ns until we free struct super_block itself

Avoids fun races in RCU pathwalk...  Same goes for freeing LSM shite
hanging off super_block's arse.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/super.c