linux-yocto/drivers/s390
Peter Oberparleiter bf83ae3537 s390/sclp: Fix SCCB present check
commit 430fa71027b6ac9bb0ce5532b8d0676777d4219a upstream.

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: ada1da31ce ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:34:36 +02:00
..
block treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
char s390/sclp: Fix SCCB present check 2025-08-28 16:34:36 +02:00
cio treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
crypto s390/ap: Unmask SLCF bit in card and queue ap functions sysfs 2025-08-15 16:39:24 +02:00
net s390/ism: fix concurrency management in ism_cmd() 2025-07-24 10:57:26 +02:00
scsi Merge branch '6.16/scsi-queue' into 6.16/scsi-fixes 2025-06-09 15:34:06 -04:00
virtio s390/virtio_ccw: Don't allocate/assign airqs for non-existing queues 2025-04-09 12:12:41 +02:00
Makefile