Page 1 of 1

IMQ driver crash and system reboot with high traffic

Posted: Tue Jul 14, 2015 3:36 am
by snakeleung
When I use the Quota function with high traffic , the system crash and reboot.
In the same situation, when I try "ifconfig imq0 down",everything looks fine.
But when I try "ifconfig imq0 up" to start the IMQ again , the system crash and reboot.


version:1.7.0 and 1.7.1

Here is the log:

Code: Select all

[   30.860000] device eth0 entered promiscuous mode
[   31.470000] eth0: link up (1000Mbps/Full duplex)
[   31.470000] br-lan: port 1(eth0) entered forwarding state
[   31.480000] br-lan: port 1(eth0) entered forwarding state
[   33.480000] br-lan: port 1(eth0) entered forwarding state
[   33.550000] eth1: link up (100Mbps/Full duplex)
[   33.560000] device wlan0 entered promiscuous mode
[   33.620000] br-lan: port 2(wlan0) entered forwarding state
[   33.630000] br-lan: port 2(wlan0) entered forwarding state
[   35.630000] br-lan: port 2(wlan0) entered forwarding state
[   37.540000] ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
[   37.540000]                old minutes west=0, new minutes west=-60
[   42.960000] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to att.
procd: - init complete -
[  103.530000] IMQ driver unloaded successfully.
[  103.570000]  Hooked IMQ after mangle on INPUT
[  103.580000]  Hooked IMQ after mangle on FORWARD
[  103.580000] IMQ driver loaded successfully. (numdevs = 1, numqueues = 1)
[  103.590000]  Hooking IMQ before NAT on PREROUTING.
[  103.600000]  Hooking IMQ after NAT on POSTROUTING.
[  111.870000] skbuff: IMQ: kfree_skb: skb->cb_next: 87bf2440
[  111.880000] skbuff: IMQ: kfree_skb: skb->nf_queue_entry != NULL
[  111.890000] skbuff: IMQ: kfree_skb: skb->cb_next: 87bf2b40
[  111.890000] skbuff: IMQ: kfree_skb: skb->nf_queue_entry != NULL
[  111.900000] skbuff: IMQ: kfree_skb: skb->cb_next: 86ab2c40
[  111.900000] skbuff: IMQ: kfree_skb: skb->nf_queue_entry != NULL
[  111.910000] skbuff: IMQ: kfree_skb: skb->cb_next: 86b63080
[  111.920000] skbuff: IMQ: kfree_skb: skb->nf_queue_entry != NULL
[  111.920000] skbuff: IMQ: kfree_skb: skb->cb_next: 86b63080
[  111.930000] skbuff: IMQ: kfree_skb: skb->nf_queue_entry != NULL
[  111.960000] CPU 0 Unable to handle kernel paging request at virtual address 00000001, epc == 80231000, ra == 800fa2fc
[  111.970000] Oops[#1]:
[  111.970000] CPU: 0 PID: 3 Comm: ksoftirqd/0 Not tainted 3.10.49 #7
[  111.970000] task: 87828860 ti: 87836000 task.ti: 87836000
[  111.970000] $ 0   : 00000000 00000000 00000000 00000003
[  111.970000] $ 4   : 86cfd450 00000020 80085c40 80085c40
[  111.970000] $ 8   : 0563d1df 47002fb7 00000000 32214000
[  111.970000] $12   : 00000000 00000001 00000000 00000000
[  111.970000] $16   : 86cfd450 80085c40 8600b000 00000000
[  111.970000] $20   : 86ada3c0 00000000 80320000 ffffffff
[  111.970000] $24   : 00000000 80085c40                  
[  111.970000] $28   : 87836000 87837ba8 80320000 800fa2fc
[  111.970000] Hi    : 0000001a
[  111.970000] Lo    : 11780072
[  111.970000] epc   : 80231000 skb_clone+0x18/0xfc
[  111.970000]     Not tainted
[  111.970000] ra    : 800fa2fc deliver_clone+0x2c/0x6c
[  111.970000] Status: 1000f403 KERNEL EXL IE
[  111.970000] Cause : 00800008
[  111.970000] BadVA : 00000001
[  111.970000] PrId  : 00019374 (MIPS 24Kc)
[  111.970000] Modules linked in: imq ath9k ath9k_common qcserial pppoe ppp_async option iptable_nat ath9k_hw ath usb_wwan sierra qmi]
[  111.970000] Process ksoftirqd/0 (pid: 3, threadinfo=87836000, task=87828860, tls=00000000)
[  111.970000] Stack : 00000001 801bdd2c 80000000 868f5f00 77bd0116 86ada000 80085c40 800fa2fc
          0000006f 87ad0000 8612de40 87826000 86afbe00 86cfd450 80085c40 801a1070
          86ada3c0 86ada000 00000000 802cd634 86afbe00 800d66c8 8612de40 8612ec50
          86ada3c0 86ada000 86afbe08 802cd634 80320000 86cfd450 c0d29c08 86ada3c0
          86ada000 00000000 802cd634 800d67b0 86ada3c0 86ada000 00000000 802cd634
          ...
[  111.970000] Call Trace:
[  111.970000] [<80231000>] skb_clone+0x18/0xfc
[  111.970000] [<800fa2fc>] deliver_clone+0x2c/0x6c
[  111.970000] [<801a1070>] maybe_deliver+0x54/0x70
[  111.970000] [<800d66c8>] br_flood+0x78/0x144
[  111.970000] [<800d67b0>] br_flood_deliver+0x1c/0x28
[  111.970000] [<800d53cc>] br_dev_xmit+0x204/0x228
[  111.970000] [<800fee2c>] dev_hard_start_xmit+0x3e8/0x4b8
[  111.970000] [<80100478>] dev_queue_xmit+0x374/0x440
[  111.970000] [<8016ada4>] ip_finish_output+0x368/0x3fc
[  111.970000] [<801bef80>] nf_reinject+0x120/0x1b0
[  111.970000] [<8607c2f0>] 0x8607c2f0
[  111.970000]
[  111.970000]
Code: afbf001c  8c8200ac  00808021 <90420001> 30420008  14400009  00a08821  8e040064  3c020018
[  112.390000] ---[ end trace c5a229b379d1f840 ]---
[  112.390000] Kernel panic - not syncing: Fatal exception in interrupt
[  112.390000] Rebooting in 3 seconds..
Is the new kernel cause this problem?
Thanks.

Re: IMQ driver crash and system reboot with high traffic

Posted: Tue Jul 14, 2015 8:50 am
by pbix
Looks like your router is out of RAM?

How much RAM do you have and how many user connections are you supporting?

Re: IMQ driver crash and system reboot with high traffic

Posted: Tue Jul 14, 2015 12:55 pm
by dlogictech
Could this crashing be related to this post regarding internet dropping when Quotas are enabled on the entire network and then throttled when that quota is reached?

See post link below:
http://www.gargoyle-router.com/phpbb/vi ... =11&t=6769

Re: IMQ driver crash and system reboot with high traffic

Posted: Wed Jul 15, 2015 12:11 am
by snakeleung
pbix wrote:Looks like your router is out of RAM?

How much RAM do you have and how many user connections are you supporting?
128MB RAM,CPU:QCA9531v2,
one user crash , and many users crash too...

Re: IMQ driver crash and system reboot with high traffic

Posted: Wed Jul 15, 2015 12:19 am
by snakeleung
dlogictech wrote:Could this crashing be related to this post regarding internet dropping when Quotas are enabled on the entire network and then throttled when that quota is reached?

See post link below:
http://www.gargoyle-router.com/phpbb/vi ... =11&t=6769
I don't think so~ it crash in a very very very short time .It's impossible to reach the quota.

Re: IMQ driver crash and system reboot with high traffic

Posted: Wed Jul 15, 2015 2:26 am
by dlogictech
snakeleung wrote:
dlogictech wrote:Could this crashing be related to this post regarding internet dropping when Quotas are enabled on the entire network and then throttled when that quota is reached?

See post link below:
http://www.gargoyle-router.com/phpbb/vi ... =11&t=6769
I don't think so~ it crash in a very very very short time .It's impossible to reach the quota.
Hi Snakeleung,
Actually if you read the thread, it refers to the configuration of the quota. The quota was never reached in all cases referred to.
This is why I asked if it looks similar to that post.
It may be a similar issue...
Just trying to help...