mirror_zfs/module/os/linux
Pavel Snajdr 38c0324c0f
Linux: Fix zfs_prune panics
by protecting against sb->s_shrink eviction on umount with newer kernels

deactivate_locked_super calls shrinker_free and only then
sops->kill_sb cb, resulting in UAF on umount when trying
to reach for the shrinker functions in zpl_prune_sb of
in-umount dataset

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Adam Moss <c@yotes.com>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Closes #16770
2024-11-21 15:30:43 -08:00
..
spl config: fix dequeue_signal check for kernels <4.20 2024-10-20 19:50:13 -07:00
zfs Linux: Fix zfs_prune panics 2024-11-21 15:30:43 -08:00