Re: [Qemu-devel] [PATCH] target-s390x: Only access allocated storage keys

2015-06-03 Thread Aurelien Jarno
On 2015-06-04 00:52, Alexander Graf wrote: > We allocate ram_size / PAGE_SIZE storage keys, so we need to make sure that > we only access that many. Unfortunately the code can overrun this array by > one, potentially overwriting unrelated memory. > > Fix it by limiting storage keys to their scope.

[Qemu-devel] [PATCH] target-s390x: Only access allocated storage keys

2015-06-03 Thread Alexander Graf
We allocate ram_size / PAGE_SIZE storage keys, so we need to make sure that we only access that many. Unfortunately the code can overrun this array by one, potentially overwriting unrelated memory. Fix it by limiting storage keys to their scope. Signed-off-by: Alexander Graf --- target-s390x/mm