Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
koushui opened this issue Dec 18, 2020 · 2 comments

Comments

@koushui
Copy link

koushui commented Dec 18, 2020

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
Copy link

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
Copy link

cod3r3 commented Nov 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants