diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-09-20 16:08:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-24 16:48:31 +0200 |
commit | 02a07046834e64970f3bcd87a422ac2b0adb80de (patch) | |
tree | 6982c9b4e849ad759c40f97fb706f14b5e5e5a1d /lib/crc32test.c | |
parent | 0edc3f703f7bcaf550774b5d43ab727bcd0fe06b (diff) | |
download | linux-stable-02a07046834e64970f3bcd87a422ac2b0adb80de.tar.gz linux-stable-02a07046834e64970f3bcd87a422ac2b0adb80de.tar.bz2 linux-stable-02a07046834e64970f3bcd87a422ac2b0adb80de.zip |
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>
Diffstat (limited to 'lib/crc32test.c')
0 files changed, 0 insertions, 0 deletions