1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/s390/block
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
..
dasd.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_3990_erp.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_alias.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_devmap.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dasd_diag.c dasd: move queue setup to common code 2024-03-06 08:27:00 -07:00
dasd_diag.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dasd_eckd.c s390/dasd: Fix invalid dereferencing of indirect CCW data pointer 2024-07-03 16:27:06 +02:00
dasd_eckd.h s390/dasd: add device ping attribute 2022-09-21 08:32:51 -06:00
dasd_eer.c s390/dasd: use new address translation helpers 2024-03-13 09:23:46 +01:00
dasd_erp.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dasd_fba.c s390/dasd: Fix invalid dereferencing of indirect CCW data pointer 2024-07-03 16:27:06 +02:00
dasd_fba.h s390/dasd: fix typo in copyright statement 2019-12-20 11:52:01 -07:00
dasd_genhd.c for-6.9/block-20240310 2024-03-11 11:43:44 -07:00
dasd_int.h for-6.9/block-20240310 2024-03-11 11:43:44 -07:00
dasd_ioctl.c dasd_format(): killing the last remaining user of ->bd_inode 2024-05-03 02:36:56 -04:00
dasd_proc.c s390/dasd: Remove PRINTK_HEADER and KMSG_COMPONENT definitions 2024-02-08 10:12:01 -07:00
dcssblk.c more s390 updates for 6.9 merge window 2024-03-19 11:38:27 -07:00
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
Makefile s390: remove xpram device driver 2021-09-07 13:38:42 +02:00
scm_blk.c s390/scm: use new address translation helpers 2024-03-13 09:23:47 +01:00
scm_blk.h block: remove genhd.h 2022-02-02 07:49:59 -07:00
scm_drv.c s390/scm: Make struct scm_driver::remove return void 2021-07-21 11:53:42 +02:00