AFLplusplus / AFL-Snapshot-LKM

A Linux Kernel Module that implements a fast snapshot mechanism for fuzzing.
135 stars 25 forks source link

Fix wrong define ARCH_HAS_SYSCALL_WRAPPER #18

Open klecko opened 4 years ago

klecko commented 4 years ago

Fixes #15

It seems like syscall wrappers were never taken into account. It usually worked because the argument is simply forwarded to the original syscall, but in some builds the pointer is truncated to an int, generating a read fault when accessed by the original exit syscall as we can see in #15