+3
−1
Loading
mainline inclusion from mainline-v5.16-rc1 commit 3c305026 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9R4KH CVE: CVE-2023-52732 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3c3050267e3c9a230f23a5621d7c6bd084d15094 -------------------------------- The existing logic relies on ci->i_auth_cap being NULL, but if we end up removing the auth cap early, then we'll do a lot of useless work and lock-taking on the remaining caps. Ensure that we only do the auth cap removal when we're _actually_ removing the auth cap. Signed-off-by:Jeff Layton <jlayton@kernel.org> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com> Conflicts: fs/ceph/mds_client.c [Adaptation context] Signed-off-by:
Zizhi Wo <wozizhi@huawei.com>