Thread (12 messages) 12 messages, 5 authors, 2021-12-06

Re: CET/IBT support and live-patches

From: Peter Zijlstra <peterz@infradead.org>
Date: 2021-11-23 21:16:43

On Tue, Nov 23, 2021 at 03:58:51PM -0500, Joe Lawrence wrote:
Yep, kpatch-build uses its own klp-relocation conversion and not kallsyms.

I'm not familiar with CET/IBT, but it sounds like if a function pointer
is not taken at build time (or maybe some other annotation), the
compiler won't generate the needed endbr landing spot in said function?
Currently it does, but then I'm having objtool scribble it on purpose.
 And that would be a problem for modules using kallsyms lookup to get to
said function.
Which is ofcourse the whole purpose of the exercise. If it's not
exported you don't get to call it via a back-door :-) This should kill a
whole heap of dodgy modules quite dead I hope.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help