Vulnerability record
LoongArch: Remove arch-specific __smp_mb__{before,after}_atomic()
In the Linux kernel, the following vulnerability has been resolved:
LoongArch: Remove arch-specific smp_mb{before,after}_atomic()
When running BPF selftest "test_progs -t timer_lockup" on a LoongArch machine, the kernel intermittently experiences soft lockups and panics in hrtimer_cancel().
The root cause is that the bpf_timer_cancel() implementation relies on smp_mb__after_atomic() to provide a full data barrier after a relaxed atomic_inc() to ensure the proper store-load ordering before performing lockless dependency checks on weakly-ordered architectures, such as on LoongArch, but…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources