Re: [PATCH] KVM: Remove the kvm debugfs directory if kvm_init() fails
"Huang, Kai" <[email protected]>
| Newsgroups | org.kernel.vger.stable,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
> > > > The stale /sys/kernel/debug/kvm directory isn't just cosmetic: a > > subsequent attempt to load KVM makes debugfs_create_dir() fail with > > -EEXIST, after which kvm_debugfs_dir holds an ERR_PTR and all stat > > files are silently never created again. Worse, the leaked stat files > > reference file_operations and stat data that live in the KVM module; if > > the module is unloaded after the failed initialization, reading the > > stale files is a use-after-free. > > > > [...] > > Already posted (twice) and applied: > > https://lore.kernel.org/all/[email protected] Do we need to "Cc: stable"? The one in your tree (commit db3a46e200df2) doesn't have that.