[PATCH 4/5 v16] ARM: Initialize the mapping of KASan shadow memory
Linus Walleij
linus.walleij at linaro.org
Mon Oct 19 08:57:17 EDT 2020
On Mon, Oct 19, 2020 at 12:05 PM Mike Rapoport <rppt at linux.ibm.com> wrote:
> On Mon, Oct 19, 2020 at 11:42:44AM +0200, Ard Biesheuvel wrote:
> > > > + for_each_memblock(memory, reg) {
> > > > + void *start = __va(reg->base);
> > > > + void *end = __va(reg->base + reg->size);
> > > > +
> > >
> > > I've killed for_each_memblock() recently and we have now
> > >
> > > for_each_mem_range(idx, &pa_start, &pa_end)
> > >
> > > instead.
> > >
> >
> > Will the enumeration include NOMAP regions as well? We could actually
> > omit them here, since they don't need KASAN shadow.
>
> The NOMAP regions are omitted.
Hm I suppose I need to update the patch series once the merge
window closes on top of v5.10-rc1, then use this nifty facility
in Russell's patch tracker that can update pending patches.
I thought it would be safe to put them in the patch tracker after
16 iterations, haha :D
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list