FS#79828 - some kernel flags are not present if I boot from linux-hardened (avx, avx2 and fma)

Attached to Project: Arch Linux
Opened by kmille (kmille) - Sunday, 01 October 2023, 13:34 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 03 October 2023, 05:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hey,

I have a strange issue and need support. Maybe you have an idea. I have two issues that only occur if I boot from linux-hardened. If I boot normal linux, everything works. I have the following versions installed (up-to-date):

kmille@linbox:~ pacman -Q linux
linux 6.5.4.arch2-1

kmille@linbox:~ pacman -Q linux-hardened
linux-hardened 6.5.5.hardened1-1

Issue #1
I can not run certain Docker images:

kmille@linbox:~ sudo docker run --rm ghcr.io/asamk/signal-cli:0.12.2-native
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA].
Please rebuild the executable with an appropriate setting of the -march option.

Issue #2
signal-desktop crashes during startup with an `illegal instruction` error message. I already created an issue there but the said the problem not on their side:
https://github.com/signalapp/Signal-Desktop/issues/6611

I also checked strace on signal-desktop. I can see that it reads /proc/cpuinfo before it crashes. I made a diff on it booting each kernel and the flags avx, avx2 and fma are not present on linux-hardened.

I realized that linux-hardened is "just a kernel patch", but that's where I stuck right now:
https://github.com/anthraxx/linux-hardened/releases/tag/6.5.5-hardened1

That's the story so far. I'm happy for some tips.

Thank you!
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 03 October 2023, 05:48 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#79444 
Comment by loqs (loqs) - Sunday, 01 October 2023, 13:58 GMT
See  FS#79444 

Loading...