]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/entry: Consolidate check_user_regs()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 22 Jul 2020 22:00:00 +0000 (00:00 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 24 Jul 2020 13:04:57 +0000 (15:04 +0200)
commit8d5ea35c5e9139dbd19a3d73985d008d36c9968f
treec37a3e2b024d6b85e0e1475a55bdc2608e1d6d82
parentb35ad8405d3951721126c3942d863056c2f39c64
x86/entry: Consolidate check_user_regs()

The user register sanity check is sprinkled all over the place. Move it
into enter_from_user_mode().

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20200722220519.943016204@linutronix.de
arch/x86/entry/common.c