diff options
author | Russell Currey <[email protected]> | 2021-10-27 17:24:10 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-10-28 17:23:58 +1100 |
commit | 3c12b4df8d5e026345a19886ae375b3ebc33c0b6 (patch) | |
tree | 4539f57d2e176ac8f1473bb38a05cd3d1ad3e137 /drivers/usb/cdns3/cdns3-trace.c | |
parent | 5d354dc35ebb0b224d627264c60f60dbda3a1bc3 (diff) |
powerpc/security: Use a mutex for interrupt exit code patching
The mitigation-patching.sh script in the powerpc selftests toggles
all mitigations on and off simultaneously, revealing that rfi_flush
and stf_barrier cannot safely operate at the same time due to races
in updating the static key.
On some systems, the static key code throws a warning and the kernel
remains functional. On others, the kernel will hang or crash.
Fix this by slapping on a mutex.
Fixes: 13799748b957 ("powerpc/64: use interrupt restart table to speed up return from interrupt")
Cc: [email protected] # v5.14+
Signed-off-by: Russell Currey <[email protected]>
Acked-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions