1
0
Fork 0
alistair23-linux/drivers/s390
Stefan Haberland 756a70b6dc s390/dasd: fix inability to use DASD with DIAG driver
commit 9f4aa52387 upstream.

During initialization of the DASD DIAG driver a request is issued
that has a bio structure that resides on the stack. With virtually
mapped kernel stacks this bio address might be in virtual storage
which is unsuitable for usage with the diag250 call.
In this case the device can not be set online using the DIAG
discipline and fails with -EOPNOTSUP.
In the system journal the following error message is presented:

dasd: X.X.XXXX Setting the DASD online with discipline DIAG failed
with rc=-95

Fix by allocating the bio structure instead of having it on the stack.

Fixes: ce3dc44749 ("s390: add support for virtually mapped kernel stacks")
Signed-off-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Cc: stable@vger.kernel.org #4.20
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-19 08:16:29 +02:00
..
block s390/dasd: fix inability to use DASD with DIAG driver 2020-08-19 08:16:29 +02:00
char s390 updates for the 5.4 merge window 2019-09-17 14:04:43 -07:00
cio s390/qdio: put thinint indicator after early error 2020-06-24 17:50:22 +02:00
crypto s390/zcrypt: fix card and queue total counter wrap 2020-03-05 16:43:36 +01:00
net s390/qeth: don't process empty bridge port events 2020-08-19 08:16:18 +02:00
scsi scsi: zfcp: Fix panic on ERP timeout for previously dismissed ERP action 2020-06-30 15:36:51 -04:00
virtio virtio/s390: fix race on airq_areas[] 2019-07-26 13:36:18 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00