Quoting Sasha Levin (2019-04-18 06:46:12) > On Wed, Apr 17, 2019 at 03:16:05PM -0700, Taras Kondratiuk wrote: > >Upstream commit 3fe6e52f0626 ("ovl: override creds with the ones from > >the superblock mounter") is present in v4.4.156 as 121b09d30d48. But the > >patch has a few follow up fixes in upstream that also have to be applied > >to 4.4: > >d0e13f5bbe4b ("ovl: fix uid/gid when creating over whiteout") in v4.7-rc4 > >8fc646b44385 ("ovl: fix random return value on mount") in v4.13-rc2 > > The 2nd patch does not apply cleanly and seems to depend on 1175b6b8d96 > and 51f8f3c4e225. The context is slightly modified by 51f8f3c4e225, but it looks irrelevant. The fix should be still valid, because err value can be set to PTR_ERR(mnt) above and when prepare_creds() fails ovl_fill_super() will return a random value of mnt pointer instead of a proper error code. > > I've queued up d0e13f5bbe4b for 4.4. Thanks.