]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/init.h
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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Feb 2018 03:08:36 +0000 (21:08 -0600)
commit366adff810e00f08cf869ea2bbf2c2ceabd53e8e
tree0248d8021dff5b18f1ce2fada0c1669b06681b8e
parentbcaf287cb6554fb425a7a48f2eefcbe9bd46891a
x86/retpoline: Avoid retpolines for built-in __init functions

BugLink: http://bugs.launchpad.net/bugs/1748072
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/init.h