arm64: spectre: Fix hard lockup and cleanup mitigation messages
Status from this message: Applied to arm64 (for-next/fixes), thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 1 replyApplied
- v2 posting 2/22 patches 2 repliesSuperseded
- v2 posting 1/22 patches 0 repliesSuperseded
Changes in v3 from the cover letter
- Fix whitespace corruption (tabs vs spaces).
- Factor out the common suffix into a single static const and use "%s" as suggested.
Patches in v3 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | cpu:Remove the print when the CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY Kconfig option is disabled.arch/ | +0 | 0 replies | |
| 2/2 | cpu: fix hard lockup triggered by printk calls within scheduling contextarch/ arch/ arch/ | +25 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] arm64: spectre: Fix hard lockup and cleanup mitigation messages
Quoted 5 lines · Will Deacon
Is the compiler smart enough to store a single string for the "mitigation disabled by command-line option\n" part? If not, you might want to use %s to avoid wasting memory. (I was going to check with llvm but I'm unable to apply your changes due to whitespace corruption).
Thanks, Will, for the helpful review. v3 incorporates your suggestion by factoring the common suffix into a single const string and switching the pr_info() calls to use "%s". The whitespace corruption has also been fixed (restore tabs, no line-wrapped literals), so this version should apply cleanly.
This series addresses one main issues around Spectre mitigation messages:
1) Avoid multiple copies of the common suffix "mitigation disabled by command-line option\n" by using a single constant string and "%s" in pr_info().
v3 changes:
- Fix whitespace corruption (tabs vs spaces).
- Factor out the common suffix into a single static const and use "%s" as suggested.
shechenglong (2):
cpu:Remove the print when the CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY
Kconfig option is disabled.
cpu: fix hard lockup triggered by printk calls within scheduling
context
arch/arm64/include/asm/spectre.h | 1 + arch/arm64/kernel/cpufeature.c | 6 ++++++ arch/arm64/kernel/proton-pack.c | 37 +++++++++++++++++--------------- 3 files changed, 27 insertions(+), 17 deletions(-)
Signature · 1 line
2.33.0