Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Steffen Eiden <seiden@linux.ibm.com>
To: Sean Christopherson <seanjc@google.com>
Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH] KVM: Add missing debugfs cleanup in kvm_init error path
Date: Fri, 10 Jul 2026 10:35:21 +0200	[thread overview]
Message-ID: <20260710083521.984749-D-seiden@linux.ibm.com> (raw)
In-Reply-To: <ak_R2YrPFRVVmX4P@google.com>

On Thu, Jul 09, 2026 at 09:52:41AM -0700, Sean Christopherson wrote:
> On Thu, Jul 09, 2026, Steffen Eiden wrote:
> > If any initialization after kvm_init_debug() fails the cleanup code did
> > not remove the debugfs entries. Therefore, the corresponding debugfs
> > entries where still alive but the backing fops are already freed,
> > creating a use-after-free scenario. Fix this by removing the debugfs
> > entries if vfio init fails.
> 
> Already posted, and applied locally on my end.
> 
> https://lore.kernel.org/all/20260706095910.39798-1-leixiang%40kylinos.cn

Oh sorry, I missed that.

      reply	other threads:[~2026-07-10  8:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-09 15:21 [PATCH] KVM: Add missing debugfs cleanup in kvm_init error path Steffen Eiden
2026-07-09 16:52 ` Sean Christopherson
2026-07-10  8:35   ` Steffen Eiden [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=20260710083521.984749-D-seiden@linux.ibm.com \
    --to=seiden@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=seanjc@google.com \
    /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