]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
f2fs: fix out-of-repair __setattr_copy()
authorChao Yu <yuchao0@huawei.com>
Wed, 16 Dec 2020 09:15:23 +0000 (17:15 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:41 +0000 (18:31 +0200)
commitb753a4002cf300ac52434a9e433cf937fed0cff5
treef409c4a22f6025f1dc7aa360853f2a743f4fc792
parent4430c79c2b544aa9019a75420e829497c5400647
f2fs: fix out-of-repair __setattr_copy()

BugLink: https://bugs.launchpad.net/bugs/1918974
commit 2562515f0ad7342bde6456602c491b64c63fe950 upstream.

__setattr_copy() was copied from setattr_copy() in fs/attr.c, there is
two missing patches doesn't cover this inner function, fix it.

Commit 7fa294c8991c ("userns: Allow chown and setgid preservation")
Commit 23adbe12ef7d ("fs,userns: Change inode_capable to capable_wrt_inode_uidgid")

Fixes: fbfa2cc58d53 ("f2fs: add file operations")
Cc: stable@vger.kernel.org
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/f2fs/file.c