diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-26 11:32:28 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-26 11:32:36 +0200 |
| commit | adedf8771bc4de3113041ca21bd4d0d1c0014b6a (patch) | |
| tree | 1e8e456a6e4247061767e0d42740a62102ae1550 /results/classifier/semantic-bugs-usermode/test/1375 | |
| parent | ba2789bd7d81618a42dc7f69706a7acfa591630a (diff) | |
| download | qemu-analysis-adedf8771bc4de3113041ca21bd4d0d1c0014b6a.tar.gz qemu-analysis-adedf8771bc4de3113041ca21bd4d0d1c0014b6a.zip | |
filter for semantic-user-mode bugs
Diffstat (limited to 'results/classifier/semantic-bugs-usermode/test/1375')
| -rw-r--r-- | results/classifier/semantic-bugs-usermode/test/1375 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/results/classifier/semantic-bugs-usermode/test/1375 b/results/classifier/semantic-bugs-usermode/test/1375 new file mode 100644 index 000000000..3d7746382 --- /dev/null +++ b/results/classifier/semantic-bugs-usermode/test/1375 @@ -0,0 +1,32 @@ +semantic: 0.988 +instruction: 0.945 +graphic: 0.792 +device: 0.739 +other: 0.687 +assembly: 0.675 +vnc: 0.520 +network: 0.458 +boot: 0.413 +socket: 0.407 +mistranslation: 0.269 +KVM: 0.247 + +x86 SSE/SSE2/SSE3 instruction semantic bugs with NaN +Description of problem: +The result of SSE/SSE2/SSE3 instructions with NaN is different from the CPU. From Intel manual Volume 1 Appendix D.4.2.2, they defined the behavior of such instructions with NaN. But I think QEMU did not implement this semantic exactly because the byte result is different. +Steps to reproduce: +1. Compile this code +``` +void main() { + asm("mov rax, 0x000000007fffffff; push rax; mov rax, 0x00000000ffffffff; push rax; movdqu XMM1, [rsp];"); + asm("mov rax, 0x2e711de7aa46af1a; push rax; mov rax, 0x7fffffff7fffffff; push rax; movdqu XMM2, [rsp];"); + asm("addsubps xmm1, xmm2"); +} +``` +2. Execute and compare the result with the CPU. This problem happens with other SSE/SSE2/SSE3 instructions specified in the manual, Volume 1 Appendix D.4.2.2. + - CPU + - xmm1[3] = 0xffffffff + - QEMU + - xmm1[3] = 0x7fffffff +Additional information: +This bug is discovered by research conducted by KAIST SoftSec. |