Skip to content

Conversation

@grantseltzer
Copy link

@grantseltzer grantseltzer commented Dec 17, 2025

When I was trying to use a custom kfunc I was met with the following error when trying to load my bpf object:

Error: BTF error: Unable to determine the size of section `.ksyms`

Caused by:
    Unable to determine the size of section `.ksyms`

libbpf (and cilium/ebpf) ignore .ksyms and .kconfig when patching missing info in Datasecs. This is because these two sections are external, and won't have any information to gather in ELF sections. Aya should do the same.


This change is Reviewable

@netlify
Copy link

netlify bot commented Dec 17, 2025

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0e90a2d
🔍 Latest deploy log https://app.netlify.com/projects/aya-rs-docs/deploys/6945f923cbe51300087756d2
😎 Deploy Preview https://deploy-preview-1422--aya-rs-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@grantseltzer grantseltzer force-pushed the grantseltzer/ksyms-kconfig-fixup-skip branch 4 times, most recently from 2d616d1 to 2f64b51 Compare December 20, 2025 01:10
@grantseltzer grantseltzer force-pushed the grantseltzer/ksyms-kconfig-fixup-skip branch from 2f64b51 to 0e90a2d Compare December 20, 2025 01:17
@grantseltzer grantseltzer marked this pull request as draft December 20, 2025 02:27
@grantseltzer
Copy link
Author

Changed this to a draft as after further testing there appears to be more linking fixes needed. Actively working on it.

@vadorovsky
Copy link
Member

There is ongoing work on supporting ksyms - #1372 - that already contains a fix similar to yours, but also relocates the ksyms using kernel's BTF. Ler's maybe try to get that one in?

@grantseltzer
Copy link
Author

There is ongoing work on supporting ksyms - #1372 - that already contains a fix similar to yours, but also relocates the ksyms using kernel's BTF. Ler's maybe try to get that one in?

Ah that's great, thank you for pointing that out. I'll keep my eye on that PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants