qeth: avoid buffer overflow in snmp ioctl
authorUrsula Braun <ursula.braun@de.ibm.com>
Wed, 6 Nov 2013 08:04:52 +0000 (09:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Nov 2013 08:01:59 +0000 (03:01 -0500)
commit6fb392b1a63ae36c31f62bc3fc8630b49d602b62
treefbd6562b9f1711c050b0cbfebd61b7b0a7382efa
parent17102f8be41699525cfeeab02adbaf969b156731
qeth: avoid buffer overflow in snmp ioctl

Check user-defined length in snmp ioctl request and allow request
only if it fits into a qeth command buffer.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Reviewed-by: Heiko Carstens <heicars2@linux.vnet.ibm.com>
Reported-by: Nico Golde <nico@ngolde.de>
Reported-by: Fabian Yamaguchi <fabs@goesec.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c