All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question Consultation] KVM: x86: No lock protection was applied in handle_ept_misconfig of kernel 5.10?
@ 2025-07-09  6:32 zoudongjie (A)
  2025-07-09 12:42 ` Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: zoudongjie (A) @ 2025-07-09  6:32 UTC (permalink / raw)
  To: seanjc@google.com, pbonzini@redhat.com, tglx@linutronix.de,
	mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com,
	x86@kernel.org, hpa@zytor.com, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org
  Cc: Chenzhendong (alex), luolongmin, Mujinsheng (DxJanesir),
	chenjianfei (D), Fangyi (Eric), lishan (E), Renxuming, suxiaodong,
	caijunjie (A), zoudongjie (A)

Hi all,

I noticed that in handle_ept_misconfig(), kvm_io_bus_write() is called. And within kvm_io_bus_write(), BUS is obtained
through srcu_dereference(). During this process, kvm->slots_lock is not acquired, nor is srcu_read_lock() called for 
protection. If another process is synchronizing BUS at the same time, synchronize_srcu_expedited() cannot safely reclaim
space(it cannot protect srcu_dereference() outside the critical section?), how can we ensure that BUS obtained by
kvm_io_bus_write() is the latest?

Thanks,
Junjie Cai

Reported by: Junjie Cai <caijunjie15@h-partners.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-09 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-09  6:32 [Question Consultation] KVM: x86: No lock protection was applied in handle_ept_misconfig of kernel 5.10? zoudongjie (A)
2025-07-09 12:42 ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.