linux-stable/drivers/s390
Stefan Haberland 650a2e79d1 s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup
commit db7ba07108 upstream.

Fix Oops in dasd_alias_get_start_dev() function caused by the pavgroup
pointer being NULL.

The pavgroup pointer is checked on the entrance of the function but
without the lcu->lock being held. Therefore there is a race window
between dasd_alias_get_start_dev() and _lcu_update() which sets
pavgroup to NULL with the lcu->lock held.

Fix by checking the pavgroup pointer with lcu->lock held.

Cc: <stable@vger.kernel.org> # 2.6.25+
Fixes: 8e09f21574 ("[S390] dasd: add hyper PAV support to DASD device driver, part 1")
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Link: https://lore.kernel.org/r/20220919154931.4123002-2-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-28 11:32:22 +02:00
..
block s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup 2022-09-28 11:32:22 +02:00
char s390/zcore: fix race when reading from hardware system area 2022-08-17 15:15:55 +02:00
cio vfio/ccw: Do not change FSM state in subchannel event 2022-08-17 15:15:50 +02:00
crypto s390/ap: fix crash on older machines based on QCI info missing 2022-08-25 11:45:06 +02:00
net s390/qeth: Fix typo 'the the' in comment 2022-07-25 10:52:28 +01:00
scsi scsi: zfcp: Fix missing auto port scan and thus missing target ports 2022-08-17 15:16:03 +02:00
virtio virtio: disable notification hardening by default 2022-06-24 02:49:48 -04:00
Makefile