Skip to content

kernel: check lkm symbols#3035

Merged
Ylarod merged 4 commits into
mainfrom
checksym
Dec 4, 2025
Merged

kernel: check lkm symbols#3035
Ylarod merged 4 commits into
mainfrom
checksym

Conversation

@5ec1cff

@5ec1cff 5ec1cff commented Dec 4, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new build-time verification tool that checks whether undefined symbols in kernel modules (.ko files) are properly exported by the kernel (vmlinux). This helps catch symbol resolution issues during the build process rather than at runtime.

Key changes:

  • Adds a new C tool check_symbol that parses ELF files and validates symbol references
  • Integrates the tool into the kernel build process to automatically verify symbols after module compilation
  • Updates .gitignore to exclude the compiled check_symbol binary

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 14 comments.

File Description
kernel/tools/check_symbol.c New ELF parsing utility that validates kernel module symbols against vmlinux exports
kernel/Makefile Adds build target for check_symbol tool and integrates it into the module build process
kernel/.gitignore Excludes the compiled check_symbol binary from version control

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel/tools/check_symbol.c
Comment thread kernel/tools/check_symbol.c Outdated
Comment thread kernel/tools/check_symbol.c
Comment thread kernel/tools/check_symbol.c Outdated
Comment thread kernel/tools/check_symbol.c Outdated
Comment thread kernel/tools/check_symbol.c Outdated
Comment thread kernel/tools/check_symbol.c
Comment thread kernel/tools/check_symbol.c Outdated
Comment thread kernel/tools/check_symbol.c
Comment thread kernel/tools/check_symbol.c Outdated
@5ec1cff 5ec1cff requested a review from Ylarod December 4, 2025 11:54
@Ylarod Ylarod merged commit d106206 into main Dec 4, 2025
15 checks passed
@Ylarod Ylarod deleted the checksym branch December 4, 2025 13:29
KOWX712 pushed a commit to KOWX712/KernelSU that referenced this pull request Dec 4, 2025
larpedd pushed a commit to larpedd/KernelSU that referenced this pull request Dec 20, 2025
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 5, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 8, 2026
u9521 pushed a commit to u9521/KernelSU that referenced this pull request Jan 13, 2026
RapliVx pushed a commit to RapliVx/KernelSU that referenced this pull request Jan 26, 2026
RapliVx pushed a commit to RapliVx/KernelSU that referenced this pull request Jan 26, 2026
It shouldn't in built-in build
This reverts commit 9363e9c.
LeCmnGend pushed a commit to LeCmnGend/KernelSU that referenced this pull request Feb 23, 2026
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.

3 participants