| 1234567891011121314 |
- --- a/net/core/filter.c
- +++ b/net/core/filter.c
- @@ -4630,6 +4630,11 @@
- {
- u64 xdp_size = (flags & BPF_F_CTXLEN_MASK) >> 32;
-
- + /* xdp_buff is referenced via BTF_ID_LIST_SINGLE(bpf_xdp_output_btf_ids)
- + * below but is not otherwise emitted into vmlinux BTF, so resolve_btfids
- + * aborts with "unresolved symbol xdp_buff". Force BTF emission. */
- + BTF_TYPE_EMIT(struct xdp_buff);
- +
- if (unlikely(flags & ~(BPF_F_CTXLEN_MASK | BPF_F_INDEX_MASK)))
- return -EINVAL;
- if (unlikely(!xdp ||
|