]> git.baikalelectronics.ru Git - kernel.git/commit
x86/retpoline: Avoid retpolines for built-in __init functions
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 1 Feb 2018 11:27:20 +0000 (11:27 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 2 Feb 2018 11:28:27 +0000 (12:28 +0100)
commitead08b39faeb1468211d3e3c5df4416f9acbaa57
tree078d68cb71b0ac7b49f42740b0b542315ef7f1da
parent233e02033d275e8404c64d4b83a60f5f06b61dea
x86/retpoline: Avoid retpolines for built-in __init functions

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
include/linux/init.h