Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lunatik: missing module BTF kfuncs not regstered
error when run lunatik which loads lunatik kernel modules root@bpfire-2 lua]# lunatik run examples/filter/sni false [root@bpfire-2 lua]# dmesg [ 330.411665] lunatik: loading out-of-tree module taints kernel. [ 330.411680] lunatik: module verification failed: signature and/or required key missing - tainting kernel [ 330.433955] Kernel module BTF mismatch detected, BTF debug info may be unavailable for some modules [ 330.767701] missing module BTF, cannot register kfuncs BPFire chroot build mount /sys/kernel/btf/vmlinux which is the host binary vmlinux BTF to build against lunatik kernel module, which result in above error. adjust BPFire kernel build to save the binary vmlinux BTF to chroot /lib/modules/6.6.15-ipfire/build/vmlinux for lunatik kernel module. create the vmlinux.h from the same binary vmlinux BTF for the ebpf https.o lunatik kernel module is depending on kernel build, adjust the lunatik build accordingly when kerne upgrade in future. See #40 see luainkernel/lunatik#189 Signed-off-by: Vincent Li <[email protected]>
- Loading branch information