Commit c9f9df3
committed
Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Daniel Borkmann says:
====================
pull-request: bpf 2024-05-13
We've added 3 non-merge commits during the last 2 day(s) which contain
a total of 2 files changed, 62 insertions(+), 8 deletions(-).
The main changes are:
1) Fix a case where syzkaller found that it's unexpectedly possible
to attach a cgroup_skb program to the sockopt hooks. The fix adds
missing attach_type enforcement for the link_create case along
with selftests, from Stanislav Fomichev.
* tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
selftests/bpf: Add sockopt case to verify prog_type
selftests/bpf: Extend sockopt tests to use BPF_LINK_CREATE
bpf: Add BPF_PROG_TYPE_CGROUP_SKB attach type enforcement in BPF_LINK_CREATE
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>2 files changed
+62
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3985 | 3985 | | |
3986 | 3986 | | |
3987 | 3987 | | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
3988 | 3993 | | |
3989 | 3994 | | |
3990 | 3995 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
928 | 929 | | |
929 | 930 | | |
930 | 931 | | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
931 | 962 | | |
932 | 963 | | |
933 | 964 | | |
| 965 | + | |
934 | 966 | | |
935 | 967 | | |
936 | 968 | | |
| |||
947 | 979 | | |
948 | 980 | | |
949 | 981 | | |
950 | | - | |
| 982 | + | |
951 | 983 | | |
952 | 984 | | |
953 | 985 | | |
| |||
1036 | 1068 | | |
1037 | 1069 | | |
1038 | 1070 | | |
1039 | | - | |
| 1071 | + | |
| 1072 | + | |
1040 | 1073 | | |
1041 | | - | |
| 1074 | + | |
| 1075 | + | |
1042 | 1076 | | |
1043 | 1077 | | |
1044 | 1078 | | |
1045 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
1046 | 1083 | | |
1047 | 1084 | | |
1048 | 1085 | | |
| |||
1051 | 1088 | | |
1052 | 1089 | | |
1053 | 1090 | | |
1054 | | - | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
1055 | 1097 | | |
1056 | 1098 | | |
1057 | 1099 | | |
| |||
1142 | 1184 | | |
1143 | 1185 | | |
1144 | 1186 | | |
1145 | | - | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
1146 | 1193 | | |
1147 | 1194 | | |
1148 | 1195 | | |
| |||
1160 | 1207 | | |
1161 | 1208 | | |
1162 | 1209 | | |
1163 | | - | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
1164 | 1213 | | |
1165 | 1214 | | |
1166 | | - | |
| 1215 | + | |
1167 | 1216 | | |
1168 | 1217 | | |
1169 | 1218 | | |
| |||
0 commit comments