[<prev] [<thread-prev] [day] [month] [year] [list]
Message-ID: <177099499992.1792318.9934885934778681296.b4-ty@kernel.org>
Date: Fri, 13 Feb 2026 15:03:24 +0000
From: Marc Zyngier <maz@...nel.org>
To: Kees Cook <kees@...nel.org>
Cc: Oliver Upton <oupton@...nel.org>,
Joey Gouly <joey.gouly@....com>,
Suzuki K Poulose <suzuki.poulose@....com>,
Zenghui Yu <yuzenghui@...wei.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Alexander Potapenko <glider@...gle.com>,
linux-arm-kernel@...ts.infradead.org,
kvmarm@...ts.linux.dev,
Timothy Hayes <timothy.hayes@....com>,
Sascha Bischoff <Sascha.Bischoff@....com>,
Keir Fraser <keirf@...gle.com>,
linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2] KVM: arm64: vgic: Handle const qualifier from gic_kvm_info allocation type
On Fri, 06 Feb 2026 14:30:23 -0800, Kees Cook wrote:
> In preparation for making the kmalloc family of allocators type aware,
> we need to make sure that the returned type from the allocation matches
> the type of the variable being assigned. (Before, the allocator would
> always return "void *", which can be implicitly cast to any pointer type.)
>
> The assigned type is "struct gic_kvm_info", but the returned type,
> while matching, is const qualified. To get them exactly matching, just
> use the dereferenced pointer for the sizeof().
>
> [...]
Applied to fixes, thanks!
[1/1] KVM: arm64: vgic: Handle const qualifier from gic_kvm_info allocation type
commit: ee5c38a8d31e5dea52299c43c2ec3213351ab6e1
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists