Locietta / xanmod-kernel-WSL2

Xanmod kernel for WSL2, built by clang with ThinLTO enabled. Build & Release are automated by Github Action.
GNU General Public License v2.0
83 stars 15 forks source link

[Kernel Config] Re-merge Config from wsl-config-5.15.y #59

Closed Locietta closed 3 months ago

Locietta commented 3 months ago

Closes #58.

It appears that some upstream configs were accidentally missing, necessitating a re-merge of the config file.

Lots of tracing/probe configs in original wsl-config are NOT enabled here.

4-FLOSS-Free-Libre-Open-Source-Software commented 3 months ago

Thanks, I will test the successful build from:

bzImage-x64v4 https://github.com/Locietta/xanmod-kernel-WSL2/actions/runs/9101126097/artifacts/1506565474

Sorry, I couldn't boot the kernels from the build artifacts, I tried all 4 of them:

xanmod\\v4lts\\bzImage
xanmod\\v4\\bzImage
xanmod\\v3\\bzImage-x64v3
xanmod\\v3lts\\bzImage-x64v3

Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN Press any key to continue...

Locietta commented 3 months ago

Looks like FORTIFY_SOURCE is the cause of boot failure. Could you test the new kernel build with FORTIFY_SOURCE disabled? @4-FLOSS-Free-Libre-Open-Source-Software

4-FLOSS-Free-Libre-Open-Source-Software commented 3 months ago

Looks like FORTIFY_SOURCE is the cause of boot failure. Could you test the new kernel build with FORTIFY_SOURCE disabled?

Yes, works very well!

Tested just kernel xanmod bzImage-x64v4 successfully.

wsl --debug-shell

Welcome to CBL-Mariner 2.0.20240112 (x86_64) - Kernel 6.8.9-locietta-WSL2-xanmod1 (hvc1)

# uname -a

Linux PC 6.8.9-locietta-WSL2-xanmod1 #1 SMP Thu May 16 08:11:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux