mirror_zfs/module/os
Pavel Snajdr 0f86fcc2a7 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-26 09:55:29 -08:00
..
freebsd FreeBSD: Add missing memory reclamation accounting 2024-11-26 09:55:29 -08:00
linux Linux: Fix zfs_prune panics 2024-11-26 09:55:29 -08:00