APPLIED [OEM-6.1] Re: [SRU][K/L/Unstable][PATCH 0/1] UBUNTU: SAUCE: overlayfs: handle idmapped mounts in ovl_do_(set|remove)xattr (LP: 2009065)

Timo Aaltonen tjaalton at ubuntu.com
Fri Mar 3 09:13:09 UTC 2023


Alexander Mikhalitsyn kirjoitti 2.3.2023 klo 23.23:
> BugLink: http://bugs.launchpad.net/bugs/2009065
> 
> SRU Justification:
> 
> [Impact]
> 
> Unprivileged LXC containers users with idmapped root (Ubuntu kernels >= 5.19) getting
> all overlayfs mounts inside mounted as R/O.
> 
> Impacted Ubuntu versions J/K/L. Jammy is affected only with hwe-5.19.
> 
> [Fix]
> 
> 813fa2cd9e259dacd8f9086226287dc167c8c0c5 "UBUNTU: SAUCE: overlayfs: handle idmapped mounts in
>   ovl_do_(set|remove)xattr"
> 
> [Test Plan]
> 
> Reproducer:
> $ cd /idmapped/mount/path
> $ mkdir {work,upper,lower,ovl}
> $ mount -t overlay overlay -o lowerdir=lower,upperdir=upper,workdir=work ovl
> $ touch ovl/test
> touch: cannot touch 'ovl/test': Read-only file system
> 
> [Where problems could occur]
> 
> The regression can be considered as low, because we just making things to work the same way as in upstream.
> 
> [Other Info]
> 
> We need to apply this patch to Jammy/hwe-5.19 tree too. The same patch can be applied to kinetic/master, lunar/master, unstable (6.2) tree.
> 
> Alexander Mikhalitsyn (1):
>    UBUNTU: SAUCE: overlayfs: handle idmapped mounts in
>      ovl_do_(set|remove)xattr
> 
>   fs/overlayfs/overlayfs.h | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 

seems useful for the oem kernel too, so applied to oem-6.1, thanks

-- 
t




More information about the kernel-team mailing list