Fix SIGILL on arm64 when HWCAP_CPUID is not set
authorDebian Science Team <debian-science-maintainers@lists.alioth.debian.org>
Sun, 18 Apr 2021 08:36:29 +0000 (09:36 +0100)
committerSébastien Villemot <sebastien@debian.org>
Sun, 18 Apr 2021 08:36:29 +0000 (09:36 +0100)
commit7a299c1a3f4fe490bdace12fa6e3abf486044609
tree5410b168db455bced9e0ce93745a7ca90a068570
parentcc23f9b8017c60246060a46c61ff0a86dcbf75a7
Fix SIGILL on arm64 when HWCAP_CPUID is not set

Origin: upstream, https://github.com/xianyi/OpenBLAS/commit/6fe0f1fab9d6a7f46d71d37ebb210fbf56924fbc
Bug-Debian: https://bugs.debian.org/986996
Last-Update: 2021-04-18

This is a crashing bug (SIGILL) that also affects numpy on arm64. One
line of processors affected are NVIDIA Tegra (Jetson devices).

On ARM64, openblas uses feature registers to detect the detailed
processor arch. It queries HWCAP_CPUID to check if the feature registers
are used. But due to a missing volatile declaration, gcc seems to break
this guarding in optimization.
Last-Update: 2021-04-18
Gbp-Pq: Name fix-arm64-sigill.patch
driver/others/dynamic_arm64.c