+72
−3
Loading
stable inclusion from stable-v6.6.47 commit 5472b587cf71f72fa4be675c30fab677e65c6f63 bugzilla: https://gitee.com/openeuler/kernel/issues/IAHMJO Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5472b587cf71f72fa4be675c30fab677e65c6f63 -------------------------------- [ Upstream commit d57431c6f511bf020e474026d9f3123d7bfbea8c ] In order not to call copy_to_user (from fiemap_fill_next_extent) we allocate memory in the kernel, fill it and copy it to user memory after up_read(run_lock). Reported-by:<syzbot+36bb70085ef6edc2ebb9@syzkaller.appspotmail.com> Signed-off-by:
Konstantin Komarov <almaz.alexandrovich@paragon-software.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
ZhangPeng <zhangpeng362@huawei.com>