Skip to contentSkip to conversation

gcc: Backport sanitizer fix for 32-bit ALSR

PATCH New Claus Stovgaard 1 participant 1 message Mar 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: Backport sanitizer fix for 32-bit ALSR

When using the gcc-sanitizers as part of the SDK on a Linux with a newer kernel, the ASAN fails randomly. This was seen on Ubuntu 22.04.

This is also described at
https://stackoverflow.com/questions/77894856/possible-bug-in-gcc-sanitizers

Backport the fix from LLVM project, as gcc has not yet backported anything for the 11 series.

---
 meta/recipes-devtools/gcc/gcc-11.4.inc        |  1 +
 .../gcc/gcc/0031-gcc-sanitizers-fix.patch     | 63 +++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc/0031-gcc-sanitizers-fix.patch
meta/recipes-devtools/gcc/gcc-11.4.inc +1 -0
index 88310e6b79..fd6a3e92e3 100644
@@ -59,6 +59,7 @@ SRC_URI = "\
            file://0028-debug-101473-apply-debug-prefix-maps-before-checksum.patch \
            file://0029-Fix-install-path-of-linux64.h.patch \
            file://0030-rust-recursion-limit.patch \
+           file://0031-gcc-sanitizers-fix.patch \
            file://0001-CVE-2021-42574.patch \
            file://0002-CVE-2021-42574.patch \
            file://0003-CVE-2021-42574.patch \
meta/recipes-devtools/gcc/gcc/0031-gcc-sanitizers-fix.patch new file +63 -0

63 lines not on this page · raw message

Signature · 1 line
2.43.2