[PATCH v2] um: Fix misaligned stack in stub_exe

2024-10-22 Thread David Gow
The stub_exe could segfault when built with some compilers (e.g. gcc 13.2.0), as SSE instructions which relied on stack alignment could be generated, but the stack was misaligned. This seems to be due to the __start entry point being run with a 16-byte aligned stack, but the x86_64 SYSV ABI wantin

Re: [PATCH v2] um: Fix misaligned stack in stub_exe

2024-10-22 Thread Johannes Berg
Thanks :) > > Changes since v1: > https://lore.kernel.org/linux-um/20241017231007.1500497-2-david...@google.com/ > - Use force_arg_align_pointer on real_init() instead of naked on > __start, which works with clang. I already applied it, so need to fix on top of it now, not replace it. However