[Qemu-devel] [PATCH] hw/s390x/ipl: Fix crash that occurs when -kernel is used with small images

2018-06-10 Thread Thomas Huth
Add a sanity check to fix the following crash: $ echo "Insane in the mainframe" > /tmp/test.txt $ s390x-softmmu/qemu-system-s390x -nographic -kernel /tmp/test.txt Segmentation fault (core dumped) Signed-off-by: Thomas Huth --- hw/s390x/ipl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(

Re: [Qemu-devel] [PATCH] hw/s390x/ipl: Fix crash that occurs when -kernel is used with small images

2018-06-11 Thread Christian Borntraeger
On 06/10/2018 03:12 PM, Thomas Huth wrote: > Add a sanity check to fix the following crash: > > $ echo "Insane in the mainframe" > /tmp/test.txt > $ s390x-softmmu/qemu-system-s390x -nographic -kernel /tmp/test.txt > Segmentation fault (core dumped) > > Signed-off-by: Thomas Huth Reviewed-by:

Re: [Qemu-devel] [PATCH] hw/s390x/ipl: Fix crash that occurs when -kernel is used with small images

2018-06-11 Thread Cornelia Huck
On Mon, 11 Jun 2018 09:49:39 +0200 Christian Borntraeger wrote: > On 06/10/2018 03:12 PM, Thomas Huth wrote: > > Add a sanity check to fix the following crash: > > > > $ echo "Insane in the mainframe" > /tmp/test.txt > > $ s390x-softmmu/qemu-system-s390x -nographic -kernel /tmp/test.txt > > Segm

Re: [Qemu-devel] [PATCH] hw/s390x/ipl: Fix crash that occurs when -kernel is used with small images

2018-06-11 Thread Thomas Huth
On 11.06.2018 11:24, Cornelia Huck wrote: > On Mon, 11 Jun 2018 09:49:39 +0200 > Christian Borntraeger wrote: > >> On 06/10/2018 03:12 PM, Thomas Huth wrote: >>> Add a sanity check to fix the following crash: >>> >>> $ echo "Insane in the mainframe" > /tmp/test.txt >>> $ s390x-softmmu/qemu-system

Re: [Qemu-devel] [PATCH] hw/s390x/ipl: Fix crash that occurs when -kernel is used with small images

2018-06-11 Thread Christian Borntraeger
On 06/11/2018 12:08 PM, Thomas Huth wrote: > On 11.06.2018 11:24, Cornelia Huck wrote: >> On Mon, 11 Jun 2018 09:49:39 +0200 >> Christian Borntraeger wrote: >> >>> On 06/10/2018 03:12 PM, Thomas Huth wrote: Add a sanity check to fix the following crash: $ echo "Insane in the main