]> git.proxmox.com Git - mirror_zfs.git/commit
Fix a potential use-after-free in zfs_setsecattr()
authorMark Johnston <markj@FreeBSD.org>
Tue, 9 Jan 2024 23:57:09 +0000 (18:57 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 12 Jan 2024 19:52:18 +0000 (11:52 -0800)
commit1a11ad9d20ab115b5d53f038f97a25d59a6bb5cf
tree79c911b988c54399cd320342c6c2566693039c82
parentd8b2686603b6fcb7754b5852ad6824fb078c56a7
Fix a potential use-after-free in zfs_setsecattr()

In general, VOPs must not load the "z_log" field until having called
zfs_enter_verify_zp().

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Mark Johnston <markj@FreeBSD.org>
Closes #15752
module/zfs/zfs_vnops.c