diff options
author | Johan Hovold <johan@kernel.org> | 2025-08-29 15:21:52 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2025-09-02 11:23:42 +0100 |
commit | 572ce546390d1b7c99b16c38cae1b680c716216c (patch) | |
tree | 004dac67b9d3835aa0a585ae4000501645a54939 /rust/helpers/rcu.c | |
parent | 72ca981dba5e98c2b1c2956016cc4be934d9fbea (diff) |
firmware: arm_scmi: quirk: Prevent writes to string constants
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). Attempting
to do so can trigger faults such as:
| Unable to handle kernel write to read-only memory at virtual
| address ffffc036d998a947
Update 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.
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220437
Fixes: 487c407d57d6 ("firmware: arm_scmi: Add common framework to handle firmware quirks")
Cc: stable@vger.kernel.org # 6.16
Cc: Cristian Marussi <cristian.marussi@arm.com>
Reported-by: Jan Palus <jpalus@fastmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Message-Id: <20250829132152.28218-1-johan@kernel.org>
[sudeep.holla: minor commit message rewording; switch to cleanup helpers]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'rust/helpers/rcu.c')
0 files changed, 0 insertions, 0 deletions