]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86: vdso: Expose sigreturn address on vdso to the kernel
authorGabriel Krisman Bertazi <krisman@collabora.com>
Fri, 27 Nov 2020 19:32:32 +0000 (14:32 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 2 Dec 2020 09:32:16 +0000 (10:32 +0100)
commitc5c878125ad5aca199dfc10b1af4010165aaa596
treef389ef222bb9189a987d5d64bb924d5f241f792f
parent01fe185d95ba3cdd6629859dd911a94de8800562
x86: vdso: Expose sigreturn address on vdso to the kernel

Syscall user redirection requires the signal trampoline code to not be
captured, in order to support returning with a locked selector while
avoiding recursion back into the signal handler.  For ia-32, which has
the trampoline in the vDSO, expose the entry points to the kernel, such
that it can avoid dispatching syscalls from that region to userspace.

Suggested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20201127193238.821364-2-krisman@collabora.com
arch/x86/entry/vdso/vdso2c.c
arch/x86/entry/vdso/vdso32/sigreturn.S
arch/x86/entry/vdso/vma.c
arch/x86/include/asm/elf.h
arch/x86/include/asm/vdso.h