Re: (subset) [PATCH 1/2] firmware: qcom: pas-tee: Always initialize resource table output size

From: Bjorn Andersson

Date: Sun Nov 08 2026 - 15:38:20 EST



On Mon, 02 Nov 2026 16:01:11 +0100, Krzysztof Kozlowski wrote:
> qcom_pas_tee_get_rsc_table() sets the "output_rt_size" only when the first
> TEE invocation reports a size smaller than the input table, or when the
> second invocation returns a non-zero size. If the TEE reports a size
> bigger or equal to the input size on the first call, but then returns
> size of 0 on the second call, the function returns NULL (no table) and
> leaves "output_rt_size" output parameter untouched.
>
> [...]

Applied, thanks!

[2/2] firmware: qcom: pas-tee: Fix purely theoretical out-of-bounds read of resource table
commit: 203dd5eb5b223cc10f674c1b9e5be507fbd06a59

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>