Re: [PATCH] powerpc/highmem: Properly handle fragmented memory

2022-10-04 Thread Michael Ellerman
On Tue, 20 Sep 2022 19:36:42 +0200, Christophe Leroy wrote: > In addition to checking whether a page is reserved before allocating > it to highmem, verify that it is valid memory. > > Otherwise the kernel Oopses as below: > > [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off

Re: [PATCH] powerpc/highmem: Properly handle fragmented memory

2022-09-20 Thread Pali Rohár
On Tuesday 20 September 2022 19:36:42 Christophe Leroy wrote: > In addition to checking whether a page is reserved before allocating > it to highmem, verify that it is valid memory. > > Otherwise the kernel Oopses as below: > > [0.00] mem auto-init: stack:off, heap alloc:off, heap free:of

[PATCH] powerpc/highmem: Properly handle fragmented memory

2022-09-20 Thread Christophe Leroy
In addition to checking whether a page is reserved before allocating it to highmem, verify that it is valid memory. Otherwise the kernel Oopses as below: [0.00] mem auto-init: stack:off, heap alloc:off, heap free:off [0.00] Kernel attempted to read user page (7df58) - exploit atte