SIGILL on instruction "stck" under qemu-s390x in user mode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
qemu-s390x in user mode crashes with SIGILL (under host architecture x86_64, running Debian unstable) when executing target instruction "stck" ("STORE CLOCK", see https:/
This bug manifested itself as a crash of ssh-keygen program, which uses "stck" to obtain some bits of randomness during key creation. Bisection of the code led to the attached minimal example. Compile with (inside an s390x system):
$ gcc -c -o test.o test.c
$ gcc -c -o rdtsc.o rdtsc.S
$ gcc -o test test.o rdtsc.o
Then run test. It will crash with SIGILL in user mode and run fine in system mode. Also, compare with the original file at https:/
Running qemu-s390x with options -d in_asm,
Thanks, Giovanni.
Changed in qemu: | |
status: | Fix Committed → Fix Released |
I am also attaching the compiled program, in case it is helpful.