diff options
Diffstat (limited to 'results/classifier/zero-shot-user-mode/output/instruction/1847467')
| -rw-r--r-- | results/classifier/zero-shot-user-mode/output/instruction/1847467 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/output/instruction/1847467 b/results/classifier/zero-shot-user-mode/output/instruction/1847467 new file mode 100644 index 000000000..c253d4ba4 --- /dev/null +++ b/results/classifier/zero-shot-user-mode/output/instruction/1847467 @@ -0,0 +1,22 @@ +instruction: 0.717 +runtime: 0.193 +syscall: 0.090 + + + +qemu-x86_64 segment prefixes error + +qemu-x86_64 version 4.1.0 (qemu-x86_64 version 4.0.0 also have the issue) + +In 64-bit mode (x86_64) the DS, ES, SS or CS segment prefixes should be ignored; qemu-x86_64 does not ignore them. + +example: an x86_64 instructions preceded by FS DS (0x64 0x26) segment prefixes have the linear address of its memory reference flat-mapped (as if DS was in action) whereas it should be FS-mapped (offset by FS_base, because the DS, ES, SS or CS are just ignored). + + +I attach a small C++ program that shows this discrepancy. + +$ ./sample +I'm not in QEMU + +$ qemu-x86_64 ./sample +I'm in QEMU \ No newline at end of file |