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: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:
parent
af2e140f34
commit
15583e514e
@ -19,17 +19,20 @@ __vsyscall_page:
|
|||||||
|
|
||||||
mov $__NR_gettimeofday, %rax
|
mov $__NR_gettimeofday, %rax
|
||||||
syscall
|
syscall
|
||||||
RET
|
ret
|
||||||
|
int3
|
||||||
|
|
||||||
.balign 1024, 0xcc
|
.balign 1024, 0xcc
|
||||||
mov $__NR_time, %rax
|
mov $__NR_time, %rax
|
||||||
syscall
|
syscall
|
||||||
RET
|
ret
|
||||||
|
int3
|
||||||
|
|
||||||
.balign 1024, 0xcc
|
.balign 1024, 0xcc
|
||||||
mov $__NR_getcpu, %rax
|
mov $__NR_getcpu, %rax
|
||||||
syscall
|
syscall
|
||||||
RET
|
ret
|
||||||
|
int3
|
||||||
|
|
||||||
.balign 4096, 0xcc
|
.balign 4096, 0xcc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user