android_kernel_xiaomi_sm7250/drivers/s390
Stefan Haberland aaba5ff274 s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup
commit db7ba07108a48c0f95b74fabbfd5d63e924f992d 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:02:57 +02:00
..
block s390/dasd: fix Oops in dasd_alias_get_start_dev due to missing pavgroup 2022-09-28 11:02:57 +02:00
char s390/zcore: fix race when reading from hardware system area 2022-08-25 11:15:23 +02:00
cio vfio/ccw: Do not change FSM state in subchannel event 2022-08-25 11:15:21 +02:00
crypto
net s390/lcs: fix variable dereferenced before check 2022-05-18 09:42:48 +02:00
scsi scsi: zfcp: Fix missing auto port scan and thus missing target ports 2022-08-25 11:15:27 +02:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-03-07 12:18:53 +01:00
Makefile