From: Eric Dumazet <eric.dumazet@gmail.com>
To: Denys Fedoryshchenko <denys@visp.net.lb>
Cc: netdev@vger.kernel.org, hadi@cyberus.ca
Subject: Re: 2.6.38.x, 2.6.39 sfq? kernel panic in sfq_enqueue
Date: Mon, 23 May 2011 14:50:58 +0200 [thread overview]
Message-ID: <1306155058.20687.8.camel@edumazet-laptop> (raw)
In-Reply-To: <1306153938.20687.2.camel@edumazet-laptop>
Le lundi 23 mai 2011 à 14:32 +0200, Eric Dumazet a écrit :
> Ouch, thats an ip_fragment() bug I am afraid... nothing to do with SFQ
>
> It calls
>
> err = output(skb);
>
> and a bit later does :
>
> skb = frag;
> frag = skb->next; // thats completely illegal here !
> skb->next = NULL;
>
> I am cooking a patch and send it in a couple of minutes.
Oh well, false alarm, I am still trying to understand the case.
Some other reports would be appreciated, because here is the strange
thing :
[ 4461.969603] Code: b6 70 10
3b b3 08 01 00 00
0f 8d df 01 00 00 jge ....
41 8b 74 24 28 mov 0x28(%r12),%esi qdisc_pkt_len(skb)
01 b3 b4 00 00 00 sch->qstats.backlog += qdisc_pkt_len(skb);
RAX = slot
R12 = SKB
48 8b 70 08 mov 0x8(%rax),%rsi slot->skblist_prev
49 89 04 24 mov %rax,(%r12) skb->next = (struct sk_buff *)slot;
49 89 74 24 08 mov %rsi,0x8(%r12) skb->prev = slot->skblist_prev;
48 8b 70 08 mov 0x8(%rax),%rsi slot->skblist_prev (refetch)
<4c> 89 26 mov %r12,(%rsi) slot->skblist_prev->next = skb; // CRASH
0f b6 f2 movzbl %dl,%esi
4c 89 60 08 mov %r12,0x8(%rax) slot->skblist_prev = skb;
48 8d 3c 76 lea
48 8d bc fb 90 01 00
And in your report RAX = R12 !!! (ffff8801172a7d08) I cant see how it
can happen (Its not even a valid skb address, since an SKB should be
64bytes aligned)
If available a disassembly of sfq_enqueue() would be appreciated too ;)
Thanks !
next prev parent reply other threads:[~2011-05-23 12:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-23 10:01 2.6.38.x, 2.6.39 sfq? kernel panic in sfq_enqueue Denys Fedoryshchenko
2011-05-23 12:32 ` Eric Dumazet
2011-05-23 12:50 ` Eric Dumazet [this message]
2011-05-23 13:23 ` Eric Dumazet
2011-05-23 14:27 ` Denys Fedoryshchenko
2011-05-23 15:05 ` Eric Dumazet
2011-05-23 22:35 ` Denys Fedoryshchenko
2011-05-24 13:17 ` Eric Dumazet
2011-05-24 13:26 ` Denys Fedoryshchenko
-- strict thread matches above, loose matches on Subject: below --
2011-05-24 16:09 Vadym Abramchuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306155058.20687.8.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=denys@visp.net.lb \
--cc=hadi@cyberus.ca \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox