aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAbdun Nihaal <[email protected]>2022-10-01 12:30:24 +0530
committerKonstantin Komarov <[email protected]>2022-11-12 20:59:40 +0300
commit557d19675a470bb0a98beccec38c5dc3735c20fa (patch)
tree62058671befb7127e6cb36dcb000b45ff8885ff3 /net/switchdev/switchdev.c
parentbfcdbae0523bd95eb75a739ffb6221a37109881e (diff)
fs/ntfs3: Fix slab-out-of-bounds read in ntfs_trim_fs
Syzbot reports an out of bound access in ntfs_trim_fs. The cause of this is using a loop termination condition that compares window index (iw) with wnd->nbits instead of wnd->nwnd, due to which the index used for wnd->free_bits exceeds the size of the array allocated. Fix the loop condition. Fixes: 3f3b442b5ad2 ("fs/ntfs3: Add bitmap") Link: https://syzkaller.appspot.com/bug?extid=b892240eac461e488d51 Reported-by: [email protected] Signed-off-by: Abdun Nihaal <[email protected]> Signed-off-by: Konstantin Komarov <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions