[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 for-4.18?] x86: support data operand independent timing mode


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Mon, 25 Sep 2023 07:53:06 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=En7O30F/RZO5oOvbQqdI7F1Xch162MdrZ67ZvgGGTOE=; b=M63YBVV4OZQ1BYXms0va/9PKLAcHIcQSySyRYnkBT8/9Pa7oHLEdbPoXbnKaKAJfiT4vOUxkoOpIzoivwWdqNOuCMRVg6aDgnnQiTm0dxLXLNsI8QIVpzxdUqQiaxX5RJHoPwuLRpwL84InR2ii+UYfbSVcH8iitwXyhFiSfHYLG3LHd3br1yKPHVzjG88JLozc1662OuIFOF99xx2STwl6jD17QOc+a09cHsvaqKRMnZ8lMF0zck+0Snk72RSAfHZyR9ESMmdWnLZn3R23QqGfV41z8kyQJ6q00gy0ry0eL4caYC4jq1WliCxxaEY+s4HVRLjM969BEzfl0SvVvpw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gz2GAxQHOchnrRiiLLVuCae0Y5TVMXXwB/K2NCh3lLLEALQr9uiyJpPai7/Qdc0qBFrulQQ15WhYICLPdr5/GGDfTa71XFBykKPCMSXm6z6iheGlqS+tqBSad4M5ILx2lCaGKvPEMrw8Lbv3i2s5LPQK0Z+mYQvve9e6aVl9icf/f4hd1ofFwExNmfMfMbvJKZBkyqCRXzxYBGJkiQ23h4Y2UAEE+oab9Acko0Egsn/BElhr+i5UafU5MzoZuN5CqL65cjYLcm8xabHAMsLwE354fHKHekEHmfh3NUsDRtGEuYHWUthOCxHX93fRGtYrLg3eTb8YvRo3cyfwFOiVYQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 25 Sep 2023 07:53:40 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZ5MDnZ00SVLfzmUmuQZLkdMd2orAWXCkAgBTk6QA=
  • Thread-topic: [PATCH v2 for-4.18?] x86: support data operand independent timing mode

Hi Jan,

> On Sep 12, 2023, at 08:48, Henry Wang <Henry.Wang@xxxxxxx> wrote:
> 
> Hi Jan,
> 
>> On Sep 11, 2023, at 23:01, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>> 
>> [1] specifies a long list of instructions which are intended to exhibit
>> timing behavior independent of the data they operate on. On certain
>> hardware this independence is optional, controlled by a bit in a new
>> MSR. Provide a command line option to control the mode Xen and its
>> guests are to operate in, with a build time control over the default.
>> Longer term we may want to allow guests to control this.
>> 
>> Since Arm64 supposedly also has such a control, put command line option
>> and Kconfig control in common files.
>> 
>> [1] 
>> https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/data-operand-independent-timing-isa-guidance.html
>> 
>> Requested-by: Demi Marie Obenour <demi@xxxxxxxxxxxxxxxxxxxxxx>
>> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
>> ---
>> This may be viewed as a new feature, and hence be too late for 4.18. It
>> may, however, also be viewed as security relevant, which is why I'd like
>> to propose to at least consider it.
> 
> Fine with me if this patch can be properly reviewed on time, because of
> the security relevance. 

Based on this, if this patch can be properly reviewed before we release
4.18, please feel free to add:

Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.