x86/ibt: Ensure module init/exit points have references
authorPeter Zijlstra <peterz@infradead.org>
Tue, 8 Mar 2022 15:30:44 +0000 (16:30 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 15 Mar 2022 09:32:42 +0000 (10:32 +0100)
commitcb9010f87dcbcdbb51cc96b922c6260848cecbd1
tree851cffc6519f0cdfbd0d91a0703a10b090a09c1a
parent2b6ff7dea670a4623fae1d2349806fc7f8e305d1
x86/ibt: Ensure module init/exit points have references

Since the references to the module init/exit points only have external
references, a module LTO run will consider them 'unused' and seal
them, leading to an immediate fail on module load.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/20220308154319.113767246@infradead.org
include/linux/cfi.h