[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <174747706460.12970.18215881041765719309.b4-ty@csgroup.eu>
Date: Sat, 17 May 2025 12:19:35 +0200
From: Christophe Leroy <christophe.leroy@...roup.eu>
To: Kees Cook <kees@...nel.org>
Cc: Christophe Leroy <christophe.leroy@...roup.eu>,
Sean Anderson <sean.anderson@...ux.dev>,
Camelia Groza <camelia.groza@....com>,
"David S. Miller" <davem@...emloft.net>,
Vladimir Oltean <vladimir.oltean@....com>,
"Dr. David Alan Gilbert" <linux@...blig.org>,
linuxppc-dev@...ts.ozlabs.org, linux-arm-kernel@...ts.infradead.org,
Michael Ellerman <mpe@...erman.id.au>, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH] soc: fsl: qbman: Remove const from portal->cgrs allocation type
On Fri, 25 Apr 2025 23:20:41 -0700, 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 qman_cgrs *", but the returned type,
> while technically matching, is const qualified. As there is no general
> way to remove const qualifiers, adjust the allocation type to match
> the assignment.
>
> [...]
Applied, thanks!
[1/1] soc: fsl: qbman: Remove const from portal->cgrs allocation type
commit: 5ddac92be4209f29ec26b3ec59a08fc76afe9ab1
Best regards,
--
Christophe Leroy <christophe.leroy@...roup.eu>
Powered by blists - more mailing lists