Skip to content
Commit 5472b587 authored by Konstantin Komarov's avatar Konstantin Komarov Committed by Greg Kroah-Hartman
Browse files

fs/ntfs3: Do copy_to_user out of run_lock



[ Upstream commit d57431c6 ]

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: default avatar <syzbot+36bb70085ef6edc2ebb9@syzkaller.appspotmail.com>
Signed-off-by: default avatarKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f650148b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment