Re: [PATCH v2] KVM: x86: Use __DECLARE_FLEX_ARRAY() for UAPI structures with VLAs
From: Sean Christopherson
Date: Fri Apr 03 2026 - 11:17:30 EST
On Thu, 05 Mar 2026 20:49:55 +0100, David Woodhouse wrote:
> Commit 94dfc73e7cf4 ("treewide: uapi: Replace zero-length arrays with
> flexible-array members") broke the userspace API for C++.
>
> These structures ending in VLAs are typically a *header*, which can be
> followed by an arbitrary number of entries. Userspace typically creates
> a larger structure with some non-zero number of entries, for example in
> QEMU's kvm_arch_get_supported_msr_feature():
>
> [...]
Applied to kvm-x86 fixes, way back on March 12th (i.e. this has been in -next
for several weeks). Thanks!
[1/1] KVM: x86: Use __DECLARE_FLEX_ARRAY() for UAPI structures with VLAs
https://github.com/kvm-x86/linux/commit/2619da73bb2f
--
https://github.com/kvm-x86/linux/tree/next