]> 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)
commitf9f32b75f98cbe879c03f64ea557e56b1db50908
tree6982c9b4e849ad759c40f97fb706f14b5e5e5a1d
parent2664529e4d7dc70b74bd5b4db9425762e25e849e
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