linux/drivers/s390
Stefan Haberland b3a58f3b90 s390/dasd: Fix invalid dereferencing of indirect CCW data pointer
Fix invalid dereferencing of indirect CCW data pointer in
dasd_eckd_dump_sense() that leads to a kernel panic in error cases.

When using indirect addressing for DASD CCWs (IDAW) the CCW CDA pointer
does not contain the data address itself but a pointer to the IDAL.
This needs to be translated from physical to virtual as well before
using it.

This dereferencing is also used for dasd_page_cache and also fixed
although it is very unlikely that this code path ever gets used.

Fixes: c0bd39601c ("s390/dasd: use new address translation helpers")
Cc: stable@vger.kernel.org
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2024-07-03 16:27:06 +02:00
..
block s390/dasd: Fix invalid dereferencing of indirect CCW data pointer 2024-07-03 16:27:06 +02:00
char s390/sclp: Fix sclp_init() cleanup on failure 2024-06-24 11:07:06 +02:00
cio s390/vfio_ccw: Fix target addresses of TIC CCWs 2024-07-03 12:05:32 +02:00
crypto s390/zcrypt: Use kvcalloc() instead of kvmalloc_array() 2024-05-17 10:43:43 +02:00
net more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
scsi s390/zfcp: use new address translation helpers 2024-03-13 09:23:48 +01:00
virtio s390/virtio_ccw: Fix config change notifications 2024-06-17 21:49:01 +02:00
Makefile