Re: [RFC PATCH v1 01/37] KVM: guest_memfd: Introduce per-gmem attributes, use to guard user mappings

From: Ackerley Tng

Date: Wed Jan 28 2026 - 12:55:57 EST


Yan Zhao <yan.y.zhao@xxxxxxxxx> writes:

>
> [...snip...]
>
>
> So, it's possible for kvm_mem_is_private() to access invalid mtree data and hit
> the WARN_ON_ONCE() in kvm_gmem_get_attributes().
>
> I reported a similar error in [*].
>
> [*] https://lore.kernel.org/all/aIwD5kGbMibV7ksk@xxxxxxxxxxxxxxxxxxxxxxxxx
>

Will add locking in the next revision. Thanks!