Re: [Qemu-devel] [PATCH v3] exec: Fix non-power-of-2 sized accesses

2013-08-16 Thread Alex Williamson
On Fri, 2013-08-16 at 23:00 +0200, Laszlo Ersek wrote: > On 08/16/13 18:00, Alex Williamson wrote: > > Since commit 23326164 we align access sizes to match the alignment of > > the address, but we don't align the access size itself. This means we > > let illegal access sizes (ex. 3) slip through i

Re: [Qemu-devel] [PATCH v3] exec: Fix non-power-of-2 sized accesses

2013-08-16 Thread Laszlo Ersek
On 08/16/13 18:00, Alex Williamson wrote: > Since commit 23326164 we align access sizes to match the alignment of > the address, but we don't align the access size itself. This means we > let illegal access sizes (ex. 3) slip through if the address is > sufficiently aligned (ex. 4). This results

[Qemu-devel] [PATCH v3] exec: Fix non-power-of-2 sized accesses

2013-08-16 Thread Alex Williamson
Since commit 23326164 we align access sizes to match the alignment of the address, but we don't align the access size itself. This means we let illegal access sizes (ex. 3) slip through if the address is sufficiently aligned (ex. 4). This results in an abort which would be easy for a guest to tri