diff options
| author | Tetsuo Handa <[email protected]> | 2018-11-02 22:48:42 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-11-03 17:09:38 +0000 |
| commit | 9f2df09a33aa2c76ce6385d382693f98d7f2f07e (patch) | |
| tree | 1a4ccc927a92f7beaddd95b983ad1c2969200908 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h | |
| parent | kernel/sysctl.c: remove duplicated include (diff) | |
| download | kernel-9f2df09a33aa2c76ce6385d382693f98d7f2f07e.tar.gz kernel-9f2df09a33aa2c76ce6385d382693f98d7f2f07e.zip | |
bfs: add sanity check at bfs_fill_super()
syzbot is reporting too large memory allocation at bfs_fill_super() [1].
Since file system image is corrupted such that bfs_sb->s_start == 0,
bfs_fill_super() is trying to allocate 8MB of continuous memory. Fix
this by adding a sanity check on bfs_sb->s_start, __GFP_NOWARN and
printf().
[1] https://syzkaller.appspot.com/bug?id=16a87c236b951351374a84c8a32f40edbc034e96
Link: http://lkml.kernel.org/r/1525862104-3407-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp
Signed-off-by: Tetsuo Handa <[email protected]>
Reported-by: syzbot <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Tigran Aivazian <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions
