]> www.infradead.org Git - linux.git/commit
fs/ntfs3: Do copy_to_user out of run_lock
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 17 Jun 2024 12:14:07 +0000 (15:14 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 11 Jul 2024 09:19:43 +0000 (12:19 +0300)
commitd57431c6f511bf020e474026d9f3123d7bfbea8c
treeed2d9a1d5633b07f578df346b3d49c30efc70011
parenteb95678ee930d67d79fc83f0a700245ae7230455
fs/ntfs3: Do copy_to_user out of run_lock

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>
fs/ntfs3/frecord.c