panda-re / panda

Platform for Architecture-Neutral Dynamic Analysis
https://panda.re
Other
2.48k stars 479 forks source link

Older ARM snapshots can no longer be loaded #560

Closed AndrewFasano closed 3 years ago

AndrewFasano commented 4 years ago

ARM snapshots (and recordings) taken before 7c647d37970215a38a07c8f6f7eb8941e4a76fe9 (the old date on that commit indicates when it was merged into upstream, we pulled it into master on March 9th in #555) may have an incorrectly initialized sd-card. That commit fixes this bug, but breaks backwards comparability with these older snapshots.

panda-system-arm arm_wheezy.qcow -loadvm root -display none -M versatilepb -append root=/dev/sda1 -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile
panda-system-arm: Missing section footer for sd-card
panda-system-arm: Error -22 while loading VM state
AndrewFasano commented 4 years ago

Updated this issue to better reflect what's going on. Currently trying to design a solution, either a utility to update the older snapshots to have a properly initialized (but empty) sd-card peripheral, or a flag to disable this patch and let the old snapshots run

AndrewFasano commented 4 years ago

I just updated the arm qcow we host at http://panda-re.mit.edu/qcows/linux/debian/7.3/arm/debian_7.3_arm.qcow to use a new root snapshot so it's usable with modern panda. The version hosted by moyix is still out of date, but #679 will swap pypanda to pull from that server which should fix this issue for new users.

Should have made that change a few months ago.

github-actions[bot] commented 3 years ago

Stale issue message