login
Header Space

 
 

SFQ qdisc crashes with limit of 2 packets

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Netdev <netdev@...>
Date: Tuesday, September 18, 2007 - 1:18 pm

Limit of 1 is forbidden, crashes with 2, works with 3:

https://bugzilla.redhat.com/show_bug.cgi?id=219895

=========

If the defect is produced at a console (as in ctrl-alt-f<0-6>) a kernel stack
trace can be seen the moment "ping" is invoked.  Since the stack trace is not
 written to the /var/log/messages here's part of it (manually copied):
  syscall_call(()
    sys_socketcall()
      sys_sendmsg()
        sock_sendmsg()
          inet_sendmsg()
            raw_sendmsg()      
              ip_push_pending_frames()
                ip_output()
                  neigh_resolve_output()
                    dev_queue_xmit()
                      __qdisc_run()
The location given in __qdisc_run() is 0x30/0x19b.  The value given for EIP is
sfq_dequeue+0xf6/0x179 in the sch_sfq module.

From disassembling sch_sfq.ko it seems that it is on line 360 of sch_sfq.c:
    sch->qstats.backlog -= skb->len;
where "skb" is an invalid pointer:
    net/sched/sch_sfq.c:360
 194:   ff 4d 28                decl   0x28(%ebp)
 197:   8b 14 24                mov    (%esp),%edx
 19a:   8b 42 60                mov    0x60(%edx),%eax ** crash **
 19d:   29 45 58                sub    %eax,0x58(%ebp)


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SFQ qdisc crashes with limit of 2 packets, Chuck Ebbert, (Tue Sep 18, 1:18 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 1:31 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 1:57 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Tue Sep 18, 3:15 pm)
Re: SFQ qdisc crashes with limit of 2 packets, Alexey Kuznetsov, (Wed Sep 19, 5:48 am)
Re: SFQ qdisc crashes with limit of 2 packets, Patrick McHardy, (Wed Sep 19, 9:08 am)
Re: SFQ qdisc crashes with limit of 2 packets, Alexey Kuznetsov, (Fri Sep 21, 11:55 am)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Sun Sep 30, 8:51 pm)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Wed Sep 19, 1:43 pm)
Re: SFQ qdisc crashes with limit of 2 packets, David Miller, (Tue Sep 18, 4:09 pm)
speck-geostationary