[PATCH] firmware: arm_scmi: quirk: fix write to string constant
Johan Hovold
johan at kernel.org
Fri Aug 29 07:29:48 PDT 2025
On Fri, Aug 29, 2025 at 03:21:52PM +0200, Johan Hovold wrote:
> The quirk version range is typically a string constant and must not be
> modified (e.g. as it may be stored in read-only memory):
>
> Unable to handle kernel write to read-only memory at virtual
> address ffffc036d998a947
>
> Fix the range parsing so that it operates on a copy of the version range
> string, and mark all the quirk strings as const to reduce the risk of
> introducing similar future issues.
With Jan's permission, let's add:
Reported-by: Jan Palus <jpalus at fastmail.com>
> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220437
> Fixes: 487c407d57d6 ("firmware: arm_scmi: Add common framework to handle firmware quirks")
> Cc: stable at vger.kernel.org # 6.16
> Cc: Cristian Marussi <cristian.marussi at arm.com>
> Signed-off-by: Johan Hovold <johan at kernel.org>
Johan
More information about the linux-arm-kernel
mailing list