Re: [PATCH] soc: qcom: smd-rpm: Avoid out-of-bounds write on empty error message

From: Bjorn Andersson

Date: Wed Dec 02 2026 - 22:49:41 EST



On Wed, 18 Nov 2026 18:19:58 +0530, Sneh Mankad wrote:
> For an error response the RPM driver copies the error string from IO
> memory into a fixed size stack buffer and NUL terminates it at
> msgbuf[len - 1].
>
> The copy length is derived from the message length advertised by the
> RPM firmware, so a message that carries no payload leaves len at zero
> and the NUL termination writes one byte before the buffer.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: smd-rpm: Avoid out-of-bounds write on empty error message
commit: 0da87f9221116664d9ce560e02210b862f506144

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