Re: [PATCH 3/5] riscv: mm: Fix NULL pointer dereference in __set_memory

From: Michael Neuling

Date: Fri Apr 10 2026 - 02:24:01 EST


> > area = find_vm_area((void *)start);
> > + if (!area) {
> > + ret = -EINVAL;
> > + goto unlock;
> > + }
> > page_start = (start - (unsigned long)area->addr) >> PAGE_SHIFT;
> >
> > for (i = page_start; i < page_start + numpages; ++i) {
>
> Which caller would end up calling __set_memory() in such a way?

It wouldn't. You're right on this and the other two. Sorry for the noise.

Mikey