Re: [PATCH] bus: fsl-mc: Annotate fsl_mc_io.portal_virt_addr with __counted_by_ptr
From: Christophe Leroy (CS GROUP)
Date: Fri Oct 02 2026 - 09:36:52 EST
On Tue, 22 Sep 2026 22:35:38 +0000, Bill Wendling wrote:
> The GCC and Clang compilers provide the __counted_by_ptr attribute,
> which is used by KASAN and compiler bounds-checking to detect
> out-of-bounds accesses to pointer fields.
>
> In "struct fsl_mc_io", the "portal_virt_addr" pointer points to the MC
> command portal virtual address. The size of this allocated portal in
> bytes is tracked by the "portal_size" field within the same structure.
>
> [...]
Applied, thanks!
[1/1] bus: fsl-mc: Annotate fsl_mc_io.portal_virt_addr with __counted_by_ptr
commit: df0fd0f5af4ddd84a76e21da8e6b489928c5e300
Best regards,
--
Christophe Leroy (CS GROUP) <chleroy@xxxxxxxxxx>