Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp604851pxb; Thu, 30 Sep 2021 12:55:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypCZgo+YxUg7t02HNWsNuYjDtkfmldD42iCmE+Bw9EsX0JcTIl2zUODypDnGnvNihht/If X-Received: by 2002:a05:6402:1b92:: with SMTP id cc18mr9475723edb.31.1633031712386; Thu, 30 Sep 2021 12:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633031712; cv=none; d=google.com; s=arc-20160816; b=LS1eoaL+AI441/AQ+zU4+kiFbXArbkTZqenvJCnJ93qzwP8v8HkL40MSdLZ+SI2tF8 RJbIPP8vKpDKF/g65Az2Hm4QbHbDcsnn5wVgcM4xUmKY/e835RrKdxea9LkLMiVouruQ fqw+U6ivzIns1mtHbg2l7jnvQuM5MBHcvkrc/tFgpXx1T1QNCtvl054lJAy4Tk7BD2PE zwzqGmINjb+IOG+D7yKB7aRLun5ycThIcpH4VzxaaH1AeKJC6Umrw1UnjwGsbwrmRl3P 6tW5IKoXx5XUn6m3msiE1cocnNH3UMNh1djPrHhD/oct3P1B5ZFGQ0b0U2yX1lmfEJKO eTRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=/B5pn4ZeyTqMec6z1otoWaXLJEUDi3gyRlN7DAhFBGk=; b=RXjg9JCFiRxgP+U3VJmdSjnVYuc+rCc4Prrijc7S87a1yZkMApOuZ4c4mvqEdmepmt NT4bYWijhPxdm6d2LX/YPqZcnBQtH2jO06luIngreKYtFbhypEugE8kl1jmhbPqPinAH a3mzaWD5xfqu4fSqBY0Ii8IjEjvLIQB7oUZn1E6yYJdpy6r9OQRQ0bqAPsC05awH6tCt rekpuZ1eEPh32jswMe/x0A+C49FX8OZgbUmhFHij3FH1ojyGKkRzpBNsd5vF3Q7DG84+ Je/DPzzhkKS1e7Og+lNB3BrKtX5756v1+Ey19FpZ8fBBJDXbgSM1TqOYIrj1uGNqyvLU 1awQ== 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 h13si4524059ejs.401.2021.09.30.12.54.46; Thu, 30 Sep 2021 12:55:12 -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 S1344088AbhI3TSl (ORCPT + 99 others); Thu, 30 Sep 2021 15:18:41 -0400 Received: from mga12.intel.com ([192.55.52.136]:9088 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbhI3TSl (ORCPT ); Thu, 30 Sep 2021 15:18:41 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10123"; a="204751445" X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="204751445" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 12:16:58 -0700 X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="480055921" Received: from rnmathur-mobl1.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.105.173]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 12:16:57 -0700 Subject: Re: [PATCH v2 4/6] virtio: Initialize authorized attribute for confidential guest From: "Kuppuswamy, Sathyanarayanan" To: Greg Kroah-Hartman Cc: Dan Williams , "Michael S. Tsirkin" , 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 , Andi Kleen , Kuppuswamy Sathyanarayanan , Linux Kernel Mailing List , Linux PCI , USB list , virtualization@lists.linux-foundation.org, "Reshetova, Elena" 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> <1cfdce51-6bb4-f7af-a86b-5854b6737253@linux.intel.com> Message-ID: <2ead1b1a-f5d2-f89c-b94f-071fdb99094b@linux.intel.com> Date: Thu, 30 Sep 2021 12:16:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <1cfdce51-6bb4-f7af-a86b-5854b6737253@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Elena On 9/30/21 12:04 PM, Kuppuswamy, Sathyanarayanan wrote: > > > On 9/30/21 8:23 AM, Greg Kroah-Hartman wrote: >> On Thu, Sep 30, 2021 at 08:18:18AM -0700, 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. >> >> What is the official definition of "audited"? > > > In our case (Confidential Computing platform), the host is an un-trusted > entity. So any interaction with host from the drivers will have to be > protected against the possible attack from the host. For example, if we > are accessing a memory based on index value received from host, we have > to make sure it does not lead to out of bound access or when sharing the > memory with the host, we need to make sure only the required region is > shared with the host and the memory is un-shared after use properly. > > Elena can share more details, but it was achieved with static analysis > and fuzzing. Here is a presentation she is sharing about the work at the > Linux Security Summit: > https://static.sched.com/hosted_files/lssna2021/b6/LSS-HardeningLinuxGuestForCCC.pdf > > Andi, can talk more about the specific driver changes that came out of this > effort. > > In our case the driver is considered "hardened" / "audited" if it can handle > the above scenarios. > >> >> thanks, >> >> greg k-h >> > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer