[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <063a63ddea914ac654cbe9a1d1d6c76986af7882.camel@gmx.de>
Date: Fri, 16 Apr 2021 13:28:19 +0200
From: Mike Galbraith <efault@....de>
To: Dave Young <dyoung@...hat.com>
Cc: LKML <linux-kernel@...r.kernel.org>, Baoquan He <bhe@...hat.com>,
kexec@...ts.infradead.org
Subject: Re: x86/crash: fix crash_setup_memmap_entries() out-of-bounds access
On Fri, 2021-04-16 at 19:07 +0800, Dave Young wrote:
>
> > We're excluding two ranges, allocate the scratch space we need to do that.
>
> I think 1 range should be fine, have you tested 1?
Have now, and vzalloc(struct_size(cmem, ranges, 1)) worked just fine.
-Mike
Powered by blists - more mailing lists