panda icon indicating copy to clipboard operation
panda copied to clipboard

OSI failure on boot with asidstory

Open AndrewFasano opened this issue 2 years ago • 0 comments

OSI will trigger an assertion on a linux vm booting if asidstory is loaded, but not if OSI is loaded by itself. Things work fine if loading from a snapshot.

This fails:

./x86_64-softmmu/panda-system-x86_64 -os linux-64-ubuntu:4.15.0-72-generic-noaslr-nokaslr -nographic -m 1g ~/.panda/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2 -panda asidstory

with

panda-system-x86_64: /home/andrew/git/panda/panda/plugins/osi_linux/osi_linux.cpp:259: void on_first_syscall(CPUState*, target_ulong, target_ulong): Assertion `can_rea
d_current(cpu) && "Couldn't find current task struct at first syscall"' failed.
Aborted (core dumped)

but not here

./x86_64-softmmu/panda-system-x86_64 -os linux-64-ubuntu:4.15.0-72-generic-noaslr-nokaslr -nographic -m 1g ~/.panda/bionic-server-cloudimg-amd64-noaslr-nokaslr.qcow2 -panda osi

Manually adding some debug prints to OSI shows that OSI does successfully initialize and run in the 2nd example.

AndrewFasano avatar Oct 14 '22 15:10 AndrewFasano