Commit cabca8c
MIPS: Enable hardened usercopy
Enable CONFIG_HARDENED_USERCOPY checks for MIPS, calling check_object
size in all of copy_{to,from}_user(), __copy_{to,from}_user() &
__copy_{to,from}_user_inatomic().
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14371/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>1 parent 3f5f0a4 commit cabca8c
2 files changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
| 861 | + | |
| 862 | + | |
861 | 863 | | |
| 864 | + | |
862 | 865 | | |
863 | 866 | | |
864 | 867 | | |
| |||
879 | 882 | | |
880 | 883 | | |
881 | 884 | | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
882 | 888 | | |
883 | 889 | | |
884 | 890 | | |
| |||
897 | 903 | | |
898 | 904 | | |
899 | 905 | | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
900 | 909 | | |
901 | 910 | | |
902 | 911 | | |
| |||
931 | 940 | | |
932 | 941 | | |
933 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
934 | 946 | | |
935 | 947 | | |
936 | 948 | | |
| |||
1123 | 1135 | | |
1124 | 1136 | | |
1125 | 1137 | | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1126 | 1141 | | |
1127 | 1142 | | |
1128 | 1143 | | |
| |||
1161 | 1176 | | |
1162 | 1177 | | |
1163 | 1178 | | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
1164 | 1182 | | |
1165 | 1183 | | |
1166 | 1184 | | |
| |||
0 commit comments