Re: [PATCH v2] powerpc/kexec: Annotate umem_info members with __counted_by_ptr()

From: Madhavan Srinivasan

Date: Mon Nov 30 2026 - 07:27:11 EST


On Tue, 20 Oct 2026 13:40:28 +0200, Thorsten Blum wrote:
> Add __counted_by_ptr() to umem_info::buf and umem_info::ranges to
> improve access bounds checking via CONFIG_UBSAN_BOUNDS and
> CONFIG_FORTIFY_SOURCE.
>
> In check_realloc_usable_mem(), return early on krealloc() failure and
> use sizeof(*buf) when deriving max_entries from the allocation size.
>
> [...]

Applied to powerpc/next.

[1/1] powerpc/kexec: Annotate umem_info members with __counted_by_ptr()
https://git.kernel.org/powerpc/c/16c05fac835bfed80386096693027d9f2221cd31

cheers