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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B165C54E94 for ; Thu, 26 Jan 2023 14:59:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbjAZO7d (ORCPT ); Thu, 26 Jan 2023 09:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjAZO7b (ORCPT ); Thu, 26 Jan 2023 09:59:31 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12EB262249 for ; Thu, 26 Jan 2023 06:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674745124; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l4P3EekWE0wh4v7Y6JRDBM+Ls4fIcP2CQOrYJI/TUYM=; b=DbFSrA4YgucYOC7Jc5zzsl1hBtLqrrXRwmbCRAbEgGnM+O3L0vZWeJ8wZr8pfFZN2WNzWf 0h33fFKUujXw+2v62YZ5kfnEc/lNXGaoKoJ7Fia4TuYcI7cSkRwpUzWlQqrW98nYKW+tuW 3L8ljezPnSp+tzrwPcup1HKIqKAT1fY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-59-7rfmPQ_DMRWAoDzFO-cLIQ-1; Thu, 26 Jan 2023 09:58:42 -0500 X-MC-Unique: 7rfmPQ_DMRWAoDzFO-cLIQ-1 Received: by mail-wm1-f69.google.com with SMTP id r15-20020a05600c35cf00b003d9a14517b2so2944185wmq.2 for ; Thu, 26 Jan 2023 06:58:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l4P3EekWE0wh4v7Y6JRDBM+Ls4fIcP2CQOrYJI/TUYM=; b=0TqIq+niYVpG3IR6VsIXpt56BhAQPGOUEUNQV7GDX0OK/41mW0ktAH1fL3TnoEzp9G Ol9rKEpOAE89P3hSghPSOxj62nOfu78XS2xTNhyr/faa8+eAiHO5Ivrz3Azp28AUHSVR ERz8VRj0MIVU3Vi0IYS3e/uHYCF4xay6m1xBBdc02NQtcRvCNb/SAUWkmtZYhHhCISYV iRQELc6o5VQuGC/3qVgqB5fEAObdhj6L/EubAKXOoZvzrTXlDgswtUOzblOOUcLPdn5C 5BMtUEBTkxmY/fwtGQl6XS7WTiEf9d7WlDPImPhlHnJFgYPI4mWpgTHLAKdjxRMn7F95 dafw== X-Gm-Message-State: AFqh2krK0l17JQtrw8aQlKROsw3yDo/s5eyoyDCBa0eU2goBiWAmt8/0 OgYcNvq++aon43X290gvgWQ01ETH/ZOSNzj2gFV/yMeHJK0k7SyQcHGGzJLaarIo3BLU9J57blH AhacoDlRXoLknluzCDK6bOj7E X-Received: by 2002:a05:600c:1604:b0:3c6:e61e:ae74 with SMTP id m4-20020a05600c160400b003c6e61eae74mr37552767wmn.4.1674745121776; Thu, 26 Jan 2023 06:58:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXvUHkTSF1aTLNZRATAUakPRX7lKJA20hKwBlcnoeqfg7B5Un3oBMDMpd5xsKa7o2OIjjRAhdA== X-Received: by 2002:a05:600c:1604:b0:3c6:e61e:ae74 with SMTP id m4-20020a05600c160400b003c6e61eae74mr37552740wmn.4.1674745121600; Thu, 26 Jan 2023 06:58:41 -0800 (PST) Received: from work-vm (ward-16-b2-v4wan-166627-cust863.vm18.cable.virginm.net. [81.97.203.96]) by smtp.gmail.com with ESMTPSA id l4-20020a05600c1d0400b003db2e3f2c7csm12219398wms.0.2023.01.26.06.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 06:58:41 -0800 (PST) Date: Thu, 26 Jan 2023 14:58:38 +0000 From: "Dr. David Alan Gilbert" To: Richard Weinberger Cc: Daniel =?iso-8859-1?Q?P=2E_Berrang=E9?= , Greg Kroah-Hartman , "Reshetova, Elena" , "Shishkin, Alexander" , "Shutemov, Kirill" , "Kuppuswamy, Sathyanarayanan" , "Kleen, Andi" , "Hansen, Dave" , Thomas Gleixner , Peter Zijlstra , "Wunner, Lukas" , Mika Westerberg , "Michael S. Tsirkin" , Jason Wang , "Poimboe, Josh" , "aarcange@redhat.com" , Cfir Cohen , Marc Orr , "jbachmann@google.com" , "pgonda@google.com" , "keescook@chromium.org" , James Morris , Michael Kelley , "Lange, Jon" , "linux-coco@lists.linux.dev" , Linux Kernel Mailing List Subject: Re: Linux guest kernel threat model for Confidential Computing Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.9 (2022-11-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Richard Weinberger (richard.weinberger@gmail.com) wrote: > On Wed, Jan 25, 2023 at 3:22 PM Daniel P. Berrang? wrote: > > Any virtual device exposed to the guest that can transfer potentially > > sensitive data needs to have some form of guest controlled encryption > > applied. For disks this is easy with FDE like LUKS, for NICs this is > > already best practice for services by using TLS. Other devices may not > > have good existing options for applying encryption. > > I disagree wrt. LUKS. The cryptography behind LUKS protects persistent data > but not transport. If an attacker can observe all IO you better > consult a cryptographer. > LUKS has no concept of session keys or such, so the same disk sector will > always get encrypted with the very same key/iv. Are you aware of anything that you'd use instead? Are you happy with dm-verity for protection against modification? Dave > -- > Thanks, > //richard > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK