Still waiting for amd to fix random bugs in znver1. https://bugs.gentoo.org/724314
Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
11–20 of 47 posts
Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#12Interesting walk through in the linked video as he tried to troubleshoot this: https://www.youtube.com/live/1UnoBfw6soI Pretty shocking to see (extremely unlikely) non-malicious code work / not-work depending on a security mitigation setting. Curious to see where this goes as to whether it's a kernel bug and nobody is paying attention to `mitigations=off` now or the unlikely outcome that it's an actual hardware bug w…
mitigations=off does a lot of things, it's a bundle of options Perhaps the next step is trying to figure out which mitigation exactly causes it to fail. Then kernel peeps should have a fighting chance of tracking this down
Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#13Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#14Earlier quoted context omitted.
mitigations=off does a lot of things, it's a bundle of options Perhaps the next step is trying to figure out which mitigation exactly causes it to fail. Then kernel peeps should have a fighting chance of tracking this down
SMT off fixing it is a good clue. It heavily points to the problem being within a core rather than between execution cores. That's still a broad area though. Within a core some state is inadvertantly shared between the shared threads running on it but there's a lot of possibilities of what that could be.
Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#15Isn't there a rule about titles containing 'considered harmful'? Either way, this is pretty interesting and the guy is pretty excited about finding it.
Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#16lucky me, i’m running mitigations=off and smt=off on a 7950x.
Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#17Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#18Re: Mitigations=off considered harmful or spurious SIGILL on AMD Zen4
#19Earlier quoted context omitted.
SMT off fixing it is a good clue. It heavily points to the problem being within a core rather than between execution cores. That's still a broad area though. Within a core some state is inadvertantly shared between the shared threads running on it but there's a lot of possibilities of what that could be.
Some state being in the CPU or kernel? I guess if you have per core state in the kernel that's only accessed by that core, then you're safe to modify it without locking, but this isn't the case for data shared between hyperthreads of a core?
The mitigations work by making sure to clear everything they can when the CPU switches contexts. This includes clearing loaded local CPU cache, clearing the branch prediction table, clearing all speculative execution entries. The mitigations likely avoid a crash by clearing something that should be cleared between context switches in all cases. As in the mitigations likely accidentally fix this. Which is a good clue. It'd be nice if the mitigations were more fine grained than all or nothing so we could turn on the mitigations one by one but the microcode is not open so we can't do this :(.