Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp176779imn; Fri, 29 Jul 2022 03:45:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1seDtyVqrddBN6I6NpGMBCgj1i1rzuH8Rmxdii+l3eaq2KDHAeEBQwRci1DLdjUPBlhagWb X-Received: by 2002:a05:6a00:1ac8:b0:52b:a671:2ea8 with SMTP id f8-20020a056a001ac800b0052ba6712ea8mr3258026pfv.16.1659091554673; Fri, 29 Jul 2022 03:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659091554; cv=none; d=google.com; s=arc-20160816; b=t3V0tlaJEScc+wFEMaKzHC/mIgIiGuV6NGvjHlQM2JLxEueXJ4vj1ZjZQLBB1v1Do/ IXlyzck58D3m/zwRavWUdhXzR/TKKp/JC3Vx5oaAw0b8MDjlmQInBFhP9tnbh4YgVNsv 5pi/HDCRYZns3m08HlFrhtrdnGdSFNHV74D6eGw1g9LRUMqVbWwPBAhxuImDOxFWGUML JpbfL3Nx+W40240ZmcJR5HlSagEjZO7fMuq5d4eoT2QEbiqSjZRFZ/8U0gs3wmQP4AyR 6fGG7xYm+MR2CXYwFDe7dnri9gWyON/hvoXpl2oYI5CTahB2bP7WYobiiNzh94XlP62a X+pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=o4iyJ1JJ2KYfogMSqkvDQFRLU4vT1fVtJdRDPugLRDU=; b=qE3TylCE6m/Lw87Ju6XnDojxI0/+SqzOc7u863eNnnuKSv/Wc/7Q7bhxdF0t/lrSxa OmkhoFMaZsaCvuIdU1JJT1RBgIpbtzs6yLJyM5BUA43E6TuHyqAGrmoK54bcfd+8yG9V Zlz0c+2oLxlUpbeKrKm2cK7mpRUu7k0UnhrLk9so4Q8EyhgyKE1SIpqKHVVSmaqze6pk +AGGGiteAhfxobUAutPse1WQpBiUAghdDSmKOJghZk8QaYPdwVwb15tdZZsSNW3k8O0V ryYbbakNBwQMxHkygLQiZ7zGc+MVs2idoejRil6nOlLNrE6YKRnPSbtLWCgQI48XB4wL 0XDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a634715000000b0041af5f9cf2asi3944658pga.114.2022.07.29.03.45.39; Fri, 29 Jul 2022 03:45:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235696AbiG2Kk3 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 29 Jul 2022 06:40:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234896AbiG2Kk0 (ORCPT ); Fri, 29 Jul 2022 06:40:26 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.86.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5925319C1A for ; Fri, 29 Jul 2022 03:40:25 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-55-5dMw4K_ePdyLrUnYWn3eJw-1; Fri, 29 Jul 2022 11:40:22 +0100 X-MC-Unique: 5dMw4K_ePdyLrUnYWn3eJw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.36; Fri, 29 Jul 2022 11:40:20 +0100 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.036; Fri, 29 Jul 2022 11:40:20 +0100 From: David Laight To: 'Pawan Gupta' , Borislav Petkov CC: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Dave Hansen , "x86@kernel.org" , "H. Peter Anvin" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , "tony.luck@intel.com" , "antonio.gomez.iglesias@linux.intel.com" , Daniel Sneddon , "andrew.cooper3@citrix.com" , Josh Poimboeuf Subject: RE: [RESEND RFC PATCH] x86/bugs: Add "unknown" reporting for MMIO Stale Data Thread-Topic: [RESEND RFC PATCH] x86/bugs: Add "unknown" reporting for MMIO Stale Data Thread-Index: AQHYovL4+baeEq2rDkCp4WwQq32ghq2VJ0xw Date: Fri, 29 Jul 2022 10:40:20 +0000 Message-ID: References: <20220729022851.mdj3wuevkztspodh@desk> In-Reply-To: <20220729022851.mdj3wuevkztspodh@desk> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pawan Gupta > Sent: 29 July 2022 03:29 > > On Thu, Jul 28, 2022 at 02:00:13PM +0200, Borislav Petkov wrote: > > On Thu, Jul 14, 2022 at 06:30:18PM -0700, Pawan Gupta wrote: > > > Older CPUs beyond its Servicing period are not listed in the affected > > > processor list for MMIO Stale Data vulnerabilities. These CPUs currently > > > report "Not affected" in sysfs, which may not be correct. I looked this up.... The mitigations seem to rely on unprivileged code not being able to do MMIO accesses. That isn't true, device drivers can mmap PCIe addresses directly into user program address space. While unlikely, there is no reason this can't be supported for non-root processes. So if the underlying hardware doesn't correctly validate the byte enables then stale data can be read. It has to be said that I can't actually imagine getting anything useful unless you have co-operating processes using it as a security bypass side channel. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)