openwrtv4/target/linux/generic
Hauke Mehrtens 64f54741e3 kernel: bgmac: rework patch checking packet length
This bgmac patch was an attempt to fix/workaround bug reported in
https://dev.openwrt.org/ticket/7198 noticed on WNR3500L.
Patch assumed length reported by the hardware was 0 and was trying to
read it until getting a different value. This was actually the opposite.
Lenghts were some invalid & huge values that resulted in skb_over_panic.
For example:
skbuff: skb_over_panic: text:83b21074 len:57222 (...)
skbuff: skb_over_panic: text:87af1024 len:43226 (...)
skbuff: skb_over_panic: text:87af5024 len:8739 (...)

So instead of that not-working patch checking for 0, write a new one
checking for huge values. In case something like that happens, dump
hardware state and drop the packet.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40424
2014-04-08 19:50:17 +00:00
..
base-files update the /init file to start /sbin/init 2013-03-13 18:11:13 +00:00
files revert: kernel: rtl8306: fix max pvid & remove port isolation 2014-03-30 10:04:55 +00:00
image rename target/linux/generic-2.6 to generic 2010-06-26 20:42:58 +00:00
patches-3.3 kernel: backport ARM memset fixes for GCC 4.7/4.8 2014-03-12 22:08:59 +00:00
patches-3.6 kernel/3.6: remove yaffs support 2013-12-16 07:42:42 +00:00
patches-3.8 kernel: backport ARM memset fixes for GCC 4.7/4.8 2014-03-12 22:08:59 +00:00
patches-3.9 kernel/3.9: remove yaffs patches 2013-12-16 07:42:43 +00:00
patches-3.10 kernel: bgmac: rework patch checking packet length 2014-04-08 19:50:17 +00:00
patches-3.12 kernel: bgmac: rework patch checking packet length 2014-04-08 19:50:17 +00:00
patches-3.13 kernel: bgmac: rework patch checking packet length 2014-04-08 19:50:17 +00:00
patches-3.14 kernel: bgmac: rework patch checking packet length 2014-04-08 19:50:17 +00:00
config-3.3 kernel/3.3: remove yaffs support 2013-12-16 07:42:41 +00:00
config-3.6 kernel/3.6: remove yaffs support 2013-12-16 07:42:42 +00:00
config-3.8 kernel: update yaffs code 2013-12-16 07:51:19 +00:00
config-3.9 kernel: add some config options 2013-11-03 20:20:14 +00:00
config-3.10 kernel/3.1x: add split code for LZMA compressed kernel based firmwares 2014-01-24 17:14:59 +00:00
config-3.12 kernel: refresh configs with kconfig.pl 2014-02-18 17:34:18 +00:00
config-3.13 kernel: add missing config symbols to 3.13 2014-03-05 23:32:00 +00:00
config-3.14 kernel: add missing config symbol for linux 3.14 2014-04-04 10:16:44 +00:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00