Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sched_ext: module init failure #1128

Open
LeonardoTemperanza opened this issue Dec 23, 2024 · 3 comments
Open

sched_ext: module init failure #1128

LeonardoTemperanza opened this issue Dec 23, 2024 · 3 comments
Labels

Comments

@LeonardoTemperanza
Copy link

The init procedure for the sched_ext module fails with the following errors:

BPF:    type_id=70136 offset=224704 size=960
BPF:
BPF: Invalid offset
BPF:
sched_ext: Failed to register kfunc sets (-22)

This only happens on some distros/toolchain configurations. I can confirm this happens on Debian 12.8.0, but not on Ubuntu 24.10.

To Reproduce

After a clean installation of Debian 12.8.0, run the following commands:

@LeonardoTemperanza LeonardoTemperanza changed the title sched_ext module init failure sched_ext: module init failure Dec 23, 2024
@arighi
Copy link
Contributor

arighi commented Dec 24, 2024

Probably not related... but can you try to install the modules using make modules_install INSTALL_MOD_STRIP=1?

I think I've seen something similar happening and the reason was that the initramfs was too large (due to unstripped modules) and some modules were not included in the initramfs.

@hodgesds
Copy link
Contributor

What happens if you try to generate a vmlinux directly? What is the output of:

sudo bpftool btf dump file /sys/kernel/btf/vmlinux format c

@LeonardoTemperanza
Copy link
Author

The issue persists even with stripped modules.
As for the btf dump, here it is:
output.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants