]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/ptrace: Always inline trivial accessors
authorPeter Zijlstra <peterz@infradead.org>
Fri, 31 Oct 2025 11:04:24 +0000 (12:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:41 +0000 (13:09 +0100)
commit0144d18dd96d4e2165048958b12c0020f4a20b4d
tree92d4307834916482b305fa4b51a55ce91fe20ac3
parent9019e399684e3cc68c4a3f050e268f74d69c1317
x86/ptrace: Always inline trivial accessors

[ Upstream commit 1fe4002cf7f23d70c79bda429ca2a9423ebcfdfa ]

A KASAN build bloats these single load/store helpers such that
it fails to inline them:

  vmlinux.o: error: objtool: irqentry_exit+0x5e8: call to instruction_pointer_set() with UACCESS enabled

Make sure the compiler isn't allowed to do stupid.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://patch.msgid.link/20251031105435.GU4068168@noisy.programming.kicks-ass.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/ptrace.h