s390/mm,fault: simplify kfence fault handling
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 12 Oct 2023 07:40:48 +0000 (09:40 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 23 Oct 2023 16:21:22 +0000 (18:21 +0200)
commit0f1a14e0348eb48e93e139af569944349b725f3f
treee76242c33e4f818976ddd4048b777b495fb66e6e
parent64ea33fb09f8fdcc9eb9f253906886a5801bb48a
s390/mm,fault: simplify kfence fault handling

do_no_context() can be simplified by removing its fault parameter,
which is only used to decide if kfence_handle_page_fault() should be
called.

If the fault happened within the kernel space it is ok to always check
if this happened on a page which was unmapped because of the kfence
feature. Limiting the check to the VM_FAULT_BADCONTEXT case doesn't
add any value.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/mm/fault.c