Re: [PATCH] RISC-V: Fix out-of-bounds accesses in init_resources()

2021-03-16 Thread Palmer Dabbelt
On Fri, 12 Mar 2021 07:46:34 PST (-0800), ge...@linux-m68k.org wrote: init_resources() allocates an array of resources, based on the current total number of memory regions and reserved memory regions. However, allocating this array using memblock_alloc() might increase the number of reserved mem

Re: [PATCH] RISC-V: Fix out-of-bounds accesses in init_resources()

2021-03-15 Thread Atish Patra
On Fri, Mar 12, 2021 at 7:46 AM Geert Uytterhoeven wrote: > > init_resources() allocates an array of resources, based on the current > total number of memory regions and reserved memory regions. However, > allocating this array using memblock_alloc() might increase the number > of reserved memory