From: Isaku Yamahata <isaku.yamahata@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
stable@vger.kernel.org, rick.p.edgecombe@intel.com
Subject: Re: [PATCH v2] virt: guest_memfd: fix reference leak on hwpoisoned page
Date: Wed, 12 Jun 2024 16:36:32 -0700 [thread overview]
Message-ID: <20240612233632.GB1900928@ls.amr.corp.intel.com> (raw)
In-Reply-To: <20240611102515.48048-1-pbonzini@redhat.com>
On Tue, Jun 11, 2024 at 06:25:15AM -0400,
Paolo Bonzini <pbonzini@redhat.com> 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: Isaku Yamahata <isaku.yamahata@intel.com>
--
Isaku Yamahata <isaku.yamahata@intel.com>
prev parent reply other threads:[~2024-06-12 23:36 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
2024-06-12 23:36 ` Isaku Yamahata [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=20240612233632.GB1900928@ls.amr.corp.intel.com \
--to=isaku.yamahata@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rick.p.edgecombe@intel.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®