APPLIED[B]: [SRU][Xenial][Bionic][PATCH 0/1] getxattr: use correct xattr length

Stefan Bader stefan.bader at canonical.com
Mon Oct 1 16:17:23 UTC 2018


On 21.09.2018 12:02, Joseph Salisbury wrote:
> BugLink: https://bugs.launchpad.net/bugs/1789746
> 
> == SRU Justification ==
> When running in a container with a user namespace, if you call getxattr
> with name = "system.posix_acl_access" and size % 8 != 4, then getxattr
> silently skips the user namespace fixup that it normally does resulting in
> un-fixed-up data being returned.
> 
> This is caused by posix_acl_fix_xattr_to_user() being passed the total
> buffer size and not the actual size of the xattr as returned by
> vfs_getxattr().
> 
> This commit has already been applied to Cosmic master-next.
> 
> == Fix ==
> 82c9a927bc5d ("getxattr: use correct xattr length")
> 
> == Regression Potential ==
> Low.  One liner that passes the actual length of the xattr as returned by
> vfs_getxattr() down.
> 
> == Test Case ==
> A test kernel was built with this patch and tested by the original bug reporter.
> The bug reporter states the test kernel resolved the bug.
> 
> 
> Christian Brauner (1):
>   getxattr: use correct xattr length
> 
>  fs/xattr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
Applied to bionix/master-next. Thanks.

-Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20181001/d74c814f/attachment.sig>


More information about the kernel-team mailing list