Rob Norris
ffa0a5af30
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-04-23 14:31:09 -07:00
..
2018-05-29 14:51:39 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2025-03-13 17:57:12 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2020-07-10 14:26:12 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:31:09 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:31:04 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:30:53 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:30:53 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:29:46 -07:00
2026-04-23 14:30:58 -07:00
2026-04-23 14:29:46 -07:00