]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/retpoline: Avoid retpolines for built-in __init functions
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 23 Feb 2018 10:42:11 +0000 (11:42 +0100)
committerSasha Levin <alexander.levin@microsoft.com>
Sun, 4 Mar 2018 15:28:33 +0000 (10:28 -0500)
commit686f71029ec23c50e030d6c5c9ea838d3a4e83ce
treef10819374078ab3eb981d323a42093dae18dd831
parent980fe40629da6ca345e734236e3ed1ab8b639ec4
x86/retpoline: Avoid retpolines for built-in __init functions

[ Upstream commit 66f793099a636862a71c59d4a6ba91387b155e0c ]

There's no point in building init code with retpolines, since it runs before
any potentially hostile userspace does. And before the retpoline is actually
ALTERNATIVEd into place, for much of it.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: karahmed@amazon.de
Cc: peterz@infradead.org
Cc: bp@alien8.de
Link: https://lkml.kernel.org/r/1517484441-1420-2-git-send-email-dwmw@amazon.co.uk
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
include/linux/init.h