Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp429742pxb; Thu, 30 Sep 2021 09:01:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPSZB2MtPN5P74pH6hA2bTgZsl8OLtvueTcLIb7vh8I91dSAUPxqbjLY3XdFdw2n52ienz X-Received: by 2002:a17:90a:7301:: with SMTP id m1mr7259729pjk.164.1633017700550; Thu, 30 Sep 2021 09:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633017700; cv=none; d=google.com; s=arc-20160816; b=dcQkpf2M2aGw2+IfBItye8pgJ9039S0pa8Mxy39Cwseo4SbzHZsNzLKoEQkfj3r7jh NATHjbdKM2cLcIbpcntanQOT4xvEEBl8X94FNAu6RD2xC9SmMSPIr1KgY3Czh9WspZ9+ 9LoKICWobTKJTWLO9+86prt3IRSu5W0L1rrY5iihbUJx7X/+szsy7fRAMleu9oP52LrL Z6HLD4U68ExfE8sopoaKVpuQsS/2gibjZQsGN73HTdeihaDw1XEjg240BLrmrCHnQ6G/ oISodhpIvAmTLpspLplF6X/qohPh9T0XLZ0ZPFfejmiIgswliKhc5juwpnSa1BKYESJQ OjpA== 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=9CLOOKqnl6WBTiVh9cnZX+K/sEpCo7/g2qzibCOpSjw=; b=OY7J6RKP5yrbNIjJ9nlk2LAB31C1YOkga7/Y/eOJpq89NWle0DftfzKyLQpjnHPT3E o7cszeShSNaDKzixhARVYhKJiDKdVePJNnZdHzSLxvsyTQSBu7WzVd0ujO34L0JCG3L1 ifToDR47jyxbUGwzn5Mj4z6L9fVA8iLCR5InzUrYbFcxkT5Gmcee7B1hU+13MLhqjArr GkZMfWfQWJYKFuThxllGPAuySyl32hu5uPbWXhGv21xgVJdhCuk5OU820tSUYDDX2ac7 8TJ9FlICCP2lhuHY9m6yTeUOLmNsoQMVfYlM8nf3oiCR6Z4Haom5Bx4eX6Uzz9yPHGOK c6+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WFfJsIce; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t12si3686483pll.299.2021.09.30.09.01.23; Thu, 30 Sep 2021 09:01:40 -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=@redhat.com header.s=mimecast20190719 header.b=WFfJsIce; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347677AbhI3QA5 (ORCPT + 99 others); Thu, 30 Sep 2021 12:00:57 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:34027 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347377AbhI3QAz (ORCPT ); Thu, 30 Sep 2021 12:00:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633017552; 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=9CLOOKqnl6WBTiVh9cnZX+K/sEpCo7/g2qzibCOpSjw=; b=WFfJsIce6l1rBp9X4Yi/5B9Dabs2qryT18zWK+ssgoXw+D4TZUV9znp5Ro/UqRq+34UsaZ x6pfZUY7Deduxndoqav9/5LW9gP4oUYVFMCOSvsfZ/9dM2H/A336qWiV26cXjFdAOtWSdh jHTwrGSXPUOZbp9xpvNbVvi82YDNA5Y= 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-422-aQrPpMOdM9-_GIUwHF8iBg-1; Thu, 30 Sep 2021 11:59:11 -0400 X-MC-Unique: aQrPpMOdM9-_GIUwHF8iBg-1 Received: by mail-wr1-f70.google.com with SMTP id v15-20020adfa1cf000000b00160940b17a2so350637wrv.19 for ; Thu, 30 Sep 2021 08:59:11 -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=9CLOOKqnl6WBTiVh9cnZX+K/sEpCo7/g2qzibCOpSjw=; b=6Ere4cydmx+hbW75F2Nd5mqZ1+bkTjGojl/75g4qplTHXAZ501wB1Jzrff5o7foGuZ EPAAxOkjLS1inGbdkxhhZ8qq8YZMqeK14Wb9iTWwwp3Chm1VSKqTwaBw50L6Vl0H26rZ lVgzQOn6RpLUqeFmCgOV1a+qQ3UapA/jFPx0Jeyn1G5i6HNxvQ+k42I1jBwDk4bAxOVy jF9NUZU/3BcgtyzEV+v7LeAUo1h+rcN61maRKFeYPai+LID2HU3LyXDP0TxCHOrvFmK3 NNNdo2U2cEgWwLmpYrhxl2FXJPAO/DHc1L99hM1mo8G9ZHi6AUUzRDd8UmEgNprJGs/i A3aw== X-Gm-Message-State: AOAM533xQizXRlBnEJMVXcHFZBxIN/VEO8Q2la8lBZrZUKqiJgtM1Jbi 2jdlWpdGyeieGvr4SvvATI1VlbpMQP84DUr/8/uUKgt1gOuhQbEIiiLnzzA3uqtsbCBJco34tvG uWGDEJJA2zJ76l7vTpBerqEEM X-Received: by 2002:adf:c7c2:: with SMTP id y2mr6859868wrg.248.1633017550250; Thu, 30 Sep 2021 08:59:10 -0700 (PDT) X-Received: by 2002:adf:c7c2:: with SMTP id y2mr6859853wrg.248.1633017550085; Thu, 30 Sep 2021 08:59:10 -0700 (PDT) Received: from redhat.com ([2.55.134.220]) by smtp.gmail.com with ESMTPSA id o19sm3590521wrg.60.2021.09.30.08.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 08:59:09 -0700 (PDT) Date: Thu, 30 Sep 2021 11:59:04 -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: <20210930115243-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> <20210930104924-mutt-send-email-mst@kernel.org> <20210930153509.GF464826@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210930153509.GF464826@rowland.harvard.edu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 11:35:09AM -0400, Alan Stern wrote: > On Thu, Sep 30, 2021 at 10:58:07AM -0400, Michael S. Tsirkin wrote: > > 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. > > Trusting it to behave properly (i.e., not destroy your system, among > other things). I don't think the current mitigations under discussion here are about keeping the system working. In fact most encrypted VM configs tend to stop booting as a preferred way to handle security issues. > The fact that many drivers haven't been trustworthy is beside the > point. By loading them into your kernel, you are trusting them > regardless. In the end, you may regret having done so. :-( > > Alan Stern -- MST