]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/ptrace: Always inline trivial accessors
authorPeter Zijlstra <peterz@infradead.org>
Fri, 31 Oct 2025 11:04:24 +0000 (12:04 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:36:20 +0000 (08:36 +0100)
commit1fe4002cf7f23d70c79bda429ca2a9423ebcfdfa
tree6e1089a2fcd80e1ee4d6a87653077e0d45ab0f8a
parent323d93f0432edb5415c79bd35e15e5754a76e486
x86/ptrace: Always inline trivial accessors

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
arch/x86/include/asm/ptrace.h