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
..
2013-09-26 18:01:49 +00:00
2013-09-26 18:01:49 +00:00
2013-09-26 18:01:49 +00:00
2013-09-26 18:01:49 +00:00
2013-09-26 18:01:49 +00:00
2013-09-26 18:01:57 +00:00
2013-09-26 18:01:57 +00:00
2014-02-04 22:54:29 +00:00
2014-03-30 19:08:37 +00:00
2014-02-23 10:59:40 +00:00
2013-09-13 17:29:14 +00:00
2014-02-23 10:59:40 +00:00
2014-02-23 10:59:40 +00:00
2013-07-15 15:12:33 +00:00
2014-01-11 16:06:37 +00:00
2013-08-23 17:31:04 +00:00
2014-01-11 16:06:37 +00:00
2013-07-29 09:38:29 +00:00
2013-12-01 09:59:53 +00:00
2013-08-23 17:31:04 +00:00
2013-12-06 15:37:55 +00:00
2013-08-28 07:38:36 +00:00
2013-08-23 17:31:04 +00:00
2013-09-15 16:00:41 +00:00
2013-07-01 13:21:06 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-11-17 15:52:14 +00:00
2013-11-04 18:37:05 +00:00
2013-11-04 18:37:05 +00:00
2013-11-04 18:37:05 +00:00
2013-09-21 17:55:44 +00:00
2013-11-04 18:37:05 +00:00
2013-11-04 18:37:05 +00:00
2013-09-21 17:55:49 +00:00
2013-09-21 17:56:09 +00:00
2013-09-21 17:56:18 +00:00
2014-01-24 17:14:59 +00:00
2013-09-13 17:24:25 +00:00
2013-11-04 18:37:05 +00:00
2013-11-04 18:37:05 +00:00
2014-04-07 15:10:18 +00:00
2013-09-13 17:24:25 +00:00
2014-01-26 11:30:34 +00:00
2013-07-15 11:01:48 +00:00
2013-09-13 17:24:25 +00:00
2013-09-13 17:24:25 +00:00
2013-09-13 17:24:25 +00:00
2013-09-13 17:24:25 +00:00
2013-09-13 17:24:25 +00:00
2013-12-16 08:16:09 +00:00
2013-11-04 18:37:05 +00:00
2013-11-07 19:53:00 +00:00
2013-12-16 07:51:19 +00:00
2013-12-16 07:51:19 +00:00
2014-01-28 17:30:25 +00:00
2014-01-28 17:30:25 +00:00
2014-02-23 10:59:40 +00:00
2013-08-23 17:31:04 +00:00
2013-10-28 16:06:47 +00:00
2013-07-01 13:21:06 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-08-23 17:31:04 +00:00
2013-12-06 15:42:35 +00:00
2013-09-15 16:00:41 +00:00
2013-07-21 13:53:54 +00:00
2014-01-26 11:30:34 +00:00
2013-10-23 12:51:05 +00:00
2013-10-23 12:51:05 +00:00
2013-08-23 17:31:04 +00:00
2014-01-26 11:30:34 +00:00
2014-01-26 11:30:34 +00:00
2013-08-23 17:31:04 +00:00
2014-02-23 10:59:40 +00:00
2014-02-20 17:07:44 +00:00
2014-02-20 17:07:44 +00:00
2014-02-20 17:07:44 +00:00
2013-07-01 13:21:06 +00:00
2014-03-27 09:28:33 +00:00
2013-07-15 21:05:53 +00:00
2013-10-12 10:50:39 +00:00
2014-01-20 10:22:59 +00:00
2013-08-23 17:31:04 +00:00
2014-02-04 22:55:23 +00:00
2014-02-04 22:55:23 +00:00
2014-04-08 19:50:17 +00:00
2013-08-23 17:31:04 +00:00
2014-01-23 09:07:49 +00:00
2013-07-15 21:05:53 +00:00
2013-07-27 09:23:18 +00:00
2013-07-27 09:23:18 +00:00
2013-09-10 22:26:30 +00:00
2013-07-09 12:52:00 +00:00
2013-12-15 19:16:30 +00:00
2013-07-01 13:21:06 +00:00
2013-10-23 12:51:05 +00:00
2013-08-27 12:02:54 +00:00
2013-08-21 20:59:25 +00:00
2013-07-01 13:21:06 +00:00
2013-09-27 07:19:21 +00:00
2014-01-11 16:06:37 +00:00
2013-09-16 21:07:52 +00:00
2013-08-23 17:31:04 +00:00
2013-09-02 19:12:54 +00:00