HomeFreeBSD

Fix a potential use-after-free in zfs_setsecattr()

Description

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

Details

Provenance
markjAuthored on Jan 9 2024, 11:57 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 12 2024, 7:52 PM
Parents
rGd8b2686603b6: Linux: Defer loading the object set in zfs_setattr()
Branches
Unknown
Tags
Unknown