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

Should slub_debug be considered a hardening cmd line parameter? #55

Closed
morfikov opened this issue Oct 28, 2021 · 1 comment
Closed

Should slub_debug be considered a hardening cmd line parameter? #55

morfikov opened this issue Oct 28, 2021 · 1 comment
Labels
question Further information is requested

Comments

@morfikov
Copy link

According to this, the slub_debug is a hardening cmd line parameter. But when you use this option, you will see the following in the syslog on newer kernels:

kernel: **********************************************************
kernel: **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
kernel: **                                                      **
kernel: ** This system shows unhashed kernel memory addresses   **
kernel: ** via the console, logs, and other interfaces. This    **
kernel: ** might reduce the security of your system.            **
kernel: **                                                      **
kernel: ** If you see this message and you are not debugging    **
kernel: ** the kernel, report this immediately to your system   **
kernel: ** administrator!                                       **
kernel: **                                                      **
kernel: **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
kernel: **********************************************************

More here and here.

So, should users use slub_debug=FZP or slub_debug=ZP?

@a13xp0p0v
Copy link
Owner

Hello @morfikov!

My code comment in __init__.py is a note for future development within #46. It's not a final decision.

Currently I consider slub_debug=F and slub_debug=Z as debugging features, as you can see at the Linux Kernel Defence Map.

And I will have to learn more about init_on_free and slub_debug=P to choose between them.

Thanks!

@a13xp0p0v a13xp0p0v added the question Further information is requested label Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants