Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jarek Poplawski
Date: Wednesday, April 18, 2007 - 5:42 am

Hi,

I didn't analyse this bug report but probably it
is nearly connected with one of the bugs visible in
a log from this submit:

http://bugzilla.kernel.org/show_bug.cgi?id=8132

On 15-04-2007 02:50, Paul Mackerras wrote:

Let's look farther:


BTW - about Patrick's patch:

skb_push seems to be dependent here on the 1-st char of
skb->data, if above (p[0] != PPP_ALLSTATIONS), but on the
3-rd char otherwise (after skb_pull). But, Patrick's patch
reserves the place for this, looking always at 1-st char
(buf[0]) independently of PPP_ALLSTATIONS char presence,
or otherwise - always treating this char as protocol char.
It looks safe because of PPP_ALLSTATION current value,
but isn't too understandable.

On the other hand, without any reservation in the
ppp_async_input for the (buf[0] == PPP_ALLSTATIONS) case,
probably 4-byte alignement isn't achieved as planned. 


Probably this isn't always true and here the problem
started...


Isn't here lost e.g. NET_SKB_PAD probably reserved by
dev_alloc_skb?

On the other hand - this kind of pad can very good hide
similar reservation problems in many other places - maybe
it should be omitted or somehow counted in WARNs when some
debugging options are active?

Regards,
Jarek P.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, David Miller, (Sat Apr 7, 11:47 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Patrick McHardy, (Wed Apr 11, 10:43 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, David Miller, (Fri Apr 13, 4:16 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Paul Mackerras, (Sat Apr 14, 9:49 am)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, David Miller, (Sat Apr 14, 10:04 am)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Patrick McHardy, (Sat Apr 14, 10:10 am)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Paul Mackerras, (Sat Apr 14, 5:50 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Paul Mackerras, (Sat Apr 14, 6:05 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Patrick McHardy, (Sun Apr 15, 9:06 pm)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, Jarek Poplawski, (Wed Apr 18, 5:42 am)
Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6, David Miller, (Thu Apr 19, 1:07 pm)