]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
static_call: Fix static_call_text_reserved() vs __init
authorPeter Zijlstra <peterz@infradead.org>
Mon, 28 Jun 2021 11:24:11 +0000 (13:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:02:27 +0000 (16:02 +0200)
commit80f755926a7e3bb00ff69ee12232b33a473dfc27
tree0669963399cf5d66e8dbe0b32cbad25ddc3e7686
parenta37c6588370eaf9aa9302a7b39b9035c06e89f78
static_call: Fix static_call_text_reserved() vs __init

[ Upstream commit 2bee6d16e4379326b1eea454e68c98b17456769e ]

It turns out that static_call_text_reserved() was reporting __init
text as being reserved past the time when the __init text was freed
and re-used.

This is mostly harmless and will at worst result in refusing a kprobe.

Fixes: 6333e8f73b83 ("static_call: Avoid kprobes on inline static_call()s")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20210628113045.106211657@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/static_call.c