linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux 2.6.15.1 ppp_async panic on x86-64.
@ 2006-01-15 19:48 Vitaly V. Bursov
  2006-01-15 20:09 ` Diego Calleja
  2006-01-20 12:30 ` Andrew Morton
  0 siblings, 2 replies; 6+ messages in thread
From: Vitaly V. Bursov @ 2006-01-15 19:48 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]

Hello,

PPP doesn't work for me on a x86-64 kernel. Kernel panics with a message

================cut: dmesg
Jan 15 20:24:12 vb skb_over_panic: text:ffffffff886700d9 len:1 put:1
head:ffff81002b7ed000 data:ffff81012b7ed000 tail:ffff81012b7ed001
end:ffff81002b7ed600 dev:<NULL>
Jan 15 20:24:12 vb ----------- [cut here ] --------- [please bite here ] ---------
Jan 15 20:24:12 vb Kernel BUG at net/core/skbuff.c:94
================cut
note the "tail" and "end" difference:
0xffff81012b7ed001-0xffff81002b7ed600 = 0xfffffa01


It looks like that problem is caused by this peace of code.
At least it works better after commenting out "skb_reserve" line.

================cut: ppp_async.c
 err:
        /* frame had an error, remember that, reset SC_TOSS & SC_ESCAPE */
        ap->state = SC_PREV_ERROR;
        if (skb) {
                /* make skb appear as freshly allocated */
                skb_trim(skb, 0);
                skb_reserve(skb, - skb_headroom(skb));
        }
================cut

skb_headroom returns 32bit "int", skb_reserve takes 32bit "unsigned int" and
adds it to a 64bit pointer, which is bad.

I'm not at the list.
-- 
Thank you,
Vitaly                                                              DON'T PANIC
GPG Key ID: F95A23B9

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-20 21:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-15 19:48 linux 2.6.15.1 ppp_async panic on x86-64 Vitaly V. Bursov
2006-01-15 20:09 ` Diego Calleja
2006-01-15 20:41   ` Serge Belyshev
2006-01-16  3:03     ` Diego Calleja
2006-01-20 12:30 ` Andrew Morton
2006-01-20 21:25   ` Vitaly V. Bursov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).