Bug 2334643 - Unable to boot kernel-debug, systemd-modules-load.service fails with BPF: Invalid Name errors
Summary: Unable to boot kernel-debug, systemd-modules-load.service fails with BPF: Inv...
Keywords:
Status: CLOSED DUPLICATE of bug 2330681
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 41
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-28 02:12 UTC by Jason Montleon
Modified: 2025-03-02 17:46 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-02 17:46:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jason Montleon 2024-12-28 02:12:12 UTC
1. Please describe the problem:

kernel-debug-6.12.7-200.fc41.x86_64 does not boot. systemd-modules-load.service reports failed and after a moment I can see a bunch of `BPF: Invalid Name` errors.

the regular (non-debug) kernel boots fine.

2. What is the Version-Release number of the kernel:

kernel-debug-6.12.7-200.fc41.x86_64. 

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

I have kernel-debug-6.11.5-300.fc41.x86_64 installed and it boots fine. I see the same problem with I see the same with kernel-debug-6.12.6

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Install kernel-debug kernel-debug-core kernel-debug-modules kernel-debug-modules-core 6.12.7 and reboot. 

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Yes, kernel-debug-6.13.0-0.rc4.36.fc42.x86_64 has the same problem

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Since boot fails there is nothing recorded in dmesg.

From serial I collected some output:
```
[    9.670579] BPF: [145778] ENUM ee 
[    9.672260] BPF: size=4 vlen=53
[    9.673775] BPF:  
[    9.675183] BPF: Invalid name
[    9.676689] BPF: 
[    9.678155] failed to validate module [fuse] BTF: -22
[    9.901438] BPF: [145778] ENUM ee 
[    9.903195] BPF: size=4 vlen=53
[    9.904717] BPF:  
[    9.906061] BPF: Invalid name
[    9.907546] BPF: 
[    9.908922] failed to validate module [fuse] BTF: -22
[    9.994502] BPF: 	 type_id=350 bits_offset=64
[    9.996322] BPF:  
[    9.997616] BPF: Invalid name
[    9.999123] BPF: 
[   10.000428] failed to validate module [scsi_dh_alua] BTF: -22
[   10.065557] BPF: [145788] FUNC  
[   10.067110] BPF: type_id=199
[   10.068530] BPF:  
[   10.069743] BPF: Invalid name
[   10.071136] BPF: 
[   10.072428] failed to validate module [scsi_dh_emc] BTF: -22
[   10.143174] BPF: 	 type_id=18 bits_offset=296
[   10.144713] BPF:  
[   10.145914] BPF: Invalid name
[   10.147255] BPF: 
[   10.148445] failed to validate module [scsi_dh_rdac] BTF: -22
[   10.242935] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
[   10.261194] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
[   10.279406] systemd[1]: Failed to start systemd-modules-load.service - Load Kernel Modules.
[FAILED] Failed to start systemd-modules-load.service - Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
```

Reproducible: Always

Comment 1 Jason Montleon 2024-12-28 03:35:14 UTC
Narrowing down where the problem started some:
kernel-debug-6.12.1-200.fc41.x86_64 is the last version to work.
kernel-debug-6.12.2-200.fc41.x86_64 does not boot, but the problem is different, a kernel panic.
kernel-debug-6.12.3-200.fc41.x86_64 starts with the BPF: Invalid Name errors.

Comment 2 Adam Williamson 2025-03-02 17:46:09 UTC
We've had https://bugzilla.redhat.com/show_bug.cgi?id=2330681 filed for quite a while, which I think is the same.

*** This bug has been marked as a duplicate of bug 2330681 ***


Note You need to log in before you can comment on or make changes to this bug.