mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
x86 fail works
This commit is contained in:
@@ -54,16 +54,17 @@ asm_main_after_prologue: \
|
|||||||
mov $0, %rax; \
|
mov $0, %rax; \
|
||||||
jmp pass; \
|
jmp pass; \
|
||||||
fail: \
|
fail: \
|
||||||
mov -0x8(%rbp), %rbx; \
|
/* -0x30(%rbp) is argument 1 which we pushed at prologue */ \
|
||||||
|
mov -0x30(%rbp), %rbx; \
|
||||||
movl %eax, (%rbx); \
|
movl %eax, (%rbx); \
|
||||||
mov $1, %rax; \
|
mov $1, %rax; \
|
||||||
pass: \
|
pass: \
|
||||||
|
add $16, %rsp; \
|
||||||
pop %rbx; \
|
pop %rbx; \
|
||||||
pop %r12; \
|
pop %r12; \
|
||||||
pop %r13; \
|
pop %r13; \
|
||||||
pop %r14; \
|
pop %r14; \
|
||||||
pop %r15; \
|
pop %r15; \
|
||||||
add $16, %rsp; \
|
|
||||||
pop %rbp; \
|
pop %rbp; \
|
||||||
ret; \
|
ret; \
|
||||||
;
|
;
|
||||||
|
|||||||
Reference in New Issue
Block a user