]> git.itanic.dy.fi Git - linux-stable/commit
sched: Fix KCSAN noinstr violation
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 12 Apr 2023 17:24:07 +0000 (10:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:38:35 +0000 (12:38 +0100)
commit403da142deac63225c5f31589ada480d94432d5c
tree9684387e3cf5dadb708711c58d571ce1b87fb261
parentbe8c3c3ca9d66f0eac6f79a7aab5cd21ed2d1d57
sched: Fix KCSAN noinstr violation

[ Upstream commit e0b081d17a9f4e5c0cbb0e5fbeb1abe3de0f7e4e ]

With KCSAN enabled, end_of_stack() can get out-of-lined.  Force it
inline.

Fixes the following warnings:

  vmlinux.o: warning: objtool: check_stackleak_irqoff+0x2b: call to end_of_stack() leaves .noinstr.text section

Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/cc1b4d73d3a428a00d206242a68fdf99a934ca7b.1681320026.git.jpoimboe@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/sched/task_stack.h