entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()
authorSven Schnelle <svens@linux.ibm.com>
Wed, 4 May 2022 06:23:50 +0000 (08:23 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 May 2022 09:33:38 +0000 (11:33 +0200)
commit6d97af487dee3176cb1342d4ab16637e495440ad
tree12caf1c8054ac1d75ffe9f8bbb61f2057768ec92
parentfcdc03f78d5c8db53ba090e38474b05113d34ade
entry: Rename arch_check_user_regs() to arch_enter_from_user_mode()

arch_check_user_regs() is used at the moment to verify that struct pt_regs
contains valid values when entering the kernel from userspace. s390 needs
a place in the generic entry code to modify a cpu data structure when
switching from userspace to kernel mode. As arch_check_user_regs() is
exactly this, rename it to arch_enter_from_user_mode().

When entering the kernel from userspace, arch_check_user_regs() is
used to verify that struct pt_regs contains valid values. Note that
the NMI codepath doesn't call this function. s390 needs a place in the
generic entry code to modify a cpu data structure when switching from
userspace to kernel mode. As arch_check_user_regs() is exactly this,
rename it to arch_enter_from_user_mode().

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/20220504062351.2954280-2-tmricht@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/entry-common.h
arch/x86/include/asm/entry-common.h
include/linux/entry-common.h
kernel/entry/common.c