openwrtv4/target/linux/generic/files/drivers/net/phy/b53
Jonas Gorski 9fbd6d0ba0 b53: fix memory out of bounds access on 64 bit targets
On device reset the sizes for the vlan and port tables were wrongly
calculated based on the pointer size instead of the struct size. This
causes buffer overruns on 64 bit targets, resulting in panics.

Fix this by dereferencing the pointers.

Reported-by: Fedor Konstantinov <blmink@mink.su>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45938
2015-06-10 09:21:36 +00:00
..
b53_common.c b53: fix memory out of bounds access on 64 bit targets 2015-06-10 09:21:36 +00:00
b53_mdio.c b53: Add BCM53128 switch support 2014-02-22 11:16:56 +00:00
b53_mmap.c b53: clean up code to match kernel style better 2015-04-10 10:29:04 +00:00
b53_phy_fixup.c kernel: b53: support phy ids for BCM5365 2013-09-05 20:30:34 +00:00
b53_priv.h b53: clean up code to match kernel style better 2015-04-10 10:29:04 +00:00
b53_regs.h b53: widen stp state mask to 3 bits (instead of 2) 2015-06-10 09:21:31 +00:00
b53_spi.c b53: clean up code to match kernel style better 2015-04-10 10:29:04 +00:00
b53_srab.c b53: clean up code to match kernel style better 2015-04-10 10:29:04 +00:00
Kconfig kernel: b53: add Register Access Bridge Registers (SRAB) interface 2013-09-25 21:44:28 +00:00
Makefile kernel: b53: add Register Access Bridge Registers (SRAB) interface 2013-09-25 21:44:28 +00:00