]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/usercopy: Replace open coded stac/clac with __uaccess_{begin, end}
authorDan Williams <dan.j.williams@intel.com>
Tue, 30 Jan 2018 01:02:44 +0000 (17:02 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Feb 2018 03:08:35 +0000 (21:08 -0600)
commitc335e9ac170072476e90fdc510b7b6fe3dc6f26b
tree2a9d50ed1b449d7903f0cca10dddc9a100a3586a
parente35d861217d246537011f9fa1d823dcc2612de9b
x86/usercopy: Replace open coded stac/clac with __uaccess_{begin, end}

BugLink: http://bugs.launchpad.net/bugs/1748072
commit b5c4ae4f35325d520b230bab6eb3310613b72ac1

In preparation for converting some __uaccess_begin() instances to
__uacess_begin_nospec(), make sure all 'from user' uaccess paths are
using the _begin(), _end() helpers rather than open-coded stac() and
clac().

No functional changes.

Suggested-by: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: kernel-hardening@lists.openwall.com
Cc: gregkh@linuxfoundation.org
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: torvalds@linux-foundation.org
Cc: alan@linux.intel.com
Link: https://lkml.kernel.org/r/151727416438.33451.17309465232057176966.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/x86/lib/usercopy_32.c