Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp429554imn; Fri, 29 Jul 2022 11:13:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3JYHBXlW29+eiA/+V4aRkPQCf4LyAbAsh1MFkr7W39xYjhNIkJMdtq16qB31CrOh1ujdr X-Received: by 2002:a17:906:93ef:b0:72b:491c:a36e with SMTP id yl15-20020a17090693ef00b0072b491ca36emr3769058ejb.593.1659118393495; Fri, 29 Jul 2022 11:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659118393; cv=none; d=google.com; s=arc-20160816; b=fZ1erN7e1Q9Rkv5MzKjHXLE9nO+iEmhPrz9IgVr/5gE/2mOOMwo16slm0yDX18EilO JshEVx9SMVBDC6SIs/Y3uVvIrPVU/p2S6/Yf10V6VeRDhdqDBINwbuzOgb+34yJ4F55Y Yh8j1Da+aCygLgcxbz4IhzX0hzu9JrUqOPx1owYKF9ffH3T7ryhKi/705z6j2KQnPmcm lWinRTtAyyhmNAdVHTU7mflOEVpVMMasvq5wKpBkvrd+Il4XI8Rud1OkpGASn0Rf1jOt wpNc+H7m82ImJOyrQd/SlokpL5anWIXb4JemXug8Ms7OPT3+ilteCLP+7vuyO8fwAY2V X5Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VUtAc37dCnSKyQa1PTbM/E8tcWdamYWwTkqqMSxP4eU=; b=TVOSE9UEBHXXLFy2CCR7xGcTdZj3g3gP4uTIoMv6umTK2gjro1nuZi41Zvuzo3CFGq CZVB5K8EcXF5fAcqXS8q7xTRDJKvzFRtMwG36eX0EdkbCVlw1kh01OnGkV7THVKuAwge vRVD6F+scaqS64I14Zf79kD3fn37jqG2S0HqeT4xSw3V8nJG37JOCcBhiUMVz0MHGLq9 oVzDjlrZQf+Y+vM3FPD6I7DtU198rTt231t1ebSX1F1/2fGUAYPwnJTxVKalgw9GcqXa Xb0+yWgjj0CbLbVnrFQc2UPbku9fk746eeg0Soikz1Y6KlEzn6o+sPFIMg3KvVLEyIEX DMOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TlFvqxNo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb2-20020a1709077e8200b00726e0ea1733si4438040ejc.993.2022.07.29.11.12.48; Fri, 29 Jul 2022 11:13:13 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=TlFvqxNo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237936AbiG2Rp0 (ORCPT + 99 others); Fri, 29 Jul 2022 13:45:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiG2RpY (ORCPT ); Fri, 29 Jul 2022 13:45:24 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 804096A49F; Fri, 29 Jul 2022 10:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659116723; x=1690652723; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=dg2oEUXQjesKyq4mqy/LM3/pJlZaSHEjJ/Zzh7Iz+r0=; b=TlFvqxNoOaBg0qHwOuaygQ9zoLvc7gvZsrcldOpHwQmQ7nuVNk9o4IgS Y/bHT7gEIq0e6M8qRSdNatYXEV35NPRnbaL0b9Y59t7/u75L6OZgp2Xiq WzxsIUxqWkJCpBIFMN7WJigSYCPIxR0So+vxcnHua2NuxOlHYbtBxqi+J n0E9zw2cD3mz34yUxydty9a+p+RulNA1uaOauMC2vQ+NR9TTneOrwfTOP OeSGYIjnoKER22oPwFhhGiv8Emk31vmOAh8iTRj+OYodHGETmdmhrliLB RA7QBD6gH49E2sGDIhDizzgYCuuIc0z/9XbfaYMVw3HZplTM9FEy5khFD g==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="275701539" X-IronPort-AV: E=Sophos;i="5.93,201,1654585200"; d="scan'208";a="275701539" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 10:45:23 -0700 X-IronPort-AV: E=Sophos;i="5.93,201,1654585200"; d="scan'208";a="551809239" Received: from aahmedsi-mobl.amr.corp.intel.com (HELO desk) ([10.209.118.55]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 10:45:22 -0700 Date: Fri, 29 Jul 2022 10:45:21 -0700 From: 'Pawan Gupta' To: David Laight Cc: Borislav Petkov , 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 Message-ID: <20220729174521.kvbudqlpsoyvxzrv@desk> References: <20220729022851.mdj3wuevkztspodh@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 On Fri, Jul 29, 2022 at 10:40:20AM +0000, David Laight wrote: > 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. Agree. Would it be fair to assume that processes that get direct hardware access are trusted?