ACK: [SRU][K/L/Unstable][PATCH 0/1] UBUNTU: SAUCE: overlayfs: handle idmapped mounts in ovl_do_(set

Tim Gardner tim.gardner at canonical.com
Mon Mar 6 14:23:10 UTC 2023


On 3/2/23 2:23 PM, Alexander Mikhalitsyn wrote:
> 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(-)
> 
Acked-by: Tim Gardner <tim.gardner at canonical.com>
-- 
-----------
Tim Gardner
Canonical, Inc




More information about the kernel-team mailing list