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] [day] [month] [year] [list]
Date:   Wed, 17 Jun 2020 00:15:15 +0000
From:   "Tada, Kenta (Sony)" <Kenta.Tada@...y.com>
To:     Waiman Long <longman@...hat.com>,
        "x86@...nel.org" <x86@...nel.org>,
        "tglx@...utronix.de" <tglx@...utronix.de>,
        "mingo@...hat.com" <mingo@...hat.com>,
        "bp@...en8.de" <bp@...en8.de>, "hpa@...or.com" <hpa@...or.com>,
        "jpoimboe@...hat.com" <jpoimboe@...hat.com>,
        "peterz@...radead.org" <peterz@...radead.org>,
        "tony.luck@...el.com" <tony.luck@...el.com>,
        "pawan.kumar.gupta@...ux.intel.com" 
        <pawan.kumar.gupta@...ux.intel.com>,
        "asteinhauser@...gle.com" <asteinhauser@...gle.com>,
        "tglx@...utronix.de" <tglx@...utronix.de>
CC:     "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-tip-commits@...r.kernel.org" 
        <linux-tip-commits@...r.kernel.org>,
        "Tada, Kenta (Sony)" <Kenta.Tada@...y.com>
Subject: RE: [PATCH] x86/speculation: Check whether speculation is force
 disabled

I confirmed that this issue was fixed in the below new patch
https://lore.kernel.org/patchwork/patch/1253799/

Thanks.

-----Original Message-----
From: Tada, Kenta (Sony) 
Sent: Friday, June 5, 2020 9:07 PM
To: Waiman Long <longman@...hat.com>; x86@...nel.org; tglx@...utronix.de; mingo@...hat.com; bp@...en8.de; hpa@...or.com; jpoimboe@...hat.com; peterz@...radead.org; tony.luck@...el.com; pawan.kumar.gupta@...ux.intel.com
Cc: linux-kernel@...r.kernel.org
Subject: RE: [PATCH] x86/speculation: Check whether speculation is force disabled

I'm sorry but I could not find the reason of above comments.
I investigated the below log and I thought it was unintentional and the just bug at the moment.
https://lore.kernel.org/lkml/20181125185005.866780996@linutronix.de/
	
#define PFA_SPEC_IB_FORCE_DISABLE	6	/* Indirect branch speculation permanently restricted */

But the comment of PFA_SPEC_IB_FORCE_DISABLE apparently explains the expected behavior.
And it is only natural that users can force disable the speculation because of security.

I'll investigate more to explain this patch is needed.
Thank you for the review.


-----Original Message-----
From: Waiman Long <longman@...hat.com>
Sent: Friday, June 5, 2020 1:10 AM
To: Tada, Kenta (Sony) <Kenta.Tada@...y.com>; x86@...nel.org; tglx@...utronix.de; mingo@...hat.com; bp@...en8.de; hpa@...or.com; jpoimboe@...hat.com; peterz@...radead.org; tony.luck@...el.com; pawan.kumar.gupta@...ux.intel.com
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] x86/speculation: Check whether speculation is force disabled

On 6/4/20 3:29 AM, Tada, Kenta (Sony) wrote:
>> It conflicts with your new code. We can have an argument on whether 
>> IB should follow how SSB is being handled. Before that is settled,
> Thank you for the information.
> It conflicts but I think users who read the below document get confused.
> Documentation/userspace-api/spec_ctrl.rst.
>
> Especially, seccomp users must know the difference of this implicit 
> specification because both IB and SSB are force disabled 
> simultaneously when seccomp is enabled without SECCOMP_FILTER_FLAG_SPEC_ALLOW on x86.

What I am saying is that you have to make the argument why your patch is the right way to do thing and also make sure that the comment is consistent. Your current patch doesn't do that.

Cheers,
Longman

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ