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  PHC 
Open Source and information security mailing list archives
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 22 Jan 2019 03:35:53 -0800
From:   tip-bot for Arnaldo Carvalho de Melo <>
Subject: [tip:perf/urgent] perf python: Remove -fstack-clash-protection when
 building with some clang versions

Commit-ID:  94ec1eb711db69be1414b56b3160b816e86a5c5b
Author:     Arnaldo Carvalho de Melo <>
AuthorDate: Fri, 18 Jan 2019 11:34:15 -0300
Committer:  Arnaldo Carvalho de Melo <>
CommitDate: Fri, 18 Jan 2019 11:38:09 -0300

perf python: Remove -fstack-clash-protection when building with some clang versions

These options are not present in some (all?) clang versions, so when we
build for a distro that has a gcc new enough to have these options and
that the distro python build config settings use them but clang doesn't
support, b00m.

This is the case with fedora rawhide (now gearing towards f30), so check
if clang has the  and remove the missing ones from CFLAGS.

Cc: Eduardo Habkost <>
Cc: Thiago Macieira <>
Cc: Adrian Hunter <>
Cc: Jiri Olsa <>
Cc: Namhyung Kim <>
Signed-off-by: Arnaldo Carvalho de Melo <>
 tools/perf/util/ | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/util/ b/tools/perf/util/
index 63f758c655d5..64d1f36dee99 100644
--- a/tools/perf/util/
+++ b/tools/perf/util/
@@ -17,6 +17,8 @@ if cc == "clang":
             vars[var] = sub("-mcet", "", vars[var])
         if not clang_has_option("-fcf-protection"):
             vars[var] = sub("-fcf-protection", "", vars[var])
+        if not clang_has_option("-fstack-clash-protection"):
+            vars[var] = sub("-fstack-clash-protection", "", vars[var])
 from distutils.core import setup, Extension

Powered by blists - more mailing lists