vm_area at addr ffffffffc0800000 is not marked as VM_IOREMAP

Alexei Starovoitov alexei.starovoitov at gmail.com
Fri Mar 8 09:53:50 PST 2024


On Fri, Mar 8, 2024 at 9:24 AM Christoph Hellwig <hch at infradead.org> wrote:
>
> On Fri, Mar 08, 2024 at 09:20:24AM -0800, Alexei Starovoitov wrote:
> > ok. Like the attached patch?
>
> Looks sensibe, but I think the powerpc callers of ioremap_page_range
> will need the same treatment.

Good point. Only one of the callers in arch/powerpc needs adjusting.
Found few other similar arch users.
See attached patch.

ioremap_page() in arch/arm/mm/ioremap.c is an interesting case.
It is EXPORT_SYMBOL, but there are no in-tree users.
I think we shouldn't apply checks to it,
since some out-of-tree module may fail.
I have no arm boards to test, I suggest we play safe than sorry.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mm-Introduce-vmap_page_range-to-map-pages-in-PCI-add.patch
Type: application/octet-stream
Size: 6504 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20240308/9f87617c/attachment.obj>


More information about the linux-arm-kernel mailing list