diff options
| author | kitty <nepeta@canaglie.net> | 2026-03-16 12:24:07 +1100 |
|---|---|---|
| committer | kitty <nepeta@canaglie.net> | 2026-03-16 12:24:07 +1100 |
| commit | 152e6c7fd4a00e4fd56d5a55aaaa4c3680eaa815 (patch) | |
| tree | 398cd93ffc43c1eea8075b88115cc7f162d449f3 /sanctuary.s | |
| parent | 9ffc3b667847aee0557cc3c020f3764524f9339d (diff) | |
type and executable swap stack order
Diffstat (limited to 'sanctuary.s')
| -rw-r--r-- | sanctuary.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sanctuary.s b/sanctuary.s index 18c6623..30a9f5b 100644 --- a/sanctuary.s +++ b/sanctuary.s @@ -94,8 +94,8 @@ defcode "grow", grow, 0 defcode "executable", executable, 0 mov rdx, 0x7 ; PROT_{READ,WRITE,EXEC} - pspop rdi ; addr pspop rsi + pspop rdi ; addr mov rax, __NR_mprotect syscall ret @@ -223,8 +223,8 @@ defcode "parse", parse, 0 ; }}} defcode "type", type, 0 - pspop rdx pspop rsi + pspop rdx mov rdi, 1 mov rax, __NR_write syscall |
