Re: [Qemu-devel] [PATCH] linux-user: Don't overrun guest buffer in sched_getaffinity

2014-05-28 Thread Peter Maydell
On 15 May 2014 14:40, Peter Maydell wrote: > If the guest's "long" type is smaller than the host's, then > our sched_getaffinity wrapper needs to round the buffer size > up to a multiple of the host sizeof(long). This means that when > we copy the data back from the host buffer to the guest's > bu

[Qemu-devel] [PATCH] linux-user: Don't overrun guest buffer in sched_getaffinity

2014-05-15 Thread Peter Maydell
If the guest's "long" type is smaller than the host's, then our sched_getaffinity wrapper needs to round the buffer size up to a multiple of the host sizeof(long). This means that when we copy the data back from the host buffer to the guest's buffer there might be more than we can fit. Rather than