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-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1811011317400.1642@nanos.tec.linutronix.de>
Date:   Thu, 1 Nov 2018 13:17:58 +0100 (CET)
From:   Thomas Gleixner <tglx@...utronix.de>
To:     "Woodhouse, David" <dwmw@...zon.co.uk>
cc:     "mingo@...nel.org" <mingo@...nel.org>,
        "zhenzhong.duan@...cle.com" <zhenzhong.duan@...cle.com>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "daniel@...earbox.net" <daniel@...earbox.net>,
        "peterz@...radead.org" <peterz@...radead.org>,
        "bp@...e.de" <bp@...e.de>,
        "srinivas.eeda@...cle.com" <srinivas.eeda@...cle.com>,
        "konrad.wilk@...cle.com" <konrad.wilk@...cle.com>,
        "michal.lkml@...kovi.net" <michal.lkml@...kovi.net>,
        "hpa@...or.com" <hpa@...or.com>,
        "mingo@...hat.com" <mingo@...hat.com>,
        "yamada.masahiro@...ionext.com" <yamada.masahiro@...ionext.com>,
        "luto@...nel.org" <luto@...nel.org>
Subject: Re: [PATCH v2 1/2] retpolines: Only enable retpoline support when
 compiler support it

On Thu, 1 Nov 2018, Woodhouse, David wrote:
> On Thu, 2018-11-01 at 10:50 +0100, Ingo Molnar wrote:
> > * Zhenzhong Duan <zhenzhong.duan@...cle.com> wrote:
> > 
> > > Since retpoline capable compilers are widely available, make
> > > CONFIG_RETPOLINE hard depend on it.
> > > 
> > > The check of RETPOLINE is changed to CONFIG_RETPOLINE.
> > > 
> > > This change is based on suggestion in https://lkml.org/lkml/2018/9/18/1016
> > > 
> > > Signed-off-by: Zhenzhong Duan <zhenzhong.duan@...cle.com>
> > > Cc: Thomas Gleixner <tglx@...utronix.de>
> > > Cc: Peter Zijlstra <peterz@...radead.org>
> > 
> > Please turn such 'based on suggestions' into proper tags as well, i.e. 
> > something like:
> > 
> >   Suggested-by: David Woodhouse <dwmw2@...radead.org>
> 
> I think the suggestion came from PeterZ; I just acked it.
> 
> Although on furthe reflection, I think I'd prefer a build break if
> retpoline is enabled in the kernel config and the compiler doesn't
> support it. This patch would make it silently fail to be secure.

Agreed.

Thanks,

	tglx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ