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 11:09:26 +0000 (13:09 +0200)
commit0bf79588586c806e048ecef286bcb837814927fc
treeaa7e5dfdefd6957e1b0812c7518a64c59d1f487c
parent555161ee1b7a74e77ca70fd14ed8a5137c8108ac
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