s390/vmem: do not silently ignore mapping limit
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 1 Sep 2023 06:11:14 +0000 (08:11 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 5 Sep 2023 18:12:52 +0000 (20:12 +0200)
commit06fc3b0d2251b550f530a1c42e0f9c5d022476dd
tree2e263b7abd271e0f0f8ad23c426f218c2c36a98a
parentf59ec04d382d2f2528f439947e215a52703e0094
s390/vmem: do not silently ignore mapping limit

The only interface that allows drivers establishing
liner mappings is vmem_add_mapping(). It does check
a requested range against allowed limits and a call
to modify_pagetable() with an invalid mapping range
is impossible.

Hence, an attempt to map an address range outside of
the identity mapping or vmemmap array could only be
kernel bug.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/mm/vmem.c