linux-stable/drivers/s390
Stefan Haberland 49f401a98b 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 10:56:52 +02:00
..
block s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup 2022-09-28 10:56:52 +02:00
char s390/zcore: fix race when reading from hardware system area 2022-08-25 11:11:25 +02:00
cio vfio/ccw: Do not change FSM state in subchannel event 2022-08-25 11:11:24 +02:00
crypto s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR 2020-01-04 13:59:54 +01:00
net s390/lcs: fix variable dereferenced before check 2022-05-18 09:18:06 +02:00
scsi scsi: zfcp: Fix missing auto port scan and thus missing target ports 2022-08-25 11:11:27 +02:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-03-07 11:27:42 +01:00
Makefile