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

Re: [PATCH 01/65] x86: Introduce support for CET-IBT


  • To: Andrew Cooper <amc96@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 13 Dec 2021 08:32:04 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=TIzL6DtSRiTHTvxG3MpCmSUNjQ351sIP7nXdVMcDQRU=; b=PT9UwP2CKT33U6LmiuEed97Ym7Od6qOz+eeZ2NfPtTDI8IHr+Bk/fKjfJwzhYvdn7J8AHRJHXDnkWEMm4pucafZ5l6QUXtxuBmtL0HqOVvq45q/nyg1XZrLvEWooTkcp3TxTHx9k57sY3/C8TNjeg2HKxCZQpuh02FPegk/da+q/HPKxXUlX/NJbGyx2ticE+3//YdVjmKjj05zY7fObDsZgcLzVMtkUFLCJvh/blr6txeeexffPUKoy6EdSd+vp6bVgbvBSQnokIdGneWirktH0eYKDQTAWemjaffri6JRaLUQzV7OrCBbvyiR6MLFn0uonzyv/eNOw4rzwRkm+Bw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuU7snKsG9d6HVzXvxJl8IWpUp+KZO2cgbhc5quK/KFS+8rK25R3Onss9aDCjUogRY86wrwDfi33BeeIvxLztOUNdlM14skFcgEsGRx23EnoYsU/Fqdrl5or0Cj3dSYP1qUNqiUoejZ84wrtjJ7Oz/I0yXpJIn5nQfd97/gnEVg8vLNsvraUlnFvkWAkZzp4cahLA+lEX1HJwE4/e+ZsiewmVnlZoIXc1LBo0eNVLDL+21DjsQGY1CcCAZbKfgyIX0gH4YQKW5P6QRkiG6brlYKqwHzGUQgNEiHtnwZ0cZks7MMt2YapWYllLt09FCwo45c52YKdh61hLNBpgEdDOQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 13 Dec 2021 07:32:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10.12.2021 15:20, Andrew Cooper wrote:
> On 29/11/2021 09:21, Jan Beulich wrote:
>> On 26.11.2021 16:21, Andrew Cooper wrote:
>>> On 26/11/2021 14:10, Jan Beulich wrote:
>>>> On 26.11.2021 13:33, Andrew Cooper wrote:
>>>>> @@ -124,6 +129,18 @@ config XEN_SHSTK
>>>>>     When CET-SS is active, 32bit PV guests cannot be used.  Backwards
>>>>>     compatiblity can be provided via the PV Shim mechanism.
>>>>>  
>>>>> +config XEN_IBT
>>>>> + bool "Supervisor Indirect Branch Tracking"
>>>>> + depends on HAS_CC_CET_IBT
>>>>> + default y
>>>>> + help
>>>>> +   Control-flow Enforcement Technology (CET) is a set of features in
>>>>> +   hardware designed to combat Return-oriented Programming (ROP, also
>>>>> +   call/jump COP/JOP) attacks.  Indirect Branch Tracking is one CET
>>>>> +   feature designed to provide function pointer protection.
>>>>> +
>>>>> +   This option arranges for Xen to use CET-IBT for its own protection.
>>>> Shouldn't this depend on BROKEN until it's actually functional?
>>> It compiles fine right from now, and making it BROKEN would inhibit
>>> bisection through the series.
>>>
>>> Nothing actually matters until patch 65 turns on MSR_S_CET.ENDBR_EN.
>> "Nothing" except that until then the promised extra security isn't
>> there.
> 
> The series is very likely to be committed in one fell swoop, but even
> that aside, it really doesn't matter until 4.17-rc1
> 
> As it stands, this is ~65 patches of incremental changes to the binary,
> and oughtn't to be 65 nops and a massive switch at the end.

Well, I'm not convinced, but I can live with it being the way you have it.

Jan




 


Rackspace

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