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>] [day] [month] [year] [list]
Message-ID: <b570b2f3-28fe-4ab4-b94a-875b5622e882@default>
Date:   Thu, 1 Nov 2018 02:31:43 -0700 (PDT)
From:   Zhenzhong Duan <zhenzhong.duan@...cle.com>
To:     Linux-Kernel <linux-kernel@...r.kernel.org>
Cc:     Srinivas REDDY Eeda <srinivas.eeda@...cle.com>,
        <yamada.masahiro@...ionext.com>, Peterz <peterz@...radead.org>
Subject: [PATCH v2 0/2] Enable retpoline only when compiler support

According to Peter Zijlstra's suggestion in https://lkml.org/lkml/2018/9/18/1016,
hard bind retpoline with compiler support and remove minimal stuff.

Tested with both CONFIG_RETPOLINE enabled and disabled.

-v2:
Add compiler support check in Kconfig [Masahiro]
Drop 3rd patch as __insn_is_indirect_jump() may be used in some corner case.[PeterZ]

Zhenzhong Duan (2):
  retpolines: Only enable retpoline when compiler support it
  retpolines: Remove the minimal stuff of retpoline support

 arch/x86/Kconfig                     |  6 ++----
 arch/x86/Makefile                    |  4 +---
 arch/x86/include/asm/nospec-branch.h | 12 ++++++------
 arch/x86/kernel/cpu/bugs.c           | 13 ++-----------
 scripts/Makefile.build               |  2 --
 5 files changed, 11 insertions(+), 26 deletions(-)

-- 
1.8.3.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ