Re: [Qemu-devel] [PATCH 2.2 v3] linux-user: Fix up timer id handling

2014-11-10 Thread Tom Musta
On 11/10/2014 12:21 PM, Alexander Graf wrote: > When creating a timer handle, we give the timer id a special magic offset > of 0xcafe. However, we never mask that offset out of the timer id before > we start using it to dereference our timer array. So we always end up aborting > timer operation

Re: [Qemu-devel] [PATCH 2.2 v3] linux-user: Fix up timer id handling

2014-11-10 Thread Peter Maydell
On 10 November 2014 18:21, Alexander Graf wrote: > When creating a timer handle, we give the timer id a special magic offset > of 0xcafe. However, we never mask that offset out of the timer id before > we start using it to dereference our timer array. So we always end up aborting > timer opera

[Qemu-devel] [PATCH 2.2 v3] linux-user: Fix up timer id handling

2014-11-10 Thread Alexander Graf
When creating a timer handle, we give the timer id a special magic offset of 0xcafe. However, we never mask that offset out of the timer id before we start using it to dereference our timer array. So we always end up aborting timer operations because the timer id is out of bounds. This was not