diff options
| author | Jean-Philippe Brucker <[email protected]> | 2021-07-21 07:18:35 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2021-07-21 10:23:25 +0000 |
| commit | a7c3acca53801e10a77ede6b759a73f5ac4bc261 (patch) | |
| tree | aa6739e676233664393b106c706c111b86ff3751 /lib/netdev-notifier-error-inject.c | |
| parent | arm64: entry: fix KCOV suppression (diff) | |
| download | kernel-a7c3acca53801e10a77ede6b759a73f5ac4bc261.tar.gz kernel-a7c3acca53801e10a77ede6b759a73f5ac4bc261.zip | |
arm64: smccc: Save lr before calling __arm_smccc_sve_check()
Commit cfa7ff959a78 ("arm64: smccc: Support SMCCC v1.3 SVE register
saving hint") added a call to __arm_smccc_sve_check() which clobbers the
lr (register x30), causing __arm_smccc_hvc() to return to itself and
crash. Save lr on the stack before calling __arm_smccc_sve_check(). Save
the frame pointer (x29) to complete the frame record, and adjust the
offsets used to access stack parameters.
Acked-by: Ard Biesheuvel <[email protected]>
Acked-by: Mark Brown <[email protected]>
Fixes: cfa7ff959a78 ("arm64: smccc: Support SMCCC v1.3 SVE register saving hint")
Signed-off-by: Jean-Philippe Brucker <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
