Re: [Qemu-devel] [PATCH] linux-user: Don't assert if guest tries shmdt(0)

2016-02-11 Thread Laurent Vivier
Le 09/02/2016 16:57, Peter Maydell a écrit : > Our implementation of shmat() and shmdt() for linux-user was > using "zero guest address" as its marker for "entry in the > shm_regions[] array is not in use". This meant that if the > guest did a shmdt(0) we would match on an unused array entry >

Re: [Qemu-devel] [PATCH] linux-user: Don't assert if guest tries shmdt(0)

2016-02-10 Thread Laurent Vivier
Le 09/02/2016 16:57, Peter Maydell a écrit : > Our implementation of shmat() and shmdt() for linux-user was > using "zero guest address" as its marker for "entry in the > shm_regions[] array is not in use". This meant that if the > guest did a shmdt(0) we would match on an unused array entry Is

Re: [Qemu-devel] [PATCH] linux-user: Don't assert if guest tries shmdt(0)

2016-02-10 Thread Peter Maydell
On 10 February 2016 at 18:39, Laurent Vivier wrote: > > > Le 09/02/2016 16:57, Peter Maydell a écrit : >> Our implementation of shmat() and shmdt() for linux-user was >> using "zero guest address" as its marker for "entry in the >> shm_regions[] array is not in use". This meant

[Qemu-devel] [PATCH] linux-user: Don't assert if guest tries shmdt(0)

2016-02-09 Thread Peter Maydell
Our implementation of shmat() and shmdt() for linux-user was using "zero guest address" as its marker for "entry in the shm_regions[] array is not in use". This meant that if the guest did a shmdt(0) we would match on an unused array entry and call page_set_flags() with both start and end