+32
−0
+1
−0
+2
−2
Loading
mainline inclusion from mainline-v6.9-rc1 commit ecba88a3b32d733d41e27973e25b2bc580f64281 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAR5GW CVE: CVE-2024-46701 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ecba88a3b32d733d41e27973e25b2bc580f64281 -------------------------------- For simple filesystems that use directory offset mapping, rely strictly on the directory offset map to tell when a directory has no children. After this patch is applied, the emptiness test holds only the RCU read lock when the directory being tested has no children. In addition, this adds another layer of confirmation that simple_offset_add/remove() are working as expected. Reviewed-by:Jan Kara <jack@suse.cz> Signed-off-by:
Chuck Lever <chuck.lever@oracle.com> Link: https://lore.kernel.org/r/170820143463.6328.7872919188371286951.stgit@91.116.238.104.host.secureserver.net Signed-off-by:
Christian Brauner <brauner@kernel.org> Signed-off-by:
Yu Kuai <yukuai3@huawei.com>