diff --git a/kernel/patch/ksyms/execv.c b/kernel/patch/ksyms/execv.c index b58dfec1..21660350 100644 --- a/kernel/patch/ksyms/execv.c +++ b/kernel/patch/ksyms/execv.c @@ -38,7 +38,7 @@ static void before_execve(hook_fargs3_t *args, void *udata) unsigned long stack = (unsigned long)get_stack(current); uintptr_t addr = (uintptr_t)(thread_size + stack); - for (uintptr_t i = addr - sizeof(struct pt_regs) - 0x40; i < addr - 31 * 8; i += 8) { + for (uintptr_t i = addr - sizeof(struct pt_regs) - 0x40; i < addr - 32 * 8; i += 0x10) { uintptr_t val0 = *(uintptr_t *)i; uintptr_t val1 = *(uintptr_t *)(i + 0x8); uintptr_t val2 = *(uintptr_t *)(i + 0x10);