Re: [Qemu-devel] qemu-img segfaults on MIPS hosts due to not having an executable stack

2016-06-13 Thread Ralf Baechle
On Mon, Jun 13, 2016 at 04:16:02PM +0100, Peter Maydell wrote: > On 13 June 2016 at 15:45, Daniel P. Berrange wrote: > > On Mon, Jun 13, 2016 at 03:11:08PM +0100, Peter Maydell wrote: > >> QEMU currently allocates coroutine stacks with a plain g_malloc(), > >> which makes

Re: [Qemu-devel] qemu-img segfaults on MIPS hosts due to not having an executable stack

2016-06-13 Thread Peter Maydell
On 13 June 2016 at 15:45, Daniel P. Berrange wrote: > On Mon, Jun 13, 2016 at 03:11:08PM +0100, Peter Maydell wrote: >> QEMU currently allocates coroutine stacks with a plain g_malloc(), >> which makes them r/w but not exec. That's a bug in QEMU which we >> should fix (though

Re: [Qemu-devel] qemu-img segfaults on MIPS hosts due to not having an executable stack

2016-06-13 Thread Daniel P. Berrange
On Mon, Jun 13, 2016 at 03:11:08PM +0100, Peter Maydell wrote: > I investigated this qemu-img segfault today > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815409 > > It's pretty confusing, but as you can see from this gdb log: > > 0x00513488 185 if (sizef < 0 || sizef >

[Qemu-devel] qemu-img segfaults on MIPS hosts due to not having an executable stack

2016-06-13 Thread Peter Maydell
I investigated this qemu-img segfault today https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815409 It's pretty confusing, but as you can see from this gdb log: 0x00513488 185 if (sizef < 0 || sizef > UINT64_MAX) { 2: x/3i $pc => 0x513488 :move