diff options
| author | Tao Cui <cuitao@kylinos.cn> | 2026-09-04 21:45:13 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-09-04 21:45:13 +0800 |
| commit | 9296375902579f9b0e456bbb76e5cf179e5a4e0b (patch) | |
| tree | c57a74e22cf5c10d0ba5644393dca550e7fdc1f5 /scripts/Makefile.thinlto | |
| parent | 501514d6ebd2111c353a1296f25dbe22fbd64657 (diff) | |
| download | linux-stable-9296375902579f9b0e456bbb76e5cf179e5a4e0b.tar.gz linux-stable-9296375902579f9b0e456bbb76e5cf179e5a4e0b.zip | |
LoongArch: KVM: Fix TOCTOU race on pv_features
In kvm_loongarch_cpucfg_set_attr() the check-then-set on
kvm->arch.pv_features is lockless, so two vCPUs can race past the
validation and set different values. Add a spinlock to protect it.
Cc: stable@vger.kernel.org
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
