Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp391475ybt; Mon, 6 Jul 2020 11:51:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyU8Ys79OQgol45JpVBCtkLYH1VgNFAjqm3XlZfYDcQMP95pgxP+CKvQ1u232y02nKc/rkp X-Received: by 2002:aa7:dd10:: with SMTP id i16mr55832802edv.227.1594061517478; Mon, 06 Jul 2020 11:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594061517; cv=none; d=google.com; s=arc-20160816; b=VTFMeDJepAM0V3O2TasAlFDNhzQyMfCfBUVbsYS8rtaJZ7Ltu9xA6cd11Nm08g8BG3 Z+ylDU0iJ1BVD2+VwJQypvDJnxsQmvmKUxePmBMYZ2hVd520hUnvkzmHAkEqP07qqCTO gsNMLY+Tz+a7a3vYieCL+PMJn9gruU6o0z9cVAtAiAioe5STTtH3RBmjk+g5fSk/dhXK oojpi6uFMGyoJniz6dDAagYezVjZuFVdL/7p7+jZN+3Jz23iw7Eli2DDV/pT/Y2gdZgs jsm4NBjLbrhy5DZxQkRtn12zDF7QoeDOugJ4ur3fFbKQzl7vORYkewgl6rRKdvuWLDgG 899g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1Lww5h6eGO0NKU0l00Uc42fzMNJurRSbsex5AsPetoY=; b=tucqcNgobwSwRBN68vk6DckJYdvzVcWDh6uw0sPA73Sj9F0lJVQ3ujvkWGwQdNwbQh X4oiNdC7VW8CnbCHTXf3yLjtQXSyKSxsfqm8JPj//RCeV+10EFz0IDGsHdCZJLHOP2ZI U6CeOvXkRf6iULph7CGvrAlP+au9ONzmphsXeiTWuyvuVyCT5xajaJUDAIh1kMtkL3t4 OjXeyfc9SSLBHZy4sr2iGLaJO77sw8bxDBjaliOVbhAwxAuNYaW9XTLGnc0fdznI6wei xY1CcrKT74mW+xk4sfTjCGJ4DVmPSVJT5PQM/O0NzaVWwsNNBcuEune5PFDCw4WuGIXa DqPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+FtnLgd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si13498245eds.305.2020.07.06.11.51.34; Mon, 06 Jul 2020 11:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T+FtnLgd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729762AbgGFSs4 (ORCPT + 99 others); Mon, 6 Jul 2020 14:48:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:42452 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729569AbgGFSs4 (ORCPT ); Mon, 6 Jul 2020 14:48:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 44B6A20773; Mon, 6 Jul 2020 18:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594061336; bh=TmzFSzpXz/IVyxhzyFOMQr63SdCmzzt9hF2zFcEfusA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T+FtnLgdUY+221uDBs5Ha8exDMqail3b7n8Jia7lbUoHBH/GyyUX5isSnxbdpDMfl mVA69kh3JU6+46LL4UY7kQ3nrwbAPSFmEZtZE9KDoUTV9TdouG4oB4qeEehE9HG4mH LXwLsGTCgO/ih+UHSnsrlItO5tNGvguXMDwGK2tk= Date: Mon, 6 Jul 2020 20:48:55 +0200 From: Greg Kroah-Hartman To: Bjorn Helgaas Cc: Rajat Jain , David Woodhouse , Lu Baolu , Joerg Roedel , Bjorn Helgaas , "Rafael J. Wysocki" , Len Brown , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Raj Ashok , lalithambika.krishnakumar@intel.com, Mika Westerberg , Jean-Philippe Brucker , Prashant Malani , Benson Leung , Todd Broch , Alex Levin , Mattias Nissler , Rajat Jain , Bernie Keany , Aaron Durbin , Diego Rivas , Duncan Laurie , Furquan Shaikh , Jesse Barnes , Christian Kellner , Alex Williamson , oohall@gmail.com, Saravana Kannan , Suzuki K Poulose , Arnd Bergmann , Heikki Krogerus Subject: Re: [PATCH v2 2/7] PCI: Set "untrusted" flag for truly external devices only Message-ID: <20200706184855.GA2335741@kroah.com> References: <20200630075554.GA619174@kroah.com> <20200706164126.GA124329@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200706164126.GA124329@bjorn-Precision-5520> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 06, 2020 at 11:41:26AM -0500, Bjorn Helgaas wrote: > On Tue, Jun 30, 2020 at 09:55:54AM +0200, Greg Kroah-Hartman wrote: > > On Mon, Jun 29, 2020 at 09:49:38PM -0700, Rajat Jain wrote: > > > The "ExternalFacing" devices (root ports) are still internal devices that > > > sit on the internal system fabric and thus trusted. Currently they were > > > being marked untrusted. > > > > > > This patch uses the platform flag to identify the external facing devices > > > and then use it to mark any downstream devices as "untrusted". The > > > external-facing devices themselves are left as "trusted". This was > > > discussed here: https://lkml.org/lkml/2020/6/10/1049 > > > > {sigh} > > > > First off, please use lore.kernel.org links, we don't control lkml.org > > and it often times has been down. > > > > Also, you need to put all of the information in the changelog, referring > > to another place isn't always the best thing, considering you will be > > looking this up in 20+ years to try to figure out why people came up > > with such a crazy design. > > > > But, the main point is, no, we did not decide on this. "trust" is a > > policy decision to make by userspace, it is independant of "location", > > while you are tieing it directly here, which is what I explicitly said > > NOT to do. > > > > So again, no, I will NAK this patch as-is, sorry, you are mixing things > > together in a way that it should not do at this point in time. > > What do you see being mixed together here? I acknowledge that the > name of "pdev->untrusted" is probably a mistake. But this patch > doesn't change anything there. It only changes the treatment of the > edge case of the "ExternalFacing" ports. Previously we treated them > as being external themselves, which does seem wrong. I don't see the patch here, and it's been a while but I think there is a mixture of "location" and "trust" happening here with a single value when they should be separate. Hopefully the next round of this patch series will be better. thanks, greg k-h