Commit b3e6bcb
committed
ext4: add EA_INODE checking to ext4_iget()
Add a new flag, EXT4_IGET_EA_INODE which indicates whether the inode
is expected to have the EA_INODE flag or not. If the flag is not
set/clear as expected, then fail the iget() operation and mark the
file system as corrupted.
This commit also makes the ext4_iget() always perform the
is_bad_inode() check even when the inode is already inode cache. This
allows us to remove the is_bad_inode() check from the callers of
ext4_iget() in the ea_inode code.
Reported-by: [email protected]
Reported-by: [email protected]
Reported-by: [email protected]
Cc: [email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>1 parent 7877cb9 commit b3e6bcb
3 files changed
+35
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2901 | 2901 | | |
2902 | 2902 | | |
2903 | 2903 | | |
2904 | | - | |
| 2904 | + | |
| 2905 | + | |
2905 | 2906 | | |
2906 | 2907 | | |
2907 | 2908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4641 | 4641 | | |
4642 | 4642 | | |
4643 | 4643 | | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
| 4657 | + | |
| 4658 | + | |
4644 | 4659 | | |
4645 | 4660 | | |
4646 | 4661 | | |
| |||
4650 | 4665 | | |
4651 | 4666 | | |
4652 | 4667 | | |
| 4668 | + | |
4653 | 4669 | | |
4654 | 4670 | | |
4655 | 4671 | | |
| |||
4677 | 4693 | | |
4678 | 4694 | | |
4679 | 4695 | | |
4680 | | - | |
| 4696 | + | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
4681 | 4702 | | |
| 4703 | + | |
4682 | 4704 | | |
4683 | 4705 | | |
4684 | 4706 | | |
| |||
4944 | 4966 | | |
4945 | 4967 | | |
4946 | 4968 | | |
4947 | | - | |
4948 | | - | |
4949 | | - | |
4950 | | - | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
4951 | 4972 | | |
4952 | 4973 | | |
4953 | 4974 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 444 | | |
462 | 445 | | |
463 | 446 | | |
| |||
478 | 461 | | |
479 | 462 | | |
480 | 463 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | 464 | | |
485 | 465 | | |
486 | 466 | | |
| |||
1556 | 1536 | | |
1557 | 1537 | | |
1558 | 1538 | | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1564 | 1543 | | |
1565 | 1544 | | |
1566 | 1545 | | |
| |||
1570 | 1549 | | |
1571 | 1550 | | |
1572 | 1551 | | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
| 1552 | + | |
| 1553 | + | |
1576 | 1554 | | |
1577 | 1555 | | |
1578 | 1556 | | |
| |||
0 commit comments