linux/drivers/s390
Heiko Carstens 267239cc10 s390/vmcp: fix uaccess check and avoid undefined behavior
The vmcp device driver should return -EFAULT if get_user() fails, due
to an invalid user space address. In addition the buffer size value
from user space is passed unchecked to get_order(). The return value
of get_order(0) undefined.

Therefore explicitly test for zero before calling get_order() and also
return -EFAULT if get_user() fails.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-08-09 09:09:32 -04:00
..
block s390/dasd: constify attribute_group structures. 2017-07-26 08:25:17 +02:00
char s390/vmcp: fix uaccess check and avoid undefined behavior 2017-08-09 09:09:32 -04:00
cio s390/cio: add const to bin_attribute structures 2017-08-03 13:16:30 +02:00
crypto s390/zcrypt_card: constify attribute_group structures. 2017-07-26 08:25:17 +02:00
net s390/qeth: constify attribute_group structures. 2017-07-26 08:25:19 +02:00
scsi SCSI misc on 20170220 2017-02-21 11:51:42 -08:00
virtio Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2017-05-16 09:24:44 -07:00
Makefile virtio/s390: rename drivers/s390/kvm -> drivers/s390/virtio 2015-07-07 14:27:06 +03:00