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

Feature Request: CFI #61

Closed
Andarwinux opened this issue May 17, 2024 · 4 comments
Closed

Feature Request: CFI #61

Andarwinux opened this issue May 17, 2024 · 4 comments
Labels
REQUEST Feature Request about kernel configs or patches UPSTREAM Related to upstream changes or issues

Comments

@Andarwinux
Copy link
Contributor

Hi,
can you add a kernel build of CFI and CET?
just CFI_CLANG,X86_USER_SHADOW_STACK,X86_KERNEL_IBT.

@Locietta Locietta added the REQUEST Feature Request about kernel configs or patches label May 17, 2024
@Locietta
Copy link
Owner

The kernel was built with IBT enabled, but one day it caused WSL2 unbootable, so it was disabled at #32. I think I tried CFI and CET before and got similar result.

I just quickly revisit the build with all your 3 configs on, and sadly, WSL2 fails to boot with that kernel build. It's been sad that many kernel hardening feature just cause WSL2 to not boot. I'd like to add these in a clang-built kernel, but it just breaks 😞

@Locietta Locietta added the UPSTREAM Related to upstream changes or issues label May 17, 2024
@Andarwinux
Copy link
Contributor Author

Andarwinux commented May 17, 2024

I built 6.8.9 kernel locally and IBT does caused wsl2 unbootable, but CFI and CET seem work fine.

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

So we could benefit from those other both features at least ?

@Locietta
Copy link
Owner

I've opened a PR(#62) to re-enable CFI & CET.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REQUEST Feature Request about kernel configs or patches UPSTREAM Related to upstream changes or issues
Projects
None yet
Development

No branches or pull requests

3 participants