]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/sclp: Fix SCCB present check
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Mon, 18 Aug 2025 10:21:52 +0000 (12:21 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 20 Aug 2025 14:37:27 +0000 (16:37 +0200)
commit430fa71027b6ac9bb0ce5532b8d0676777d4219a
treec076ace7715454db7e1fc1d6066bf1c29a42ea7c
parentfcc43a7e294f877021c4fa71276920f543e8e298
s390/sclp: Fix SCCB present check

Tracing code called by the SCLP interrupt handler contains early exits
if the SCCB address associated with an interrupt is NULL. This check is
performed after physical to virtual address translation.

If the kernel identity mapping does not start at address zero, the
resulting virtual address is never zero, so that the NULL checks won't
work. Subsequently this may result in incorrect accesses to the first
page of the identity mapping.

Fix this by introducing a function that handles the NULL case before
address translation.

Fixes: ada1da31ce34 ("s390/sclp: sort out physical vs virtual pointers usage")
Cc: stable@vger.kernel.org
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/char/sclp.c