From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA654C433FE for ; Thu, 30 Sep 2021 14:58:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BBDBE61A10 for ; Thu, 30 Sep 2021 14:58:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352064AbhI3PAC (ORCPT ); Thu, 30 Sep 2021 11:00:02 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:26595 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352062AbhI3PAA (ORCPT ); Thu, 30 Sep 2021 11:00:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633013897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=zptMMX+xorScj8oCKZfu7vNyw+QcA+InPw6+3Zh+fcA=; b=edzoEBKInFpvCqIvzzgKdWSAPuxp0yf6AmVUK/fSX9uHqSI0NRsTCxPSHyB0ip3y8aEf2X Svo6A20Uk6DuaNG/5NGUe3ZhVsIZZ6oSubVUD7eFgk66KMyGaC3rahGpE2p6Org2cu6DS/ JA4BWS2iv++XVzsuBsu9P2YN4Zt7uMI= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-86-85rGB6qvNvGxsfMJoaFTXA-1; Thu, 30 Sep 2021 10:58:14 -0400 X-MC-Unique: 85rGB6qvNvGxsfMJoaFTXA-1 Received: by mail-wr1-f70.google.com with SMTP id j16-20020adfa550000000b0016012acc443so1767705wrb.14 for ; Thu, 30 Sep 2021 07:58:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=zptMMX+xorScj8oCKZfu7vNyw+QcA+InPw6+3Zh+fcA=; b=sp/aYyNbomKRI6p0atCndRcVQ3ECmJzDYDeKf//GnKI/D1Sbig0dPMb5ffs3f3AX2J 50NrUlQCvJ0+yHuhGdqD5uavBPXzDXz2othj1ztWgpwhUJDrgb4w4F+VTTdj4zerYGlR Laiy+56OR8RhmehY049z+RKTAm57+sNik0fzDWcyzqR1cvptjhuZF2mOidJb48VRs5rm tPUNn30W4ifcmwqKVzUZWOcynaSk4aOK8isPyVhrpeS59jQ8ofJsZLt4mho4kaQWZl7R pWMm2VCfBDzXJZrh1/cGHfZjVMEBrJgbbiLtpE8i9ripdC2KfdqsLSjUFruN5aEfzF2s Pu5A== X-Gm-Message-State: AOAM532Chi5uTnsPyrfZB+yD4lGZNQEUwRAUdKnlEPEKKh1ZSw4zWnBc AS25DluAiaVdgXpNiy6YIll6FjgNfiKSYIvzseI9bFfBssU4XiqU4F9fPfIU9cZKgE+25enmLWk Bw+5KdrspMk1YQc651+kb X-Received: by 2002:a1c:7e87:: with SMTP id z129mr5645387wmc.75.1633013893053; Thu, 30 Sep 2021 07:58:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaSf6qIxOAUaDvu9F6CRNxVN7kuMkgxNG2gPYtmYIu+P3izWa6fLM0ccmLZ3hvWl8yaURe3A== X-Received: by 2002:a1c:7e87:: with SMTP id z129mr5645358wmc.75.1633013892858; Thu, 30 Sep 2021 07:58:12 -0700 (PDT) Received: from redhat.com ([2.55.134.220]) by smtp.gmail.com with ESMTPSA id q18sm5031993wmc.7.2021.09.30.07.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 07:58:12 -0700 (PDT) Date: Thu, 30 Sep 2021 10:58:07 -0400 From: "Michael S. Tsirkin" To: Alan Stern Cc: Greg Kroah-Hartman , Kuppuswamy Sathyanarayanan , Borislav Petkov , x86@kernel.org, Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Andreas Noever , Michael Jamet , Yehezkel Bernat , "Rafael J . Wysocki" , Mika Westerberg , Jonathan Corbet , Jason Wang , Dan Williams , Andi Kleen , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-usb@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 2/6] driver core: Add common support to skip probe for un-authorized devices Message-ID: <20210930104924-mutt-send-email-mst@kernel.org> References: <20210930010511.3387967-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930010511.3387967-3-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930065807-mutt-send-email-mst@kernel.org> <20210930144305.GA464826@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930144305.GA464826@rowland.harvard.edu> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, Sep 30, 2021 at 10:43:05AM -0400, Alan Stern wrote: > I don't see any point in talking about "untrusted drivers". If a > driver isn't trusted then it doesn't belong in your kernel. Period. > When you load a driver into your kernel, you are implicitly trusting > it (aside from limitations imposed by security modules). Trusting it to do what? Historically a ton of drivers did not validate input from devices they drive. Most still don't. > The code > it contains, the module_init code in particular, runs with full > superuser permissions. -- MST