Commit a13d1a4
Al Viro
exfat: move freeing sbi, upcase table and dropping nls into rcu-delayed helper
That stuff can be accessed by ->d_hash()/->d_compare(); as it is, we have
a hard-to-hit UAF if rcu pathwalk manages to get into ->d_hash() on a filesystem
that is in process of getting shut down.
Besides, having nls and upcase table cleanup moved from ->put_super() towards
the place where sbi is freed makes for simpler failure exits.
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent 529f89a commit a13d1a4
3 files changed
Lines changed: 16 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
655 | 655 | | |
656 | 656 | | |
657 | 657 | | |
658 | | - | |
659 | 658 | | |
660 | 659 | | |
661 | 660 | | |
| |||
673 | 672 | | |
674 | 673 | | |
675 | 674 | | |
676 | | - | |
677 | | - | |
| 675 | + | |
678 | 676 | | |
679 | 677 | | |
680 | 678 | | |
| |||
701 | 699 | | |
702 | 700 | | |
703 | 701 | | |
704 | | - | |
705 | | - | |
706 | | - | |
707 | | - | |
| 702 | + | |
708 | 703 | | |
709 | 704 | | |
710 | 705 | | |
711 | 706 | | |
712 | | - | |
| 707 | + | |
713 | 708 | | |
714 | 709 | | |
715 | 710 | | |
| |||
740 | 735 | | |
741 | 736 | | |
742 | 737 | | |
743 | | - | |
744 | | - | |
| 738 | + | |
745 | 739 | | |
746 | 740 | | |
747 | 741 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 42 | | |
46 | 43 | | |
47 | 44 | | |
| |||
600 | 597 | | |
601 | 598 | | |
602 | 599 | | |
603 | | - | |
| 600 | + | |
604 | 601 | | |
605 | 602 | | |
606 | 603 | | |
| |||
613 | 610 | | |
614 | 611 | | |
615 | 612 | | |
616 | | - | |
617 | | - | |
618 | 613 | | |
619 | 614 | | |
620 | 615 | | |
| |||
701 | 696 | | |
702 | 697 | | |
703 | 698 | | |
704 | | - | |
705 | 699 | | |
706 | 700 | | |
707 | 701 | | |
708 | 702 | | |
709 | | - | |
710 | 703 | | |
711 | 704 | | |
712 | 705 | | |
| |||
771 | 764 | | |
772 | 765 | | |
773 | 766 | | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
777 | 779 | | |
778 | 780 | | |
779 | 781 | | |
780 | | - | |
| 782 | + | |
781 | 783 | | |
782 | 784 | | |
783 | 785 | | |
| |||
0 commit comments