Daniel Borkmann says: ==================== pull-request: bpf 2023-03-06 We've added 8 non-merge commits during the last 7 day(s) which contain a total of 9 files changed, 64 insertions(+), 18 deletions(-). The main changes are: 1) Fix BTF resolver for DATASEC sections when a VAR points at a modifier, that is, keep resolving such instances instead of bailing out, from Lorenz Bauer. 2) Fix BPF test framework with regards to xdp_frame info misplacement in the "live packet" code, from Alexander Lobakin. 3) Fix an infinite loop in BPF sockmap code for TCP/UDP/AF_UNIX, from Liu Jian. 4) Fix a build error for riscv BPF JIT under PERF_EVENTS=n, from Randy Dunlap. 5) Several BPF doc fixes with either broken links or external instead of internal doc links, from Bagas Sanjaya. * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf: selftests/bpf: check that modifier resolves after pointer btf: fix resolving BTF_KIND_VAR after ARRAY, STRUCT, UNION, PTR bpf, test_run: fix &xdp_frame misplacement for LIVE_FRAMES bpf, doc: Link to submitting-patches.rst for general patch submission info bpf, doc: Do not link to docs.kernel.org for kselftest link bpf, sockmap: Fix an infinite loop error when len is 0 in tcp_bpf_recvmsg_parser() riscv, bpf: Fix patch_text implicit declaration bpf, docs: Fix link to BTF doc ====================
Showing the changes to kernel (1 of 9 files). Show all
Unified · Split
| @@ -4569,6 +4569,7 @@ static int btf_datasec_resolve(struct btf_verifier_env *env, · 4568 unmodified lines | ||
| 4569 | 4569 | struct btf *btf = env->btf; |
| 4570 | 4570 | u16 i; |
| 4571 | 4571 | |
| 4572 | + env->resolve_mode = RESOLVE_TBD; | |
| 4572 | 4573 | for_each_vsi_from(i, v->next_member, v->t, vsi) { |
| 4573 | 4574 | u32 var_type_id = vsi->type, type_id, type_size = 0; |
| 4574 | 4575 | const struct btf_type *var_type = btf_type_by_id(env->btf, |