mirror_zfs/include/os/linux
Rob Norris d34fd6cff3 Linux 7.0: posix_acl_to_xattr() now allocates memory
Kernel devs noted that almost all callers to posix_acl_to_xattr() would
check the ACL value size and allocate a buffer before make the call. To
reduce the repetition, they've changed it to allocate this buffer
internally and return it.

Unfortunately that's not true for us; most of our calls are from
xattr_handler->get() to convert a stored ACL to an xattr, and that call
provides a buffer. For now we have no other option, so this commit
detects the new version and wraps to copy the value back into the
provided buffer and then free it.

Sponsored-by: TrueNAS
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Closes #18216
2026-02-23 09:44:48 -08:00
..
kernel/linux Linux 7.0: posix_acl_to_xattr() now allocates memory 2026-02-23 09:44:48 -08:00
spl kmem: don't add __GFP_COMP for KM_VMEM allocations 2025-12-23 12:54:34 -08:00
zfs/sys debug: move all of the debug bits out of the spl 2025-11-12 10:02:51 -08:00
Makefile.am build: add SPDX license tags to build system files 2026-01-08 15:08:03 -08:00