Commit 6b251fc
userfaultfd: call handle_userfault() for userfaultfd_missing() faults
This is where the page faults must be modified to call
handle_userfault() if userfaultfd_missing() is true (so if the
vma->vm_flags had VM_UFFD_MISSING set).
handle_userfault() then takes care of blocking the page fault and
delivering it to userland.
The fault flags must also be passed as parameter so the "read|write"
kind of fault can be passed to userland.
Signed-off-by: Andrea Arcangeli <[email protected]>
Acked-by: Pavel Emelyanov <[email protected]>
Cc: Sanidhya Kashyap <[email protected]>
Cc: [email protected]
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Andres Lagar-Cavilla <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Peter Feiner <[email protected]>
Cc: "Dr. David Alan Gilbert" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: "Huangpeng (Peter)" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent 16ba6f8 commit 6b251fc
2 files changed
+63
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
720 | | - | |
| 721 | + | |
| 722 | + | |
721 | 723 | | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
725 | 727 | | |
726 | 728 | | |
727 | 729 | | |
728 | | - | |
729 | | - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
730 | 735 | | |
731 | 736 | | |
732 | 737 | | |
733 | 738 | | |
| 739 | + | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
| |||
750 | 756 | | |
751 | 757 | | |
752 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
753 | 774 | | |
754 | 775 | | |
755 | 776 | | |
| |||
760 | 781 | | |
761 | 782 | | |
762 | 783 | | |
| 784 | + | |
763 | 785 | | |
764 | 786 | | |
765 | 787 | | |
| |||
771 | 793 | | |
772 | 794 | | |
773 | 795 | | |
774 | | - | |
| 796 | + | |
775 | 797 | | |
776 | 798 | | |
777 | 799 | | |
778 | 800 | | |
779 | | - | |
780 | | - | |
781 | 801 | | |
782 | 802 | | |
783 | 803 | | |
784 | 804 | | |
785 | 805 | | |
786 | | - | |
787 | 806 | | |
788 | 807 | | |
789 | 808 | | |
| |||
806 | 825 | | |
807 | 826 | | |
808 | 827 | | |
| 828 | + | |
809 | 829 | | |
810 | 830 | | |
811 | 831 | | |
| |||
816 | 836 | | |
817 | 837 | | |
818 | 838 | | |
819 | | - | |
820 | | - | |
821 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
822 | 856 | | |
823 | 857 | | |
824 | 858 | | |
825 | 859 | | |
826 | | - | |
| 860 | + | |
827 | 861 | | |
828 | 862 | | |
829 | 863 | | |
830 | 864 | | |
831 | 865 | | |
832 | 866 | | |
833 | 867 | | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
| 868 | + | |
842 | 869 | | |
843 | 870 | | |
844 | 871 | | |
| |||
873 | 900 | | |
874 | 901 | | |
875 | 902 | | |
876 | | - | |
877 | 903 | | |
878 | 904 | | |
879 | 905 | | |
880 | 906 | | |
881 | 907 | | |
882 | 908 | | |
883 | | - | |
| 909 | + | |
884 | 910 | | |
885 | | - | |
886 | 911 | | |
887 | 912 | | |
888 | 913 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
2685 | 2686 | | |
2686 | 2687 | | |
2687 | 2688 | | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
2688 | 2695 | | |
2689 | 2696 | | |
2690 | 2697 | | |
| |||
2713 | 2720 | | |
2714 | 2721 | | |
2715 | 2722 | | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
2716 | 2732 | | |
2717 | 2733 | | |
2718 | 2734 | | |
| |||
0 commit comments