Comment Comment by jagrsw Just a friendly reminder that syscall() is a vararg function. Meaning, you can't just go throwing arguments at it (so maybe it's better to use this wrapper to avoid problems instead).For example, on a 64-bit arch, this code would be sus.syscall(__NR_syscall_taking_6_args, 1, 2, 3, 4, 5, 6);Quiz: whyPS: it's a common mistake, so I thought I'd save you a trip down the debugging rabbit hole. parent jagrsw 2 years ago
For example, on a 64-bit arch, this code would be sus.
syscall(__NR_syscall_taking_6_args, 1, 2, 3, 4, 5, 6);
Quiz: why
PS: it's a common mistake, so I thought I'd save you a trip down the debugging rabbit hole.