-
Notifications
You must be signed in to change notification settings - Fork 643
Fix out-of-bounds access in AVX register handling on some CPUs #4049
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
Conversation
|
Why is gdb asking for AVX registers if the machine doesn't support them? |
|
The backtrace
So there are somewhere wrong if cpu support xsave but not any avx? |
|
I actually have an rr recording of the rr replay crash -- captured with I don’t have time to dig into it right now, I’ll close this PR. |
|
Ah, so it's not coming from gdb. Ok. |
|
#4050 is a better fix. |
For cpu like intel N5095,
supported_feature_bitsis 0b11, it doesn't support any AVX.rr/src/ExtraRegisters.cc
Lines 139 to 154 in 18077ca
rr/src/ExtraRegisters.cc
Lines 96 to 101 in 18077ca
So
layout.feature_layouts[feature]above will make out-of-bounds access iffeatureis 2.Any better solutions to fix this?