android_kernel_motorola_sm6375/drivers/s390
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jan Höppner a8f286bfbc s390/dasd: Use correct lock while counting channel queue length
[ Upstream commit ccc45cb4e7271c74dbb27776ae8f73d84557f5c6 ]

The lock around counting the channel queue length in the BIODASDINFO
ioctl was incorrectly changed to the dasd_block->queue_lock with commit
583d6535cb ("dasd: remove dead code"). This can lead to endless list
iterations and a subsequent crash.

The queue_lock is supposed to be used only for queue lists belonging to
dasd_block. For dasd_device related queue lists the ccwdev lock must be
used.

Fix the mentioned issues by correctly using the ccwdev lock instead of
the queue lock.

Fixes: 583d6535cb ("dasd: remove dead code")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Link: https://lore.kernel.org/r/20230609153750.1258763-2-sth@linux.ibm.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-21 15:44:08 +02:00
..
block s390/dasd: Use correct lock while counting channel queue length 2023-06-21 15:44:08 +02:00
char s390/zcore: fix race when reading from hardware system area 2022-08-25 11:18:05 +02:00
cio s390/qdio: fix do_sqbs() inline assembly constraint 2023-05-30 12:44:08 +01:00
crypto treewide: Replace DECLARE_TASKLET() with DECLARE_TASKLET_OLD() 2023-04-20 12:07:32 +02:00
net s390/lcs: Fix return type of lcs_start_xmit() 2023-01-18 11:41:36 +01:00
scsi scsi: zfcp: Fix double free of FSF request when qdio send fails 2022-11-25 17:42:19 +01:00
virtio virtio/s390: implement virtio-ccw revision 2 correctly 2021-03-04 10:26:50 +01:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00