Closed k0ste closed 8 years ago
Notice: this patch not working correctly with htb+sfq qdisc on imq interface. Use stable patch for 4.7.
Hi K0ste Hear is dump from my console after up imq and add iptables rules + hsfp shapers machine crash please see dump: This dump is from Kernel 4.8.1 with your latest patch
[48137.977771] mpt3sas version 13.100.00.00 loaded
[48162.115442] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1, imq_dev_accurate_stats = 1)
[48162.139578] Hooking IMQ before NAT on PREROUTING.
[48162.152283] Hooking IMQ before NAT on POSTROUTING.
[48176.852343] BUG: unable to handle kernel NULL pointer dereference at (null)
[48176.852796] IP: [
Bug in imq.c:__imq_nf_queue()
struct sk_buff **to_free;
Must be
struct sk_buff *to_free=NULL;
and
qdisc_enqueue(skb_shared, q, to_free);
Must be
qdisc_enqueue(skb_shared, q, &to_free);
Maybe need a code "if (to_free) kfree_skb (to_free);" after label "out:" and before return ?
Updated, due @vel21ripn fixes.
Fix #45.