Re:Using QEMU-user emulation to reverse engineer binaries
by cbmuser on Wednesday May 05, 2021 @01:51AM
(#27046643)
> For those purposes, qemu-user works quite well: we are even considering using it to build the entire riscv64 architecture in the 3.15 release.
We‘ve been doing that in Debian on m68k and sh4 for quite a while now and it helped finding quite a lot of bugs, both in the target-specific emulation code and in the qemu-user code.
There is still one nasty bug in conjunction with glibc if anyone wants to help:
Re:Using QEMU-user emulation to reverse engineer binaries
by nenolod on Wednesday May 05, 2021 @09:55AM
(#27049827)
With musl we discovered that qemu does not always properly initialize structures when doing the syscall translation. Most likely this is a missing initialization.
We‘ve been doing that in Debian on m68k and sh4 for quite a while now and it helped finding quite a lot of bugs, both in the target-specific emulation code and in the qemu-user code.
There is still one nasty bug in conjunction with glibc if anyone wants to help:
> https://sourceware.org/bugzilla/show_bug.cgi?id=23960