diff options
author | 2022-03-22 14:38:39 -0700 | |
---|---|---|
committer | 2022-03-22 15:57:00 -0700 | |
commit | 714fbf2647b1a33d914edd695d4da92029c7e7c0 (patch) | |
tree | cc103b8f939c5560021748337656a9e76286f4f6 /fs/ocfs2/stack_user.c | |
parent | scripts/spelling.txt: add more spellings to spelling.txt (diff) | |
download | wireguard-linux-714fbf2647b1a33d914edd695d4da92029c7e7c0.tar.xz wireguard-linux-714fbf2647b1a33d914edd695d4da92029c7e7c0.zip |
ntfs: add sanity check on allocation size
ntfs_read_inode_mount invokes ntfs_malloc_nofs with zero allocation
size. It triggers one BUG in the __ntfs_malloc function.
Fix this by adding sanity check on ni->attr_list_size.
Link: https://lkml.kernel.org/r/20220120094914.47736-1-dzm91@hust.edu.cn
Reported-by: syzbot+3c765c5248797356edaa@syzkaller.appspotmail.com
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Acked-by: Anton Altaparmakov <anton@tuxera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/stack_user.c')
0 files changed, 0 insertions, 0 deletions