Modify

Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#2009 closed defect (fixed)

Fix IMQ in 2.6.21 and 2.6.22-rc

Reported by: nbd Owned by: nbd
Priority: high Milestone: Kamikaze 7.07
Component: kernel Version:
Keywords: Cc:

Description (last modified by nbd)

IMQ sometimes crashes with a NULL pointer dereference.

Attachments (0)

Change History (8)

comment:1 Changed 11 years ago by nbd

  • Description modified (diff)
  • Status changed from new to assigned
  • Summary changed from Fix Layer7 and IMQ in 2.6.21 (and maybe 2.6.22-rc) to Fix IMQ in 2.6.21 and 2.6.22-rc

(was: l7 and imq. l7 fixed in [7846])

comment:2 Changed 11 years ago by nbd

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in [7847]

comment:3 Changed 11 years ago by h3sp4wn

  • Resolution fixed deleted
  • Status changed from closed to reopened

I am not sure exactly what is wrong but there is still an issue with this (in real world use of qos-scripts)

root@oberon:/# qos-start
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name
iptables: No chain/target/match by that name

I haven't managed to get any more debug output than that yet.

comment:4 Changed 11 years ago by h3sp4wn

##################
# INGRESS STATUS #
##################

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0ns m2 3801Kbit ul m1 0bit d 0ns m2 3801Kbit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 246 work 357806 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 861000bit d 513.0us m2 380000bit ls m1 861000bit d 513.0us m2 2111Kbit ul m1 0bit d 0ns m2 3801Kbit 
 Sent 680 bytes 14 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 14 work 680 bytes rtwork 680 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 1980Kbit d 513.0us m2 1900Kbit ls m1 1980Kbit d 513.0us m2 1055Kbit ul m1 0bit d 0ns m2 3801Kbit 
 Sent 574 bytes 7 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 7 work 574 bytes rtwork 574 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 527000bit ul m1 0bit d 0ns m2 3801Kbit 
 Sent 355963 bytes 243 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 223 work 355963 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 105000bit ul m1 0bit d 0ns m2 3801Kbit 
 Sent 589 bytes 4 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 4 work 589 bytes level 0 

class red 300:1 parent 300: 

class red 400:1 parent 400: 
#################
# EGRESS STATUS #
#################

class hfsc 1: root 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 0 level 2 

class hfsc 1:1 parent 1: sc m1 0bit d 0ns m2 227000bit ul m1 0bit d 0ns m2 227000bit 
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 271 work 22432 bytes level 1 

class hfsc 1:10 parent 1:1 leaf 100: rt m1 132000bit d 3.4ms m2 22000bit ls m1 132000bit d 3.4ms m2 126000bit ul m1 0bit d 0ns m2 227000bit 
 Sent 14838 bytes 206 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 186 work 14838 bytes rtwork 11718 bytes level 0 

class hfsc 1:20 parent 1:1 leaf 200: rt m1 120000bit d 8.6ms m2 113000bit ls m1 120000bit d 8.6ms m2 63000bit ul m1 0bit d 0ns m2 227000bit 
 Sent 252 bytes 2 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 2 work 252 bytes rtwork 252 bytes level 0 

class hfsc 1:30 parent 1:1 leaf 300: ls m1 0bit d 100.0ms m2 31000bit ul m1 0bit d 0ns m2 227000bit 
 Sent 6985 bytes 86 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 78 work 6985 bytes level 0 

class hfsc 1:40 parent 1:1 leaf 400: ls m1 0bit d 200.0ms m2 6000bit ul m1 0bit d 0ns m2 227000bit 
 Sent 357 bytes 5 pkt (dropped 0, overlimits 0 requeues 0) 
 rate 0bit 0pps backlog 0b 0p requeues 0 
 period 5 work 357 bytes level 0 

class red 300:1 parent 300: 

class red 400:1 parent 400: 

(using set -x on generate.sh is not helpful as the error message just waits until the end to appear)

comment:5 Changed 11 years ago by nbd

/usr/lib/qos/generate.sh all | sh -x

comment:6 Changed 11 years ago by anonymous

+ iptables -t mangle -A Default_ct -m mark --mark 0 -m ipp2p --edk --dc --kazaa --gnu --bit -j MARK --set-mark 4
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto edonkey -j MARK --set-mark 4
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto bittorrent -j MARK --set-mark 4
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto shoutcast -j MARK --set-mark 3
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto httpaudio -j MARK --set-mark 3
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto rtsp -j MARK --set-mark 3
iptables: No chain/target/match by that name
+ iptables -t mangle -A Default_ct -m mark --mark 0 -m layer7 --l7proto http-rtsp -j MARK --set-mark 3
iptables: No chain/target/match by that name

Incidently there is a new release of l7-filter (that seems to modify stuff in the standard netfilter directory) not the ipv4 one. Looks like neither ipp2p or l7 is working here (2.6.21.5 ixp4xx)

comment:7 Changed 11 years ago by h3sp4wn

Just tested an x86 build - (everything is working fine there with 2.6.22)

so its just the targets using 2.6.21 that this affects. (for 7.07)
(Routerboard, avr-32, ixp4xx)

comment:8 Changed 11 years ago by nbd

  • Resolution set to fixed
  • Status changed from reopened to closed

layer7 fixed in [7951]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.