Alexei Starovoitov 3e49a866c9 mm: Enforce VM_IOREMAP flag and range in ioremap_page_range.
There are various users of get_vm_area() + ioremap_page_range() APIs.
Enforce that get_vm_area() was requested as VM_IOREMAP type and range
passed to ioremap_page_range() matches created vm_area to avoid
accidentally ioremap-ing into wrong address range.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/bpf/20240305030516.41519-2-alexei.starovoitov@gmail.com
2024-03-06 10:19:04 -08:00
..
2024-01-17 13:03:37 -08:00
2023-12-12 10:11:32 +01:00
2024-01-18 15:16:57 -08:00
2024-01-10 16:43:55 -08:00
2023-04-12 17:36:23 -07:00
2024-02-24 15:53:40 -08:00
2022-10-03 14:02:43 -07:00
2024-01-11 10:07:29 -08:00
2024-02-10 08:02:48 -08:00
2024-01-10 16:43:55 -08:00
2023-06-23 16:59:30 -07:00
2023-04-12 17:36:23 -07:00