Repository navigation
Commit 18db4b4
committed
ext4: don't allow r/w mounts if metadata blocks overlap the superblock
If some metadata block, such as an allocation bitmap, overlaps the
superblock, it's very likely that if the file system is mounted
read/write, the results will not be pretty. So disallow r/w mounts
for file systems corrupted in this particular way.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org1 parent a45403b commit 18db4b4
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2335 | 2335 | | |
2336 | 2336 | | |
2337 | 2337 | | |
| 2338 | + | |
| 2339 | + | |
2338 | 2340 | | |
2339 | 2341 | | |
2340 | 2342 | | |
| |||
2347 | 2349 | | |
2348 | 2350 | | |
2349 | 2351 | | |
| 2352 | + | |
| 2353 | + | |
2350 | 2354 | | |
2351 | 2355 | | |
2352 | 2356 | | |
| |||
2359 | 2363 | | |
2360 | 2364 | | |
2361 | 2365 | | |
| 2366 | + | |
| 2367 | + | |
2362 | 2368 | | |
2363 | 2369 | | |
2364 | 2370 | | |
| |||
0 commit comments