mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
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: [email protected] Reviewed-by: Bibo Mao <[email protected]> Signed-off-by: Tao Cui <[email protected]> Signed-off-by: Huacai Chen <[email protected]>