Skip to content

Commit

Permalink
struct pt_regs: maintain 16-bytes align
Browse files Browse the repository at this point in the history
  • Loading branch information
bmax committed Apr 9, 2024
1 parent 3d9bdeb commit 1fa6b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/patch/ksyms/execv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1fa6b3d

Please sign in to comment.