From: Liam Merwick <liam.merwick@oracle.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Cc: "stable@vger.kernel.org" <stable@vger.kernel.org>,
Liam Merwick <liam.merwick@oracle.com>
Subject: Re: [PATCH v2] virt: guest_memfd: fix reference leak on hwpoisoned page
Date: Wed, 12 Jun 2024 12:21:29 +0000 [thread overview]
Message-ID: <033dc666-2158-473d-8ce0-a1f172a77a0c@oracle.com> (raw)
In-Reply-To: <20240611102515.48048-1-pbonzini@redhat.com>
On 11/06/2024 11:25, Paolo Bonzini wrote:
> If __kvm_gmem_get_pfn() detects an hwpoisoned page, it returns -EHWPOISON
> but it does not put back the reference that kvm_gmem_get_folio() had
> grabbed. Add the forgotten folio_put().
>
> Fixes: a7800aa80ea4 ("KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory")
> Cc: stable@vger.kernel.org
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
next prev parent reply other threads:[~2024-06-12 12:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 10:25 Paolo Bonzini
2024-06-12 12:21 ` Liam Merwick [this message]
2024-06-12 23:36 ` Isaku Yamahata
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=033dc666-2158-473d-8ce0-a1f172a77a0c@oracle.com \
--to=liam.merwick@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=stable@vger.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
all inboxes | Powered by JetHome®