arcnet: provide a buffer big enough to actually receive packets
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 20 Sep 2019 14:08:21 +0000 (16:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 10:47:39 +0000 (12:47 +0200)
commitd7f4d873f8828e354a20f50f0fd5631971511cd9
treee82106da85a6063856d79681061e49deb9286762
parente991f02f6f9117514ed1374b39ce195013ab9cd0
arcnet: provide a buffer big enough to actually receive packets

[ Upstream commit 108639aac35eb57f1d0e8333f5fc8c7ff68df938 ]

struct archdr is only big enough to hold the header of various types of
arcnet packets. So to provide enough space to hold the data read from
hardware provide a buffer large enough to hold a packet with maximal
size.

The problem was noticed by the stack protector which makes the kernel
oops.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/arcnet/arcnet.c