Skip to content

Commit 6d9aba4

Browse files
authored
Merge pull request #354 from otteryc/init_module
Clarify init_module() deprecation for IBT-enabled kernel
2 parents f2e09d3 + b806379 commit 6d9aba4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lkmpg.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,8 @@ \subsection{The Simplest Module}
419419
You can now use whatever name you like for the start and end functions of a module,
420420
and you will learn how to do this in \Cref{sec:hello_n_goodbye}.
421421
In fact, the new method is the preferred method.
422-
However, many people still use \cpp|init_module()| and \cpp|cleanup_module()| for their start and end functions.
422+
The old \cpp|init_module()| and \cpp|cleanup_module()| have been deprecated for x86 systems with indirect branch tracking (IBT) enabled starting from \href{https://github.com/torvalds/linux/commit/4fab2d76}{commit 4fab2d76} in kernel 6.15, causing build failures.
423+
However, many existing examples still use these names for their start and end functions.
423424
424425
Typically, \cpp|init_module()| either registers a handler for something with the kernel,
425426
or it replaces one of the kernel functions with its own code (usually code to do something and then call the original function).

0 commit comments

Comments
 (0)