On Mon, 11 Jun 2018 19:26:47 +0200 Thomas Huth <[email protected]> wrote:
I've tweaked $SUBJECT to hw/s390x/ipl: Fix crashes when using -kernel/-initrd with small images > Add a sanity checks to fix the following two crashes: Also, s/Add a sanity checks/Add sanity checks/ > > $ echo "Insane in the mainframe" > /tmp/test.txt > $ s390x-softmmu/qemu-system-s390x -kernel /tmp/test.txt -append xyz > Segmentation fault (core dumped) > $ s390x-softmmu/qemu-system-s390x -kernel /tmp/test.txt -initrd /tmp/test.txt > Segmentation fault (core dumped) > > Signed-off-by: Thomas Huth <[email protected]> > --- > v2: Fixed 2nd crash with -initrd > > hw/s390x/ipl.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) Thanks, applied.
