Commit 98e2fb26 authored by Yuezhang Mo's avatar Yuezhang Mo Committed by Namjae Jeon
Browse files

exfat: fix the new buffer was not zeroed before writing



Before writing, if a buffer_head marked as new, its data must
be zeroed, otherwise uninitialized data in the page cache will
be written.

So this commit uses folio_zero_new_buffers() to zero the new
buffers before ->write_end().

Fixes: 6630ea49 ("exfat: move extend valid_size into ->page_mkwrite()")
Reported-by: default avatar <syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com>
Closes: https://syzkaller.appspot.com/bug?extid=91ae49e1c1a2634d20c0


Tested-by: default avatar <syzbot+91ae49e1c1a2634d20c0@syzkaller.appspotmail.com>
Signed-off-by: default avatarYuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: default avatarSungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
parent fee87376
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment