Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3267872lqo; Wed, 15 May 2024 05:03:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7Bsr8S4Y1qjLfncby8mjpc2cDtJeBSaZVPCWOGtEev4b0safGHVHaWfwc0AanR6BKX28191HrU79B+G40TfI/piaMWYvVvYUU1uDP+g== X-Google-Smtp-Source: AGHT+IEL8A2XWNM+mWJCGSr3C26+iqxqLScA/Elm9c01wbxXBj7K1rNu2gh4qz5pQwFFW3IDMXnz X-Received: by 2002:a05:6830:1249:b0:6f0:e870:e3e8 with SMTP id 46e09a7af769-6f0e9169dd7mr17668604a34.21.1715774619196; Wed, 15 May 2024 05:03:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715774619; cv=pass; d=google.com; s=arc-20160816; b=PFpi1i+PvUoqa6EsH8Cf5hqGiXweSW/gnNAKqeNnTJshW97wZaEQ8iDTKdI1vP5ymo r0TbuPJmB3n/pWDReWSDqBxUY4duUgCt0hGIkF6TKQyIOGgS/WMCKkKHYIj7jrieMTTD nMnRmTOydz4HH6Z8/hg8rt6/ghYo8e7OlSpkHBo+CBNhDD8lCqevnNCH1gB3LS/LaTmJ MB0hSzKUm++f/Dc6NIlEkzNujkxfpHQWbBVgd0AwshtsnHIENar0vo4q04xPBWzI20+V BNk8dq3JO1rCkqgdDZiQ834Vuv2Ljpn0PTyXZWzqio6pdSWx25NwbwWfVvnT9pcCRUjc opOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=kfxt6JsqCE1IzZSlDw/+iyGpDKdZQRGvvHfBK97525Y=; fh=yS9NQ6daWbjuzbtfIsHfh8xgCZ7azL6I4SVox6zKglI=; b=jC4WhUmhw9a/XLibNqCmNslqu+MBTgtdVOGA8F1SZg16gDOd+SrJ2MIMe5VHK+SKhK /Hcon3FpPmbfCRBVJ0uLjeO/tADnNAeIsQ8hn34trhHiIjzOgzr3kokPOIucMk53B53i Le5yVu8JJm5X6R+FF1pYRf3q/1+wQqJD1wc7wCBy/HUtDTjNs0c+7NRov8g45ztZNVl0 ZsX28SqCY4D1qalElz//QSGqez+4Ggc1wGhsY37sN1YaxgnMdndJV1OJP8Sh2X2Q7pat wlPKCDWOK3ognGgtz0wYAWM4/h5Hfyx8D7IP4O1w2meHJ0xYxGjvCx/7P60sPFo8doGZ silQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tWm0WQZG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 46e09a7af769-6f0eb1c2f32si4069454a34.204.2024.05.15.05.03.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 05:03:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tWm0WQZG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 70E1F281820 for ; Wed, 15 May 2024 12:03:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3F7475805; Wed, 15 May 2024 12:03:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tWm0WQZG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D214A58AC3; Wed, 15 May 2024 12:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774600; cv=none; b=UQ1xti6rwQKDx9D10Qo7vqwHpXfhJu2pUyA+CvS4abwIluFCmf9XfM69z1bBqkxfFSCHJyae+cepjwDaDwcv3Q8yTN0u4u69TTQa9LxNAvmYg+nPhmyL69BM99EPf+Gg+ln9D7pn0HH+PCkOZQ5bU8fSXnAkowaExZ6pcngiIG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715774600; c=relaxed/simple; bh=kfxt6JsqCE1IzZSlDw/+iyGpDKdZQRGvvHfBK97525Y=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=dGBzZG6F1mkO3RtxOipafTZCZPJLINTEEfMQa3VEsey6DTx2QPgWkyCiVUhcUSxqSERPsRidWWEhra38VncSpu0u6Ady1RXSk4aiMbWFOh2wdt+3LsEfaUHYcOYH7p+Q0ALAJrs32camPgi1hSVPH+wXWr/qTeevVy/QZHRiB+k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tWm0WQZG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F27BC4AF07; Wed, 15 May 2024 12:03:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715774599; bh=kfxt6JsqCE1IzZSlDw/+iyGpDKdZQRGvvHfBK97525Y=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=tWm0WQZGtAjM8hMW47UD5kIiDpCVHnZyLFQ9wltS1Ljao2EyCXRroQV8DQooL3ub2 Sq1F+0qxhn0u7tfXKNXYBoXbmaEEQHU5MpbxT3kujk0r8CU7QRP0mlprMV51COSh9T k7Muo8iDAC41WaqgvYYXMXgGEItOV9MI9ZhHgAa4NSPXcAiZu+nW9aBO35YIX6xAE2 UC7nz1kUYDJdxbFGYgAldS24sd4eiDGYa7dR0eXxr9++V37bW61z60um1vgdwRTvlN M3UMbRejCh2dIlzH1luw0TtNALBQFK5MSV+rBTZSclsTm3FEMDFc9MucC3Z72zUvQQ p5KWr2DOaS6QA== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Wed, 15 May 2024 15:03:15 +0300 Message-Id: Cc: "James Bottomley" , "Mimi Zohar" , "David Howells" , "Paul Moore" , "James Morris" , , , , , Subject: Re: [RFC PATCH 2/2] KEYS: implement derived keys From: "Jarkko Sakkinen" To: "Jarkko Sakkinen" , "Ignat Korchagin" X-Mailer: aerc 0.17.0 References: <20240503221634.44274-1-ignat@cloudflare.com> <20240503221634.44274-3-ignat@cloudflare.com> In-Reply-To: On Wed May 15, 2024 at 3:00 PM EEST, Jarkko Sakkinen wrote: > I did as much clarification as I possibly can. > > Also, if you look at confidential computing platforms there's exactly > two assets that they use lock into machine: > > - Binary > - CPU material > > Only carved into stone immutable material for key derivation. > > You can use mm_struct->exe_file binary if that will work out for you. > I'm done with this version. Pretty good case for having SGX, TDX and SNP in something else than just Xeon's and EPYC's ;-) But yeah within time limits I have I've used more quota for this than I should have. I look at +1 (if there is one). BR, Jarkko