Commit 3d5ad2d
committed
Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf
Pull bpf fixes from Daniel Borkmann:
- Fix BPF verifier to not affect subreg_def marks in its range
propagation (Eduard Zingerman)
- Fix a truncation bug in the BPF verifier's handling of
coerce_reg_to_size_sx (Dimitar Kanaliev)
- Fix the BPF verifier's delta propagation between linked registers
under 32-bit addition (Daniel Borkmann)
- Fix a NULL pointer dereference in BPF devmap due to missing rxq
information (Florian Kauer)
- Fix a memory leak in bpf_core_apply (Jiri Olsa)
- Fix an UBSAN-reported array-index-out-of-bounds in BTF parsing for
arrays of nested structs (Hou Tao)
- Fix build ID fetching where memory areas backing the file were
created with memfd_secret (Andrii Nakryiko)
- Fix BPF task iterator tid filtering which was incorrectly using pid
instead of tid (Jordan Rome)
- Several fixes for BPF sockmap and BPF sockhash redirection in
combination with vsocks (Michal Luczaj)
- Fix riscv BPF JIT and make BPF_CMPXCHG fully ordered (Andrea Parri)
- Fix riscv BPF JIT under CONFIG_CFI_CLANG to prevent the possibility
of an infinite BPF tailcall (Pu Lehui)
- Fix a build warning from resolve_btfids that bpf_lsm_key_free cannot
be resolved (Thomas Weißschuh)
- Fix a bug in kfunc BTF caching for modules where the wrong BTF object
was returned (Toke Høiland-Jørgensen)
- Fix a BPF selftest compilation error in cgroup-related tests with
musl libc (Tony Ambardar)
- Several fixes to BPF link info dumps to fill missing fields (Tyrone
Wu)
- Add BPF selftests for kfuncs from multiple modules, checking that the
correct kfuncs are called (Simon Sundberg)
- Ensure that internal and user-facing bpf_redirect flags don't overlap
(Toke Høiland-Jørgensen)
- Switch to use kvzmalloc to allocate BPF verifier environment (Rik van
Riel)
- Use raw_spinlock_t in BPF ringbuf to fix a sleep in atomic splat
under RT (Wander Lairson Costa)
* tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: (38 commits)
lib/buildid: Handle memfd_secret() files in build_id_parse()
selftests/bpf: Add test case for delta propagation
bpf: Fix print_reg_state's constant scalar dump
bpf: Fix incorrect delta propagation between linked registers
bpf: Properly test iter/task tid filtering
bpf: Fix iter/task tid filtering
riscv, bpf: Make BPF_CMPXCHG fully ordered
bpf, vsock: Drop static vsock_bpf_prot initialization
vsock: Update msg_count on read_skb()
vsock: Update rx_bytes on read_skb()
bpf, sockmap: SK_DROP on attempted redirects of unsupported af_vsock
selftests/bpf: Add asserts for netfilter link info
bpf: Fix link info netfilter flags to populate defrag flag
selftests/bpf: Add test for sign extension in coerce_subreg_to_size_sx()
selftests/bpf: Add test for truncation after sign extension in coerce_reg_to_size_sx()
bpf: Fix truncation bug in coerce_reg_to_size_sx()
selftests/bpf: Assert link info uprobe_multi count & path_size if unset
bpf: Fix unpopulated path_size when uprobe_multi fields unset
selftests/bpf: Fix cross-compiling urandom_read
selftests/bpf: Add test for kfunc module order
...File tree
42 files changed
+847
-132
lines changed- arch/riscv/net
- include
- net
- uapi/linux
- kernel
- bpf
- trace
- lib
- net
- core
- netfilter
- vmw_vsock
- tools
- include/uapi/linux
- testing/selftests/bpf
- bpf_test_modorder_x
- bpf_test_modorder_y
- prog_tests
- progs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
42 files changed
+847
-132
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
| 275 | + | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
548 | 550 | | |
549 | 551 | | |
550 | 552 | | |
551 | | - | |
552 | | - | |
| 553 | + | |
| 554 | + | |
553 | 555 | | |
554 | 556 | | |
555 | 557 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2717 | 2717 | | |
2718 | 2718 | | |
2719 | 2719 | | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
2720 | 2725 | | |
2721 | 2726 | | |
2722 | 2727 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6047 | 6047 | | |
6048 | 6048 | | |
6049 | 6049 | | |
6050 | | - | |
6051 | | - | |
6052 | | - | |
6053 | | - | |
6054 | | - | |
6055 | 6050 | | |
6056 | 6051 | | |
6057 | 6052 | | |
| |||
6198 | 6193 | | |
6199 | 6194 | | |
6200 | 6195 | | |
6201 | | - | |
| 6196 | + | |
6202 | 6197 | | |
6203 | | - | |
6204 | | - | |
| 6198 | + | |
| 6199 | + | |
| 6200 | + | |
| 6201 | + | |
6205 | 6202 | | |
6206 | 6203 | | |
6207 | 6204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | 342 | | |
347 | 343 | | |
348 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3523 | 3523 | | |
3524 | 3524 | | |
3525 | 3525 | | |
3526 | | - | |
| 3526 | + | |
3527 | 3527 | | |
3528 | 3528 | | |
3529 | 3529 | | |
| |||
3543 | 3543 | | |
3544 | 3544 | | |
3545 | 3545 | | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
3546 | 3552 | | |
3547 | 3553 | | |
3548 | 3554 | | |
| |||
3587 | 3593 | | |
3588 | 3594 | | |
3589 | 3595 | | |
3590 | | - | |
| 3596 | + | |
3591 | 3597 | | |
3592 | 3598 | | |
3593 | 3599 | | |
| |||
3681 | 3687 | | |
3682 | 3688 | | |
3683 | 3689 | | |
3684 | | - | |
| 3690 | + | |
3685 | 3691 | | |
3686 | 3692 | | |
3687 | | - | |
| 3693 | + | |
3688 | 3694 | | |
3689 | 3695 | | |
3690 | 3696 | | |
| |||
8961 | 8967 | | |
8962 | 8968 | | |
8963 | 8969 | | |
| 8970 | + | |
8964 | 8971 | | |
8965 | 8972 | | |
8966 | 8973 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
| 337 | + | |
337 | 338 | | |
338 | | - | |
| 339 | + | |
| 340 | + | |
339 | 341 | | |
340 | 342 | | |
341 | 343 | | |
| |||
346 | 348 | | |
347 | 349 | | |
348 | 350 | | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | 354 | | |
| |||
360 | 363 | | |
361 | 364 | | |
362 | 365 | | |
363 | | - | |
| 366 | + | |
364 | 367 | | |
365 | 368 | | |
366 | 369 | | |
| |||
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
391 | | - | |
| 394 | + | |
392 | 395 | | |
393 | 396 | | |
394 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
| 691 | + | |
693 | 692 | | |
694 | 693 | | |
695 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
| 427 | + | |
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
| 465 | + | |
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3565 | 3565 | | |
3566 | 3566 | | |
3567 | 3567 | | |
3568 | | - | |
| 3568 | + | |
3569 | 3569 | | |
3570 | 3570 | | |
3571 | 3571 | | |
3572 | 3572 | | |
3573 | | - | |
| 3573 | + | |
3574 | 3574 | | |
3575 | 3575 | | |
3576 | 3576 | | |
| 3577 | + | |
3577 | 3578 | | |
3578 | 3579 | | |
3579 | 3580 | | |
3580 | 3581 | | |
3581 | 3582 | | |
3582 | 3583 | | |
3583 | 3584 | | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
3584 | 3592 | | |
3585 | 3593 | | |
| 3594 | + | |
3586 | 3595 | | |
3587 | | - | |
3588 | 3596 | | |
3589 | 3597 | | |
3590 | 3598 | | |
| |||
3609 | 3617 | | |
3610 | 3618 | | |
3611 | 3619 | | |
3612 | | - | |
| 3620 | + | |
3613 | 3621 | | |
3614 | 3622 | | |
3615 | 3623 | | |
3616 | 3624 | | |
3617 | 3625 | | |
3618 | 3626 | | |
3619 | 3627 | | |
3620 | | - | |
| 3628 | + | |
3621 | 3629 | | |
3622 | 3630 | | |
3623 | 3631 | | |
| |||
3639 | 3647 | | |
3640 | 3648 | | |
3641 | 3649 | | |
3642 | | - | |
| 3650 | + | |
3643 | 3651 | | |
3644 | 3652 | | |
3645 | 3653 | | |
| |||
3648 | 3656 | | |
3649 | 3657 | | |
3650 | 3658 | | |
| 3659 | + | |
3651 | 3660 | | |
3652 | 3661 | | |
3653 | 3662 | | |
| |||
3673 | 3682 | | |
3674 | 3683 | | |
3675 | 3684 | | |
| 3685 | + | |
3676 | 3686 | | |
3677 | 3687 | | |
3678 | 3688 | | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
3679 | 3693 | | |
| 3694 | + | |
3680 | 3695 | | |
3681 | | - | |
| 3696 | + | |
3682 | 3697 | | |
3683 | 3698 | | |
3684 | 3699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments