lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-3acf4be235280f14d838581a750532219d67facc@git.kernel.org>
Date:   Wed, 26 Jun 2019 05:39:45 -0700
From:   tip-bot for Vincenzo Frascino <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     vincenzo.frascino@....com, cai@....pw, mingo@...nel.org,
        linux-kernel@...r.kernel.org, hpa@...or.com, tglx@...utronix.de
Subject: [tip:timers/vdso] arm64: vdso: Fix compilation with clang older
 than 8

Commit-ID:  3acf4be235280f14d838581a750532219d67facc
Gitweb:     https://git.kernel.org/tip/3acf4be235280f14d838581a750532219d67facc
Author:     Vincenzo Frascino <vincenzo.frascino@....com>
AuthorDate: Wed, 26 Jun 2019 12:36:32 +0100
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Wed, 26 Jun 2019 14:26:55 +0200

arm64: vdso: Fix compilation with clang older than 8

clang versions older than 8 do not support -mcmodel=tiny.

Add a check to the vDSO Makefile for arm64 to remove the flag when
these versions of the compiler are detected.

Reported-by: Qian Cai <cai@....pw>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@....com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Tested-by: Qian Cai <cai@....pw>
Cc: linux-arch@...r.kernel.org
Cc: linux-arm-kernel@...ts.infradead.org
Cc: linux-mips@...r.kernel.org
Cc: linux-kselftest@...r.kernel.org
Cc: catalin.marinas@....com
Cc: will.deacon@....com
Cc: arnd@...db.de
Cc: linux@...linux.org.uk
Cc: ralf@...ux-mips.org
Cc: paul.burton@...s.com
Cc: daniel.lezcano@...aro.org
Cc: salyzyn@...roid.com
Cc: pcc@...gle.com
Cc: shuah@...nel.org
Cc: 0x7f454c46@...il.com
Cc: linux@...musvillemoes.dk
Cc: huw@...eweavers.com
Cc: sthotton@...vell.com
Cc: andre.przywara@....com
Cc: luto@...nel.org
Link: https://lkml.kernel.org/r/20190626113632.9295-1-vincenzo.frascino@arm.com

---
 arch/arm64/kernel/vdso/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile
index ec81d28aeb5d..4ab863045188 100644
--- a/arch/arm64/kernel/vdso/Makefile
+++ b/arch/arm64/kernel/vdso/Makefile
@@ -38,6 +38,13 @@ else
 CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny -include $(c-gettimeofday-y)
 endif
 
+# Clang versions less than 8 do not support -mcmodel=tiny
+ifeq ($(CONFIG_CC_IS_CLANG), y)
+  ifeq ($(shell test $(CONFIG_CLANG_VERSION) -lt 80000; echo $$?),0)
+    CFLAGS_REMOVE_vgettimeofday.o += -mcmodel=tiny
+  endif
+endif
+
 # Disable gcov profiling for VDSO code
 GCOV_PROFILE := n
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ