Commit daaa560
committed
bpf: introduce MAX_POSSIBLE_ARGS_MASK
Use it for masking to appease the verifier when we have arrays with
MAX_POSSIBLE_ARGS. This prevents silent breakage if we increase the
size of MAX_POSSIBLE_ARGS beyond 8 in the future.
Suggested-by: Kornilios Kourtis <kornilios@isovalent.com>
Signed-off-by: Andy Strohman <astrohma@isovalent.com>1 parent efae519 commit daaa560
File tree
4 files changed
+27
-20
lines changed- bpf
- lib
- process
- types
4 files changed
+27
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
1925 | | - | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
1926 | 1928 | | |
1927 | 1929 | | |
1928 | 1930 | | |
| |||
1967 | 1969 | | |
1968 | 1970 | | |
1969 | 1971 | | |
1970 | | - | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
1971 | 1975 | | |
1972 | 1976 | | |
1973 | 1977 | | |
| |||
2168 | 2172 | | |
2169 | 2173 | | |
2170 | 2174 | | |
2171 | | - | |
| 2175 | + | |
2172 | 2176 | | |
2173 | | - | |
2174 | | - | |
| 2177 | + | |
| 2178 | + | |
2175 | 2179 | | |
2176 | | - | |
2177 | 2180 | | |
2178 | 2181 | | |
2179 | 2182 | | |
| |||
2189 | 2192 | | |
2190 | 2193 | | |
2191 | 2194 | | |
2192 | | - | |
| 2195 | + | |
2193 | 2196 | | |
2194 | | - | |
2195 | | - | |
| 2197 | + | |
| 2198 | + | |
2196 | 2199 | | |
2197 | 2200 | | |
2198 | 2201 | | |
| |||
2244 | 2247 | | |
2245 | 2248 | | |
2246 | 2249 | | |
2247 | | - | |
| 2250 | + | |
2248 | 2251 | | |
2249 | | - | |
2250 | | - | |
| 2252 | + | |
| 2253 | + | |
2251 | 2254 | | |
2252 | 2255 | | |
2253 | 2256 | | |
| |||
2261 | 2264 | | |
2262 | 2265 | | |
2263 | 2266 | | |
2264 | | - | |
| 2267 | + | |
2265 | 2268 | | |
2266 | | - | |
2267 | | - | |
| 2269 | + | |
| 2270 | + | |
2268 | 2271 | | |
2269 | 2272 | | |
2270 | 2273 | | |
| |||
2401 | 2404 | | |
2402 | 2405 | | |
2403 | 2406 | | |
2404 | | - | |
| 2407 | + | |
2405 | 2408 | | |
2406 | | - | |
2407 | | - | |
| 2409 | + | |
| 2410 | + | |
2408 | 2411 | | |
2409 | 2412 | | |
2410 | 2413 | | |
| |||
0 commit comments