These patches aim to fix crashes and hardlocks when running software that uses a exception handler as a control flow stub, which also happens to violate stack alignment. The software register a VEH which calls a procedure that destroys stack alignment and restores a pre-saved context before returning. This VEH also calls OpenThread with a misaligned stack, causing GCC/Clang's movaps to fault and recurse through the VEH until signal stack is exhausted. Additionally the software installs hw breakpoints on KSHARED_USER_DATA. Wine's signal handlers access the same addresses triggering recursive SIGTRAP dispatches which crashes via `virtual_setup_exception()`'s nested exception check. Although all 3 patches are required together for the software in question to function, the HWBKPT signal fix and the VEH clobber fix Wine issues that may affect other software. I am the least certain about the viability of `OpenThread`'s handrolled ASM version. If the assembly implementation is not acceptable applying `__attribute__((optimize("no-tree-vectorize")))` would also prevent movaps emission. OpenThread is a small function that does not meaningfully benefit from SIMD acceleration so the performance effect should be negligible. Discussed on #winehackers prior to submission. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11069