From: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>
To: "kirill.shutemov@linux.intel.com"
<kirill.shutemov@linux.intel.com>,
"linux-coco@lists.linux.dev" <linux-coco@lists.linux.dev>,
"Hansen, Dave" <dave.hansen@intel.com>,
"Li, Rongqing" <lirongqing@baidu.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>
Subject: Re: [PATCH][v4] virt: tdx-guest: Don't free decrypted memory
Date: Mon, 2 Dec 2024 18:10:13 +0000 [thread overview]
Message-ID: <bd072a45a755eb2be1fe4c1c95c27f7cd0635a27.camel@intel.com> (raw)
In-Reply-To: <c248f101-4c57-455f-9f70-53b3bd9602f0@intel.com>
On Mon, 2024-12-02 at 10:05 -0800, Dave Hansen wrote:
> On 11/27/24 08:48, Edgecombe, Rick P wrote:
> > On Wed, 2024-06-19 at 19:18 +0800, Li RongQing wrote:
> > > In CoCo VMs it is possible for the untrusted host to cause
> > > set_memory_decrypted() to fail such that an error is returned
> > > and the resulting memory is shared. Callers need to take care
> > > to handle these errors to avoid returning decrypted (shared)
> > > memory to the page allocator, which could lead to functional
> > > or security issues.
> > >
> > > Leak the decrypted memory when set_memory_decrypted() fails,
> > > and don't need to print an error since set_memory_decrypted()
> > > will call WARN_ONCE().
> > >
> > > Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
> > > Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> > > Signed-off-by: Li RongQing <lirongqing@baidu.com>
> > It needs a Fixes tag.
> > Fixes: f4738f56d1dc ("virt: tdx-guest: Add Quote generation support using
> > TSM_REPORTS")
> >
> > I think it is a worthwhile fix. Without it the guest can be tricked into freeing
> > shared pages, or trying to execute from them and crashing.
>
> Does this need a "Fixes" and cc:stable@?
Oh yea, probably worth a cc:stable too.
prev parent reply other threads:[~2024-12-02 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 11:18 [PATCH][v4] virt: tdx-guest: Don't free decrypted memory Li RongQing
2024-07-04 1:00 ` Li,Rongqing
2024-11-27 6:25 ` 答复: " Li,Rongqing
2024-11-27 16:48 ` Edgecombe, Rick P
2024-12-02 18:05 ` Dave Hansen
2024-12-02 18:10 ` Edgecombe, Rick P [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd072a45a755eb2be1fe4c1c95c27f7cd0635a27.camel@intel.com \
--to=rick.p.edgecombe@intel.com \
--cc=dave.hansen@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=lirongqing@baidu.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).