You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
firmware: arm_scmi: quirk: Prevent writes to string constants
commit 572ce54 upstream.
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: 487c407 ("firmware: arm_scmi: Add common framework to handle firmware quirks")
Cc: [email protected] # 6.16
Cc: Cristian Marussi <[email protected]>
Reported-by: Jan Palus <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Message-Id: <[email protected]>
[sudeep.holla: minor commit message rewording; switch to cleanup helpers]
Signed-off-by: Sudeep Holla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
0 commit comments