linux-brain/drivers/s390
Cornelia Huck 2cca5be88a vfio: ccw: only free cp on final interrupt
commit 50b7f1b723 upstream.

When we get an interrupt for a channel program, it is not
necessarily the final interrupt; for example, the issuing
guest may request an intermediate interrupt by specifying
the program-controlled-interrupt flag on a ccw.

We must not switch the state to idle if the interrupt is not
yet final; even more importantly, we must not free the translated
channel program if the interrupt is not yet final, or the host
can crash during cp rewind.

Fixes: e5f84dbaea ("vfio: ccw: return I/O results asynchronously")
Cc: stable@vger.kernel.org # v4.12+
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-03 06:25:21 +02:00
..
block s390/dasd: fix using offset into zero size array error 2019-03-23 14:35:11 +01:00
char s390/smp: fix CPU hotplug deadlock with CPU rescan 2019-01-31 08:13:43 +01:00
cio vfio: ccw: only free cp on final interrupt 2019-04-03 06:25:21 +02:00
crypto s390/zcrypt: improve special ap message cmd handling 2019-02-12 19:46:01 +01:00
net s390/qeth: fix use-after-free in error path 2019-03-13 14:03:21 -07:00
scsi scsi: zfcp: fix scsi_eh host reset with port_forced ERP for non-NPIV FCP devices 2019-04-03 06:25:17 +02:00
virtio s390/virtio: handle find on invalid queue gracefully 2019-03-23 14:35:20 +01:00
Makefile virtio/s390: rename drivers/s390/kvm -> drivers/s390/virtio 2015-07-07 14:27:06 +03:00