diff options
| author | Jiakai Xu <xujiakai2025@iscas.ac.cn> | 2026-05-25 04:36:42 +0300 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-06-04 08:42:40 +0300 |
| commit | ce31a1ee2a1ed61f6d42308633f9bed717f5348b (patch) | |
| tree | 3008785954ba8c9b35377b52733a8abdff814688 /scripts/git.orderFile | |
| parent | 7705be59eb2d173933b55608ff7d26e14343e2f3 (diff) | |
| download | linux-ce31a1ee2a1ed61f6d42308633f9bed717f5348b.tar.xz | |
RISC-V: KVM: Document a TOCTOU race in SBI system suspend handler
The SUSP handler checks that all other vCPUs are stopped before
entering system suspend, but a concurrent HSM HART_START can start
a vCPU after it has already passed the check.
This is a known TOCTOU race. We do not fix it because:
1. Triggering it requires a pathological guest.
2. Only guest state is at risk, not host integrity.
3. Userspace can double-check vCPU states before suspend.
Add a comment documenting the race and the rationale for not fixing it.
Signed-off-by: Jiakai Xu <jiakaiPeanut@gmail.com>
Signed-off-by: Jiakai Xu <xujiakai2025@iscas.ac.cn>
Assisted-by: YuanSheng:DeepSeek-V3.2
Reviewed-by: Andrew Jones <andrew.jones@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260525013642.999187-1-xujiakai2025@iscas.ac.cn
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
