vfs_acl_xattr: Fix NULL dereference in listxattr size queries

Return the backend size for size-only listxattr queries before scanning the unpopulated buffer. Add regression coverage for empty and nonempty attribute lists using 'vfstest' with acl_xattr over xattr_tdb.

Checklist

  • Commits have Signed-off-by: with name/author being identical to the commit author
  • (optional) This MR is just one part towards a larger feature.
  • (optional, if backport required) Bugzilla bug filed and BUG: tag added
  • Test suite updated with functionality tests
  • Test suite updated with negative tests
  • Documentation updated
  • CI timeout is 3h or higher (see Settings/CICD/General pipelines/ Timeout)

Merge request reports

Loading
Loading