Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp664320pxb; Thu, 30 Sep 2021 14:27:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFbVdrLymksTao2oml4he+ba4sFj08kfF5Iy2WGUlT1RC6ym+doMmtE35f5Hq9MtgTeTLR X-Received: by 2002:a17:90a:1d8:: with SMTP id 24mr15433396pjd.69.1633037223784; Thu, 30 Sep 2021 14:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633037223; cv=none; d=google.com; s=arc-20160816; b=iVTNlGhWVxHNK0f7sNWj8H+JM1oirng+aCpyZ1rkEYYTsIpPUkOgzrnvepzyp7FQn/ FT8gl+Yoami9kBl3wioJ1aOCLjMgKpf4Srj8A30lACArYEVv6FEfFpLvYCh0LAsIDN2/ JF97+p8MUCGdRR7WJWmyaRTdEs7GQxqvx9eExftiemMYbq/3+zYoWxOTeZhp9GeKIIXJ 0XGdn+NE6uLShPA+gvjGcHFGZBi7qrWWVa/MdV3wmTF22AmtHhAYUvcHWty+ppAQ6UR4 4egH/Tdsd1gIFUwrlhcjJLaxt32+KaOuxrpvh7QlVwuPxqJxvcbOlqNgko/wth+qkdnh 3LIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=A/vDLdfKP2qLAdWF3VYjjLGfhlFgMsRGfRC3AyIy2Y4=; b=tm15U+joV6Io+364JcGezhW8gpx8lGVwrbwGq35LLujWRv2P9fcwFISBRyKe5C36lx bQJocrIkszE0AI9vieW0q8cUi+hdYqnKxQGmO3fFtlqBrkEO+XJkKiLbda5P/jjcuW8D mw6vBa+MdtoXVoJjkjwR552fgmrnWXcx2dPQ6nFVnb6YuesoQZu7gSzQw7Ue4qAxXbWy jQtk1zT9l6q80jLWu4TtFoAHSuZeG4FS0zkpQQ8zKDtDsrpIU3PNer7OJCYrpg7WZGLw Hx3p84uC3V7wm1fATpypJ9jr25i17FUEKiTdg25o71DCibGli0ZCuctLieOoRXbgrtDp 3LSA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si4832591pgh.145.2021.09.30.14.26.50; Thu, 30 Sep 2021 14:27:03 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347230AbhI3T1W (ORCPT + 99 others); Thu, 30 Sep 2021 15:27:22 -0400 Received: from mga07.intel.com ([134.134.136.100]:15139 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbhI3T1V (ORCPT ); Thu, 30 Sep 2021 15:27:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10123"; a="288924680" X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="288924680" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 12:25:38 -0700 X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="438153571" Received: from akleen-mobl1.amr.corp.intel.com (HELO [10.252.134.229]) ([10.252.134.229]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 12:25:38 -0700 Subject: Re: [PATCH v2 4/6] virtio: Initialize authorized attribute for confidential guest To: "Kuppuswamy, Sathyanarayanan" , Dan Williams , "Michael S. Tsirkin" Cc: Greg Kroah-Hartman , Borislav Petkov , X86 ML , Bjorn Helgaas , Thomas Gleixner , Ingo Molnar , Andreas Noever , Michael Jamet , Yehezkel Bernat , "Rafael J . Wysocki" , Mika Westerberg , Jonathan Corbet , Jason Wang , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux PCI , USB list , virtualization@lists.linux-foundation.org References: <20210930010511.3387967-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930010511.3387967-5-sathyanarayanan.kuppuswamy@linux.intel.com> <20210930065953-mutt-send-email-mst@kernel.org> <6d1e2701-5095-d110-3b0a-2697abd0c489@linux.intel.com> From: Andi Kleen Message-ID: Date: Thu, 30 Sep 2021 12:25:37 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <6d1e2701-5095-d110-3b0a-2697abd0c489@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/30/2021 8:18 AM, Kuppuswamy, Sathyanarayanan wrote: > > > On 9/30/21 6:36 AM, Dan Williams wrote: >>> And in particular, not all virtio drivers are hardened - >>> I think at this point blk and scsi drivers have been hardened - so >>> treating them all the same looks wrong. >> My understanding was that they have been audited, Sathya? > > Yes, AFAIK, it has been audited. Andi also submitted some patches > related to it. Andi, can you confirm. > > We also authorize the virtio at PCI ID level. And currently we allow > console, block and net virtio PCI devices. > > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_NET) }, > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_BLOCK) }, > { PCI_DEVICE(PCI_VENDOR_ID_REDHAT_QUMRANET, VIRTIO_TRANS_ID_CONSOLE) }, > The only drivers that are being audited and fuzzed are these three virtio drivers (in addition to some other x86 code outside the driver model) -Andi