Repository navigation
Commit 99e3ecf
Btrfs: add more validation checks for superblock
This adds validation checks for super_total_bytes, super_bytes_used and
super_stripesize, super_num_devices.
Reported-by: Vegard Nossum <vegard.nossum@oracle.com>
Reported-by: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent d865177 commit 99e3ecf
2 files changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4130 | 4130 | | |
4131 | 4131 | | |
4132 | 4132 | | |
| 4133 | + | |
| 4134 | + | |
| 4135 | + | |
| 4136 | + | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
4133 | 4144 | | |
4134 | 4145 | | |
4135 | 4146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6651 | 6651 | | |
6652 | 6652 | | |
6653 | 6653 | | |
| 6654 | + | |
6654 | 6655 | | |
6655 | 6656 | | |
6656 | 6657 | | |
| |||
6692 | 6693 | | |
6693 | 6694 | | |
6694 | 6695 | | |
| 6696 | + | |
6695 | 6697 | | |
6696 | 6698 | | |
6697 | 6699 | | |
| |||
6701 | 6703 | | |
6702 | 6704 | | |
6703 | 6705 | | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
| 6716 | + | |
| 6717 | + | |
| 6718 | + | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
6704 | 6728 | | |
6705 | 6729 | | |
6706 | 6730 | | |
| |||
0 commit comments