Skip to content

Clarify init_module() deprecation for IBT-enabled kernel#354

Merged
jserv merged 1 commit intosysprog21:masterfrom
otteryc:init_module
Feb 2, 2026
Merged

Clarify init_module() deprecation for IBT-enabled kernel#354
jserv merged 1 commit intosysprog21:masterfrom
otteryc:init_module

Conversation

@otteryc
Copy link
Contributor

@otteryc otteryc commented Jan 31, 2026

Update the module initialization section to warn readers that using init_module() and cleanup_module() directly causes build failures on IBT (Indirect Branch Tracking) enabled systems starting from kernel 6.15[1]. This information helps newcomers identify and resolve common build errors when following older examples, since IBT has been enabled by default for x86 target since kernel 6.2[2].

Close #353

[1] torvalds/linux@4fab2d76
[2] torvalds/linux@4fd5f70


Summary by cubic

Clarified the module initialization docs to warn that using init_module() and cleanup_module() directly causes build failures on IBT-enabled kernels (6.15+), with IBT enabled by default on x86 since 6.2. Points readers to the preferred module_init/module_exit approach so they avoid outdated examples and build errors.

Written for commit b806379. Summary will update on new commits.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Copy link
Collaborator

@EricccTaiwan EricccTaiwan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Update the module initialization section to warn readers that using
init_module() and cleanup_module() directly causes build failures on
IBT (Indirect Branch Tracking) enabled systems starting from kernel
6.15[1]. This information helps newcomers identify and resolve common
build errors when following older examples, since IBT has been enabled
by default for x86 target since kernel 6.2[2].

[1] torvalds/linux@4fab2d76
[2] torvalds/linux@4fd5f70

Signed-off-by: Yu-Cheng Chen <otteryc210@gmail.com>
@jserv jserv merged commit 6d9aba4 into sysprog21:master Feb 2, 2026
1 check passed
@jserv
Copy link
Contributor

jserv commented Feb 2, 2026

Thank @otteryc for contributing!

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.

init_module() on recent kernel deprecated

4 participants