WSL2-Linux-Kernel/drivers/s390/block
Stefan Haberland a665e3b7ac s390/dasd: fix error recovery leading to data corruption on ESE devices
commit 7db4042336580dfd75cb5faa82c12cd51098c90b upstream.

Extent Space Efficient (ESE) or thin provisioned volumes need to be
formatted on demand during usual IO processing.

The dasd_ese_needs_format function checks for error codes that signal
the non existence of a proper track format.

The check for incorrect length is to imprecise since other error cases
leading to transport of insufficient data also have this flag set.
This might lead to data corruption in certain error cases for example
during a storage server warmstart.

Fix by removing the check for incorrect length and replacing by
explicitly checking for invalid track format in transport mode.

Also remove the check for file protected since this is not a valid
ESE handling case.

Cc: stable@vger.kernel.org # 5.3+
Fixes: 5e2b17e712 ("s390/dasd: Add dynamic formatting support for ESE volumes")
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20240812125733.126431-3-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-09-04 13:23:15 +02:00
..
Kconfig s390: remove xpram device driver 2021-09-07 13:38:42 +02:00
Makefile s390: remove xpram device driver 2021-09-07 13:38:42 +02:00
dasd.c s390/dasd: fix error recovery leading to data corruption on ESE devices 2024-09-04 13:23:15 +02:00
dasd_3990_erp.c s390/dasd: fix error recovery leading to data corruption on ESE devices 2024-09-04 13:23:15 +02:00
dasd_alias.c s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup 2022-09-28 11:11:54 +02:00
dasd_devmap.c s390/dasd: add copy pair setup 2024-03-26 18:21:14 -04:00
dasd_diag.c dasd: use bvec_virt 2021-08-16 10:50:33 -06:00
dasd_diag.h
dasd_eckd.c s390/dasd: fix error recovery leading to data corruption on ESE devices 2024-09-04 13:23:15 +02:00
dasd_eckd.h s390/dasd: add copy pair setup 2024-03-26 18:21:14 -04:00
dasd_eer.c s390/dasd: add autoquiesce feature 2024-03-26 18:21:14 -04:00
dasd_erp.c
dasd_fba.c dasd: use bvec_virt 2021-08-16 10:50:33 -06:00
dasd_fba.h
dasd_genhd.c block: drop unused includes in <linux/genhd.h> 2022-03-16 14:23:46 +01:00
dasd_int.h s390/dasd: fix error recovery leading to data corruption on ESE devices 2024-09-04 13:23:15 +02:00
dasd_ioctl.c s390/dasd: fix hanging device after quiesce/resume 2023-08-03 10:22:45 +02:00
dasd_proc.c
dcssblk.c block: handle bio_split_to_limits() NULL return 2023-01-18 11:48:58 +01:00
scm_blk.c s390/scm: fix virtual vs physical address confusion 2024-01-25 14:52:30 -08:00
scm_blk.h
scm_drv.c s390/scm: Make struct scm_driver::remove return void 2021-07-21 11:53:42 +02:00