]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit02a07046834e64970f3bcd87a422ac2b0adb80de
tree6982c9b4e849ad759c40f97fb706f14b5e5e5a1d
parent0edc3f703f7bcaf550774b5d43ab727bcd0fe06b
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