Files
mirror_zfs/module/os/linux/zfs
Chunwei Chen c6dab6dd39 Fix unprotected zfs_znode_dmu_fini
In original code, zfs_znode_dmu_fini is called in zfs_rmnode without
zfs_znode_hold_enter. It seems to assume it's ok to do so when the znode
is unlinked. However this assumption is not correct, as zfs_zget can be
called by NFS through zpl_fh_to_dentry as pointed out by Christian in
https://github.com/openzfs/zfs/pull/12767, which could result in a
use-after-free bug.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Chunwei Chen <david.chen@nutanix.com>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #12767 
Closes #14364
2023-01-19 16:59:05 -08:00
..
2022-10-26 15:08:31 -07:00
2023-01-19 16:59:05 -08:00
2022-10-29 13:05:11 -07:00
2023-01-19 16:59:05 -08:00
2022-11-30 13:45:53 -08:00
2022-10-19 11:17:09 -07:00