[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 Richard Biener changed: What|Removed |Added Target Milestone|12.4|12.5 --- Comment #13 from Richard Biener --- GCC 12.4 is being released, retargeting bugs to GCC 12.5.
[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #12 from Xi Ruoyao --- (In reply to Dimitrij Mijoski from comment #8) > This bug manifested at large on Github Actions CI/CI system in the last few > days most likely because Ubuntu's kernel also got updated to use 32 random > bits. Here is the bug report > https://github.com/actions/runner-images/issues/9491 . It would be a good > idea to backport the fix. But then backporting the fix here won't really help because Ubuntu is not building GCC from the upstream release branch. Ubuntu maintainers could just apply the patch downstream when they decide to increase random bits anyway, not sure why they didn't.
[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #11 from Dimitrij Mijoski --- (In reply to Sam James from comment #10) > I don't plan on pursuing it myself, leaving it to someone else, as I can't > reproduce on my main workstation and I don't want to faff w/ kernel config. You should be able to modify the kernel parameter at runtime by running: sudo sysctl vm.mmap_rnd_bits=32 That should be enough to reproduce the issue. The fix is to cherry-pick the changes to asan_allocator.h but also to lsan_allocator.h from this patch r14-263-gd53b3d94aaf211ffb2159614f5aaaf03ceb861cc. You missed lsan_allocator.h in your patch.
[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #10 from Sam James --- I don't plan on pursuing it myself, leaving it to someone else, as I can't reproduce on my main workstation and I don't want to faff w/ kernel config.
[Bug sanitizer/113430] [11/12/13 only] Trivial program segfaults intermittently with ASAN with large CONFIG_ARCH_MMAP_RND_BITS in kernel configuration
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113430 --- Comment #9 from Sam James --- Created attachment 57708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57708=edit 0001-libsanitizer-fix-ASAN-with-aggressive-CONFIG_ARCH_MM.patch Untested patch for 13.