Commit 9299924
Alexei Starovoitov
Merge branch 'bpf-fix-warning-in-check_obj_size'
Hou Tao says:
====================
bpf: Fix warning in check_obj_size()
From: Hou Tao <[email protected]>
Hi,
The patch set aims to fix the warning in check_obj_size() as reported by
lkp [1]. Patch #1 fixes the warning by selecting target cache for free
request through c->unit_size, so the unnecessary adjustment of
size_index and the checking in check_obj_size() can be removed. Patch #2
fixes the test failure in test_bpf_ma after applying patch #1.
Please see individual patches for more details. And comments are always
welcome.
[1]: https://lore.kernel.org/bpf/[email protected]/
====================
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>File tree
2 files changed
+60
-145
lines changed- kernel/bpf
- tools/testing/selftests/bpf/progs
2 files changed
+60
-145
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | 493 | | |
515 | 494 | | |
516 | 495 | | |
| |||
521 | 500 | | |
522 | 501 | | |
523 | 502 | | |
524 | | - | |
525 | 503 | | |
526 | 504 | | |
527 | 505 | | |
| 506 | + | |
528 | 507 | | |
529 | 508 | | |
530 | 509 | | |
| |||
560 | 539 | | |
561 | 540 | | |
562 | 541 | | |
563 | | - | |
564 | 542 | | |
565 | 543 | | |
566 | 544 | | |
| |||
574 | 552 | | |
575 | 553 | | |
576 | 554 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | 555 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | 556 | | |
589 | 557 | | |
590 | 558 | | |
591 | | - | |
592 | 559 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
| 560 | + | |
599 | 561 | | |
600 | 562 | | |
601 | 563 | | |
| |||
869 | 831 | | |
870 | 832 | | |
871 | 833 | | |
872 | | - | |
| 834 | + | |
873 | 835 | | |
874 | 836 | | |
875 | 837 | | |
| |||
879 | 841 | | |
880 | 842 | | |
881 | 843 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | 844 | | |
894 | 845 | | |
| 846 | + | |
895 | 847 | | |
896 | 848 | | |
897 | 849 | | |
898 | 850 | | |
899 | 851 | | |
900 | | - | |
901 | | - | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
902 | 855 | | |
903 | 856 | | |
904 | 857 | | |
905 | 858 | | |
906 | 859 | | |
907 | 860 | | |
908 | 861 | | |
| 862 | + | |
909 | 863 | | |
910 | 864 | | |
911 | 865 | | |
912 | 866 | | |
913 | 867 | | |
914 | | - | |
915 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
916 | 871 | | |
917 | 872 | | |
918 | 873 | | |
| |||
986 | 941 | | |
987 | 942 | | |
988 | 943 | | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
1013 | | - | |
1014 | | - | |
1015 | | - | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| |||
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
| 225 | + | |
227 | 226 | | |
228 | 227 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
| |||
251 | 249 | | |
252 | 250 | | |
253 | 251 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
265 | 263 | | |
266 | 264 | | |
267 | 265 | | |
| |||
275 | 273 | | |
276 | 274 | | |
277 | 275 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
0 commit comments