f0rb1dd3n / Reptile

LKM Linux rootkit
2.53k stars 571 forks source link

make error: implicit declaration of function 'memzero_explicit' [-Werror=implicit-function-declaration] #102

Open koushui opened 3 years ago

koushui commented 3 years ago

My test OS version is CentOS Linux release 7.7.1908 (Core), and kernel version is 3.10.0-123.el7.x86_64 The reason is that “string.h“ didn't have function memzero_explicit before 3.10.77,I hope the author can fix it as soon as possible

BTW,Why has the not been able to handle the merge Pull request for the bugs ?Remove -fomit-frame-pointer in Kbuild and Fix memory leak in network hide conn feature,It is a very serious bug

himekifee commented 3 years ago

Actually this is just a pretty simple memset, can fix it really quick, but the author disappeared for a while. If you want, you may fork one.

cod3r3 commented 2 years ago

Add the code below to reptile/kernel/backdoor.c

if LINUX_VERSION_CODE < KERNEL_VERSION(3.10.60)

void memzero_explicit(void *s, size_t count) { memset(s, 0, count); barrier(); }

endif