WSL2-Linux-Kernel/drivers/s390/block
Stefan Haberland f81a49d13b s390/dasd: fix kernel panic when alias is set offline
The dasd device driver selects which (alias or base) device is used
for a given requests when the request is build. If the chosen alias
device is set offline before the request gets queued to the device
queue the starting function may use device structures that are
already freed. This might lead to a hanging offline process or a
kernel panic.

Add a check to the starting function that returns the request to the
upper layer if the device is already in offline processing.

In addition to that prevent that an alias device that's already in
offline processing gets chosen as start device.

Reviewed-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <peter.oberparleiter@linux.vnet.ibm.com>
Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2015-07-13 11:02:14 +02:00
..
Kconfig s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
Makefile s390/scm_block: force cluster writes 2012-09-26 15:45:01 +02:00
dasd.c s390/dasd: fix kernel panic when alias is set offline 2015-07-13 11:02:14 +02:00
dasd_3990_erp.c s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
dasd_alias.c s390/dasd: fix kernel panic when alias is set offline 2015-07-13 11:02:14 +02:00
dasd_devmap.c s390/dasd: add support for control unit initiated reconfiguration 2014-10-09 09:13:54 +02:00
dasd_diag.c s390/irq: Use defines for external interruption codes 2014-04-03 14:30:52 +02:00
dasd_diag.h s390: remove 31 bit support 2015-03-25 11:49:33 +01:00
dasd_eckd.c s390/dasd: fix inability to set a DASD device offline 2015-04-15 12:23:50 +02:00
dasd_eckd.h s390/dasd: add support for control unit initiated reconfiguration 2014-10-09 09:13:54 +02:00
dasd_eer.c s390/time: rename tod clock access functions 2013-02-14 15:55:10 +01:00
dasd_erp.c s390/dasd: fix statistics for recovered requests 2013-08-28 09:19:34 +02:00
dasd_fba.c s390: remove 31 bit support 2015-03-25 11:49:33 +01:00
dasd_fba.h s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
dasd_genhd.c s390/block/dasd: remove obsolete while -EBUSY loop 2015-05-20 09:06:17 -06:00
dasd_int.h s390/dasd: cleanup profiling 2015-01-29 09:19:29 +01:00
dasd_ioctl.c s390/dasd: fix camel case 2014-08-01 11:16:18 +02:00
dasd_proc.c s390/dasd: cleanup profiling 2015-01-29 09:19:29 +01:00
dcssblk.c s390/dcss: array index 'i' is used before limits check. 2015-02-26 09:24:48 +01:00
scm_blk.c s390/scm_block: make the number of reqs per HW req configurable 2014-12-08 09:42:47 +01:00
scm_blk.h s390/scm_block: make the number of reqs per HW req configurable 2014-12-08 09:42:47 +01:00
scm_blk_cluster.c s390/scm_block: fix off by one during cluster reservation 2015-02-26 09:24:47 +01:00
scm_drv.c s390/scm_block: fix printk format string 2013-03-21 13:35:37 +01:00
xpram.c s390: block: drop owner assignment from platform_drivers 2014-10-20 16:21:31 +02:00