public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* lkdtm: Annotate do_nothing()
@ 2025-03-03  9:38 Peter Zijlstra
  2025-03-03 17:26 ` Kees Cook
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Zijlstra @ 2025-03-03  9:38 UTC (permalink / raw)
  To: Kees Cook, linux-kernel; +Cc: x86

Hi Kees,

During my FineIBT testing the other week I stumbled upon the following
complaint:

  vmlinux.o: warning: objtool: execute_location+0x4f: relocation to !ENDBR: .text+0x1032008

I finally got around to looking at it and realized we have means of
annotating that since 93f16a1ab78c ("x86/boot: Mark start_secondary() with __noendbr")
(which might still be in tip only).

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
diff --git a/drivers/misc/lkdtm/perms.c b/drivers/misc/lkdtm/perms.c
index 5b861dbff27e..9600af4494d8 100644
--- a/drivers/misc/lkdtm/perms.c
+++ b/drivers/misc/lkdtm/perms.c
@@ -36,6 +36,7 @@ static noinline void do_nothing(void)
 {
 	return;
 }
+ANNOTATE_NOENDBR_SYM(do_nothing);
 
 /* Must immediately follow do_nothing for size calculuations to work out. */
 static noinline void do_overwritten(void)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-03 18:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03  9:38 lkdtm: Annotate do_nothing() Peter Zijlstra
2025-03-03 17:26 ` Kees Cook
2025-03-03 18:35   ` Peter Zijlstra
2025-03-03 18:37     ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox