[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163960827806.3071514.11059170619331104073.b4-ty@linaro.org>
Date: Wed, 15 Dec 2021 16:44:49 -0600
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: Stephen Boyd <swboyd@...omium.org>
Cc: linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH] remoteproc: qcom: Don't memcpy_toio more than is provided
On Tue, 16 Nov 2021 22:54:54 -0800, Stephen Boyd wrote:
> If the string passed into qcom_pil_info_store() isn't as long as
> PIL_RELOC_NAME_LEN we'll try to copy the string assuming the length is
> PIL_RELOC_NAME_LEN to the io space and go beyond the bounds of the
> string. Let's only copy as many byes as the string is long, ignoring the
> NUL terminator.
>
> This fixes the following KASAN error:
>
> [...]
Applied, thanks!
[1/1] remoteproc: qcom: Don't memcpy_toio more than is provided
commit: fdc12231d885119cc2e2b4f3e0fbba3155f37a56
Best regards,
--
Bjorn Andersson <bjorn.andersson@...aro.org>
Powered by blists - more mailing lists