Bug#1003210: Linux kernel module loading failing with "failed to validate module" error
On Thu, Jan 06, 2022 at 10:18:23AM +0000, Ben Dooks wrote:
> Package: linux-image-5.15.0-2-amd64
> Version: 5.15.5-2
>
> Dmesg output when mmc card is inserted:
>
>
> [137854.880467] mmc0: cannot verify signal voltage switch
> [137855.004774] mmc0: new ultra high speed SDR104 SDHC card at address aaaa
> [137855.009414] BPF: type_id=6 bits_offset=416
> [137855.009418] BPF:
> [137855.009419] BPF:Invalid name
> [137855.009420] BPF:
> [137855.009422] failed to validate module [mmc_block] BTF: -22
>
> # cat /etc/debian_version
> bookworm/sid
see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998716 for more
info.
the workaround: ensure the booted kernel and the on-disk kernel modules
are from the same build: either reboot (possibly needs to regenerate
initrd first) or downgrade the on-disk kernel to the booted version.
TL;DRL: Debian either needs to start bumping ABI for every upload, or
hard-disable generating split BTF info for kernel modules
Reply to: