summary refs log tree commit diff stats
path: root/gitlab/issues/target_i386/host_missing/accel_TCG/1372.toml
blob: ee7411c972421e23e1bce572a951fae7abdc06aa (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
id = 1372
title = "x86 BEXTR semantic bug"
state = "closed"
created_at = "2022-12-16T06:51:11.166Z"
closed_at = "2023-02-16T13:09:22.647Z"
labels = ["Closed::Fixed", "accel: TCG", "target: i386"]
url = "https://gitlab.com/qemu-project/qemu/-/issues/1372"
host-os = "Windows 10 20H2"
host-arch = "x86"
qemu-version = "7.1.90 (v7.2.0-rc0)"
guest-os = "None"
guest-arch = "x86"
description = """The result of instruction BEXTR is different with from the CPU. The value of destination register is different. I think QEMU does not consider the operand size limit."""
reproduce = """1. Compile this code
```
void main() {
    asm("mov rax, 0x17b3693f77fb6e9");
    asm("mov rbx, 0x8f635a775ad3b9b4");
    asm("mov rcx, 0xb717b75da9983018");
    asm("bextr eax, ebx, ecx");
}
```
2. Execute and compare the result with the CPU.
    - CPU
        - RAX = 0x5a
    - QEMU
        - RAX = 0x635a775a"""
additional = """This bug is discovered by research conducted by KAIST SoftSec."""