HomeFreeBSD

skip permission checks for extended attributes

Description

skip permission checks for extended attributes

zfs_zaccess_trivial() calls the generic_permission() to read
xattr attributes. This causes deadlock if called from
zpl_xattr_set_dir() context as xattr and the dent locks are
already held in this scenario. This commit skips the permissions
checks for extended attributes since the Linux VFS stack already
checks it before passing us the control.

Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>

Details

Provenance
Ameer Hamza <ahamza@ixsystems.com>Authored on Nov 22 2022, 8:28 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 5 2023, 7:10 PM
Parents
rGd0f350c96232: Allow receiver to override encryption properties in case of replication
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG75fbe7eb99c3: skip permission checks for extended attributes (authored by Ameer Hamza <ahamza@ixsystems.com>).Jan 5 2023, 7:10 PM