android_packages_modules_Co.../bpf/syscall_wrappers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Maciej Żenczykowski db324dfbca NetBpfLoad: eliminate 'bpfCmdFixupIsNeeded'
It turns out this doesn't work anyway:

Both our Java and C++ higher level map opening logic on 4.14+
kernels will check key/value sizes match, which will fail due to
the kernel uapi mismatch.

(Note: that the fixup was only ever applied/enabled inside of
the NetBpfLoad process itself, not in any later .so/Java/JNI)

This removes the fixup and simply chooses to not even attempt to
load bpf.  This will result in the mainline bpf provided
maps and programs simply not existing.  This would/will cause
a failure of 'bpf_existence_test' - but who cares, so long
as things keep on booting.

We need to transition to libbpf, and clearly making this work
isn't worth the considerable effort it would be, since S ebpf
functionality (ie. tethering offload) hasn't worked on the
affected devices in years.

Test: TreeHugger
Flag: EXEMPT mainline
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ic93a5a9d5b3ba8078500e20dfdf00ef68256874c
2025-09-11 13:01:01 -07:00
..
include NetBpfLoad: eliminate 'bpfCmdFixupIsNeeded' 2025-09-11 13:01:01 -07:00
Android.bp bpf: git mv staticlibs/native/bpf_syscall_wrappers bpf/syscall_wrappers 2024-08-20 19:51:50 -07:00