[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250303093817.GJ5880@noisy.programming.kicks-ass.net>
Date: Mon, 3 Mar 2025 10:38:17 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Kees Cook <keescook@...omium.org>, linux-kernel@...r.kernel.org
Cc: x86@...nel.org
Subject: lkdtm: Annotate do_nothing()
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@...radead.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)
Powered by blists - more mailing lists