]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Sep 2019 14:48:31 +0000 (16:48 +0200)
commitaa359f67e6d295f2a5d006c02f9d83fc5cd88c4f
tree6982c9b4e849ad759c40f97fb706f14b5e5e5a1d
parent5be10c442115988da31589135b9737d890598150
arcnet: provide a buffer big enough to actually receive packets

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>
drivers/net/arcnet/arcnet.c