]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:55 +0000 (18:22 +0100)
commit24cc055b878f4d5669220d9cf4bef0271c8e6586
tree565fa6f8228e43af35e754031323cbd7ff8c4ca2
parent58e3e3a7f939457930663474e05a799a255d8780
f2fs: fix out-of-repair __setattr_copy()

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>
fs/f2fs/file.c