Przeglądaj źródła

btf: enable xdp_buff BTF-emit fix (0003), disable ELF_T_WORD (0004)

CI run 31359562296 proved the ELF_T_WORD endian fix does not clear the
5.10.43 'FAILED unresolved symbol xdp_buff' (all three 5.10.43 sublevel
trees failed at BTFIDS despite 0004 applying and apt pahole v1.25 being
active; every sublevel >=66 succeeded). Root cause is xdp_buff absent from
5.10.43 vmlinux BTF - an emission gap, not an endian issue.

Enable 0003 (BTF_TYPE_EMIT(struct xdp_buff) in net/core/xdp.c) which forces
the type into BTF deterministically on any sublevel. Disable 0004 again as
proven unnecessary on LE host/target.
TheWildJames 1 miesiąc temu
rodzic
commit
ad9853b18e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      .github/actions/btf/action.yml

+ 2 - 2
.github/actions/btf/action.yml

@@ -33,7 +33,7 @@ runs:
     - name: Apply xdp_buff BTF-emit fix (android12-5.10)
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/common
-      if: false
+      if: ${{ inputs.version == 'android12-5.10' }}
       run: |
         set -euo pipefail
         # bpf_types.h references struct xdp_buff via
@@ -51,7 +51,7 @@ runs:
     - name: Apply resolve_btfids ELF_T_WORD endian fix (android12-5.10)
       shell: bash
       working-directory: ${{ github.workspace }}/kernel/common
-      if: ${{ inputs.version == 'android12-5.10' }}
+      if: false
       run: |
         set -euo pipefail
         # Backport of upstream 61e8aeda9398 ("bpf: Fix libelf endian handling