Skip to content

Commit

Permalink
fixup zp
Browse files Browse the repository at this point in the history
  • Loading branch information
thehajime committed Dec 12, 2024
1 parent 53caeb4 commit 9bbb23f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions arch/x86/um/nommu/zpoline.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,8 @@ static int __init setup_zpoline_trampoline(void)
* pretending to be syscall instruction by putting return
* address in %rcx.
*/
/* 48 8b 0c 24 mov (%rsp),%rcx */
__zpoline_start[ptr++] = 0x48;
__zpoline_start[ptr++] = 0x8b;
__zpoline_start[ptr++] = 0x0c;
__zpoline_start[ptr++] = 0x24;
/* 59 pop %rcx */
__zpoline_start[ptr++] = 0x59;

/* 41 ff e3 jmp *%r11 */
__zpoline_start[ptr++] = 0x41;
Expand Down

0 comments on commit 9bbb23f

Please sign in to comment.