mirror_zfs/module/os/linux/zfs
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
..
abd_os.c
arc_os.c
mmp_os.c
policy.c
qat_compress.c
qat_crypt.c
qat.c
spa_misc_os.c
trace.c
vdev_disk.c
vdev_file.c
zfs_acl.c
zfs_ctldir.c
zfs_debug.c
zfs_dir.c
zfs_file_os.c
zfs_ioctl_os.c
zfs_racct.c
zfs_sysfs.c
zfs_uio.c
zfs_vfsops.c
zfs_vnops_os.c
zfs_znode_os.c
zio_crypt.c
zpl_ctldir.c
zpl_export.c
zpl_file_range.c
zpl_file.c
zpl_inode.c
zpl_super.c Linux: Fix zfs_prune panics 2024-11-26 09:55:29 -08:00
zpl_xattr.c
zvol_os.c