summary refs log tree commit diff stats
path: root/results/classifier/118/semantic-x86/1373
blob: 2b522635283076ad150f9afac2d1680c8ef97fbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
x86: 0.998
semantic: 0.996
assembly: 0.951
architecture: 0.941
graphic: 0.898
i386: 0.835
device: 0.784
vnc: 0.746
mistranslation: 0.642
kernel: 0.593
ppc: 0.573
boot: 0.505
socket: 0.502
debug: 0.488
permissions: 0.472
arm: 0.465
register: 0.422
performance: 0.412
network: 0.373
risc-v: 0.317
files: 0.298
peripherals: 0.217
PID: 0.169
virtual: 0.143
VMM: 0.139
KVM: 0.113
TCG: 0.102
hypervisor: 0.066
user-level: 0.040
--------------------
x86: 1.000
semantic: 0.986
i386: 0.984
assembly: 0.966
debug: 0.271
register: 0.134
files: 0.041
TCG: 0.033
kernel: 0.028
performance: 0.023
user-level: 0.016
architecture: 0.015
virtual: 0.011
PID: 0.009
device: 0.007
peripherals: 0.006
hypervisor: 0.005
boot: 0.004
VMM: 0.004
network: 0.003
socket: 0.003
permissions: 0.003
graphic: 0.003
KVM: 0.002
risc-v: 0.001
vnc: 0.001
ppc: 0.001
mistranslation: 0.000
arm: 0.000

x86 ADOX and ADCX semantic bug
Description of problem:
The result of instruction ADOX and ADCX are different from the CPU. The value of one of EFLAGS is different.
Steps to reproduce:
1. Compile this code
```
void main() {
    asm("push 512; popfq;");
    asm("mov rax, 0xffffffff84fdbf24");
    asm("mov rbx, 0xb197d26043bec15d");
    asm("adox eax, ebx");
}
```
2. Execute and compare the result with the CPU. This problem happens with ADCX, too (with CF).
    - CPU
        - OF = 0
    - QEMU
        - OF = 1
Additional information:
This bug is discovered by research conducted by KAIST SoftSec.