Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close possible zfs_znode_held() race
Check if the lock is held while holding the z_hold_locks() lock. This prevents a possible use-after-free bug for callers which are not holding the lock. There currently are no such callers so this can't cause a problem today but it has been fixed regardless. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <tuxoko@gmail.com> Closes openzfs#4244 Issue openzfs#4124
- Loading branch information