Commit d78092e
Miklos Szeredi
fuse: fix page dereference after free
After unlock_request() pages from the ap->pages[] array may be put (e.g. by
aborting the connection) and the pages can be freed.
Prevent use after free by grabbing a reference to the page before calling
unlock_request().
The original patch was created by Pradeep P V K.
Reported-by: Pradeep P V K <ppvk@codeaurora.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>1 parent 9a752d1 commit d78092e
1 file changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
788 | 789 | | |
789 | 790 | | |
790 | | - | |
| 791 | + | |
791 | 792 | | |
792 | 793 | | |
793 | 794 | | |
794 | 795 | | |
795 | 796 | | |
796 | | - | |
| 797 | + | |
797 | 798 | | |
798 | 799 | | |
799 | 800 | | |
| |||
833 | 834 | | |
834 | 835 | | |
835 | 836 | | |
836 | | - | |
| 837 | + | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| |||
852 | 853 | | |
853 | 854 | | |
854 | 855 | | |
855 | | - | |
| 856 | + | |
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
| 860 | + | |
859 | 861 | | |
860 | 862 | | |
861 | 863 | | |
862 | | - | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
863 | 869 | | |
864 | 870 | | |
865 | 871 | | |
| |||
868 | 874 | | |
869 | 875 | | |
870 | 876 | | |
871 | | - | |
872 | | - | |
| 877 | + | |
| 878 | + | |
873 | 879 | | |
874 | | - | |
| 880 | + | |
875 | 881 | | |
876 | 882 | | |
877 | 883 | | |
| |||
883 | 889 | | |
884 | 890 | | |
885 | 891 | | |
| 892 | + | |
886 | 893 | | |
887 | | - | |
| 894 | + | |
| 895 | + | |
888 | 896 | | |
| 897 | + | |
889 | 898 | | |
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
893 | | - | |
894 | 902 | | |
895 | 903 | | |
896 | 904 | | |
| |||
0 commit comments