Commit 15583e51 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Borislav Petkov
Browse files

x86/vsyscall_emu/64: Don't use RET in vsyscall emulation



This is userspace code and doesn't play by the normal kernel rules.

Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
parent af2e140f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -19,17 +19,20 @@ __vsyscall_page:

	mov $__NR_gettimeofday, %rax
	syscall
	RET
	ret
	int3

	.balign 1024, 0xcc
	mov $__NR_time, %rax
	syscall
	RET
	ret
	int3

	.balign 1024, 0xcc
	mov $__NR_getcpu, %rax
	syscall
	RET
	ret
	int3

	.balign 4096, 0xcc