Re: [PATCH] powerpc/papr_scm: initialise metadata_size before reading it
From: Madhavan Srinivasan
Date: Mon Nov 30 2026 - 07:26:47 EST
On Thu, 19 Nov 2026 12:47:45 +0900, Hyunjung Ko wrote:
> papr_scm_probe() reads "ibm,metadata-size" into metadata_size without
> checking the return value, and the property is optional, as the comment
> right above the call says. of_property_read_u32() only writes the output
> when it can decode a value, so for a device tree without that property
> p->metadata_size is set from an uninitialised stack value.
>
> p->metadata_size is the bound for the metadata get/set commands:
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/papr_scm: initialise metadata_size before reading it
https://git.kernel.org/powerpc/c/cf5c56b7b11bec941befd913fbb0732d1d227db3
cheers