From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from userp2130.oracle.com ([156.151.31.86]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fCler-0008DT-Bc for speck@linutronix.de; Sun, 29 Apr 2018 14:42:26 +0200 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3TCf0E8126992 for ; Sun, 29 Apr 2018 12:42:18 GMT Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2130.oracle.com with ESMTP id 2hmgdj9tcf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 29 Apr 2018 12:42:18 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3TCgHOk020088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Sun, 29 Apr 2018 12:42:17 GMT Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3TCgHTY010895 for ; Sun, 29 Apr 2018 12:42:17 GMT Date: Sun, 29 Apr 2018 08:42:12 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [PATCH v6 07/11] [PATCH v6 07/10] Linux Patch #7 Message-ID: <20180429124207.GA9972@localhost.localdomain> References: <20180426234831.516018436@localhost.localdomain> <20180429021257.GA6935@localhost.localdomain> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: ..giant snip.. > > Taking this one step further - the init_amd or init_intel could > > call the ssb_latch_mitigation_boot_cpu() function (which now should be > > called ssb_latch_mitigation) - and that would put all the bit/MSR > > fiddling code in one location (bugs.c). > > > > I think this is what you had in mind. I will do those changes tomorrow > > night and try them out, unless you had in mind a different way?. > > Very close. I just integrate it with a sane version of the prctl stuff and > I should have something later today. Untested obviously because I have no > access to the magic ucode ... I would be more than happy to test it and do the fixes up (just in case some gremlin came by) tonight on the Intel box. Please send a tarball. Or alternatively if you would like to send me your public SSH key I have an Skylake monster beast in the cloud (the SSH key would be used for SSH in the machine and in the serial console). > > Thanks, > > tglx