Skip to content

Commit 805e8c0

Browse files
Andi KleenLinus Torvalds
authored andcommitted
[PATCH] x86_64: Clean up execve path
Just call IRET always, no need for any special cases. Needed for the next bug fix. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 903fcc6 commit 805e8c0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

arch/x86_64/kernel/entry.S

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -408,25 +408,9 @@ ENTRY(stub_execve)
408408
CFI_ADJUST_CFA_OFFSET -8
409409
CFI_REGISTER rip, r11
410410
SAVE_REST
411-
movq %r11, %r15
412-
CFI_REGISTER rip, r15
413411
FIXUP_TOP_OF_STACK %r11
414412
call sys_execve
415-
GET_THREAD_INFO(%rcx)
416-
bt $TIF_IA32,threadinfo_flags(%rcx)
417-
CFI_REMEMBER_STATE
418-
jc exec_32bit
419413
RESTORE_TOP_OF_STACK %r11
420-
movq %r15, %r11
421-
CFI_REGISTER rip, r11
422-
RESTORE_REST
423-
pushq %r11
424-
CFI_ADJUST_CFA_OFFSET 8
425-
CFI_REL_OFFSET rip, 0
426-
ret
427-
428-
exec_32bit:
429-
CFI_RESTORE_STATE
430414
movq %rax,RAX(%rsp)
431415
RESTORE_REST
432416
jmp int_ret_from_sys_call

0 commit comments

Comments
 (0)