[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1042815: linux-image-6.1.0-10-amd64: Fails to load kernel modules due to bpf/btf issue



Control: reassign -1 src:linux 6.1.37-1
Control: tag -1 upstream fixed-upstream

On Tuesday, 1 August 2023 11:22:17 CEST AP wrote:
> Package: linux-image-6.1.0-10-amd64
> Severity: important
> Tags: patch
> 
> Current kernel failed to load modules for MASQUERADE nat rules giving the
> following in dmesg:
> 
> [37404.063872] BPF: [99720] ENUM STROY
> [37404.064350] BPF: size=4 vlen=14
> [37404.064699] BPF:
> [37404.065000] BPF: Invalid name
> [37404.065287] BPF:
> [37404.065463] failed to validate module [nf_conntrack] BTF: -22
> [37404.067137] missing module BTF, cannot register kfuncs
> 
> The following upstream patch fixes the issue:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=
> 3de4d22cc9ac7c9f38e10edcf54f9a8891a9c2aa
> 
> And it has been included in upstream stable 6.1 kernel releases since
> 6.1.39:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/?h=linu
> x-6.1.y&ofs=400

Awesome bug report, thanks!

I've extended the list to document other kernel series and their fixes:

master: 3de4d22cc9ac7c9f38e10edcf54f9a8891a9c2aa included in 6.5-rc1
6.4:    90b9e7202676742ede5f1e6c46000a53c6a6c4c0 included in 6.4.4
6.1:    6baa6e4836d75a5d693c18dbf79b0695f05697e9 included in 6.1.39
5.10:   none, also not queued (yet on 2023-08-01). Doesn't have the commit 
that it Fixes, so it may not have been in 5.10 to begin with

> PS: This, I think, is covered in bug 1003965 but my attempt to email into
> that bug appears to have failed.

It would seem so, but I have decided not to merge the bugs as that bug was 
found in 5.15.5-2, but the 5.15 series has the same 'problem' as the 5.10 
series: it doesn't have the commit that it fixes (in my initial search).
So _could_ it be that #1003965 and #1042237 are actually 2 different bugs?

Ben: Could you look at this and take appropriate action?

Cheers,
  Diederik

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: