On 2/11/25 18:48, Eric Long wrote:
I've fixed this issue upstream by instead wrapping `make modules` with `bwrap` that overlays the needed files in place, and tested to work on Linux 6.13 in experimental. (still hacky, but less prone to changes like this) I am planning on the next minor upstream release and respective Debian packaging, but for 0.6.3+ds-1 the attached patch could be used (in addition to adding bubblewrap to mimic-dkms' Depends). Bubblewrap is a ~100 KB package so it won't be too much bloat.

With the 0.7.* package I don't see any errors with the current kernels
that have the btf bits in their linux-headers-* package, but with the
older ones which didn't:

DKMS (dkms-3.1.5) make.log for mimic/0.7.0+ds for kernel 6.12.15-amd64 (x86_64)
Tue Mar 11 13:05:02 UTC 2025

Building module(s)
# command: make -j14 KERNELRELEASE=6.12.15-amd64 KERNEL_UNAME=6.12.15-amd64 
CHECKSUM_HACK=kfunc
cp -rL /lib/modules/6.12.15-amd64/build overlay
PATH="$PATH:/usr/lib/mimic:/var/lib/dkms/mimic/0.7.0+ds/build/../out:/var/lib/dkms/mimic/0.7.0+ds/build/../tools"
 vmlinux-to-btf >overlay/vmlinux
Found vmlinuz at /boot/vmlinuz-6.12.15-amd64
Trying extract-vmlinux (only works on bzImage and with relevant decompressor 
installed)...
tail: error writing 'standard output': Broken pipe
install -Dm755 /usr/lib/mimic/resolve_btfids 
overlay/tools/bpf/resolve_btfids/resolve_btfids
bwrap --dev-bind / / --ro-bind overlay /usr/src/linux-headers-6.12.15-amd64 
make -C /lib/modules/6.12.15-amd64/build M=/var/lib/dkms/mimic/0.7.0+ds/build 
modules
bwrap: pivot_root: Invalid argument
make: *** [Makefile:73: build] Error 1

# exit code: 2
# elapsed time: 00:00:02
----------------------------------------------------------------


Andreas

Reply via email to