Commit 4ea9993
committed
ext4: add more paranoia checking in ext4_expand_extra_isize handling
It's possible to specify a non-zero s_want_extra_isize via debugging
option, and this can cause bad things(tm) to happen when using a file
system with an inode size of 128 bytes.
Add better checking when the file system is mounted, as well as when
we are actually doing the trying to do the inode expansion.
Link: https://lore.kernel.org/r/20191110121510.GH23325@mit.edu
Reported-by: syzbot+f8d6f8386ceacdbfff57@syzkaller.appspotmail.com
Reported-by: syzbot+33d7ea72e47de3bdf4e1@syzkaller.appspotmail.com
Reported-by: syzbot+44b6763edfc17144296f@syzkaller.appspotmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org1 parent 8d0d47e commit 4ea9993
2 files changed
+27
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5569 | 5569 | | |
5570 | 5570 | | |
5571 | 5571 | | |
| 5572 | + | |
| 5573 | + | |
5572 | 5574 | | |
5573 | 5575 | | |
| 5576 | + | |
| 5577 | + | |
| 5578 | + | |
| 5579 | + | |
| 5580 | + | |
| 5581 | + | |
| 5582 | + | |
| 5583 | + | |
| 5584 | + | |
| 5585 | + | |
| 5586 | + | |
| 5587 | + | |
| 5588 | + | |
5574 | 5589 | | |
5575 | 5590 | | |
5576 | 5591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3545 | 3545 | | |
3546 | 3546 | | |
3547 | 3547 | | |
| 3548 | + | |
| 3549 | + | |
3548 | 3550 | | |
3549 | | - | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
3553 | | - | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
| 3554 | + | |
| 3555 | + | |
| 3556 | + | |
3554 | 3557 | | |
3555 | 3558 | | |
3556 | 3559 | | |
| |||
3563 | 3566 | | |
3564 | 3567 | | |
3565 | 3568 | | |
3566 | | - | |
3567 | | - | |
3568 | | - | |
3569 | | - | |
| 3569 | + | |
| 3570 | + | |
| 3571 | + | |
| 3572 | + | |
3570 | 3573 | | |
3571 | 3574 | | |
3572 | 3575 | | |
| |||
0 commit comments