From: David Miller <davem@davemloft.net>
To: paulus@samba.org
Cc: kaber@trash.net, poemann@gmail.com, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: Re: kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6
Date: Sat, 14 Apr 2007 10:04:41 -0700 (PDT) [thread overview]
Message-ID: <20070414.100441.15000708.davem@davemloft.net> (raw)
In-Reply-To: <17953.1560.855914.274514@cargo.ozlabs.ibm.com>
From: Paul Mackerras <paulus@samba.org>
Date: Sun, 15 Apr 2007 02:49:28 +1000
> I didn't see the patch (the message that this is a reply to is the
> first one that I have seen in this thread), so I can't comment on it.
Here is Patrick McHardy's patch:
diff --git a/drivers/net/ppp_async.c b/drivers/net/ppp_async.c
index 933e2f3..c68e37f 100644
--- a/drivers/net/ppp_async.c
+++ b/drivers/net/ppp_async.c
@@ -890,6 +890,8 @@ ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
ap->rpkt = skb;
}
if (skb->len == 0) {
+ int headroom = 0;
+
/* Try to get the payload 4-byte aligned.
* This should match the
* PPP_ALLSTATIONS/PPP_UI/compressed tests in
@@ -897,7 +899,10 @@ ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
* enough chars here to test buf[1] and buf[2].
*/
if (buf[0] != PPP_ALLSTATIONS)
- skb_reserve(skb, 2 + (buf[0] & 1));
+ headroom += 2;
+ if (buf[0] & 1)
+ headroom += 1;
+ skb_reserve(skb, headroom);
}
if (n > skb_tailroom(skb)) {
/* packet overflowed MRU */
next prev parent reply other threads:[~2007-04-14 17:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <19061b0b0704071111m65c70d1ei736de86ad2f09a82@mail.gmail.com>
[not found] ` <20070407.234708.93384523.davem@davemloft.net>
[not found] ` <19061b0b0704081315g3593d652s70e9b5b0dcfcf966@mail.gmail.com>
[not found] ` <19061b0b0704100219w4749e5fby9b400edca9bf334d@mail.gmail.com>
[not found] ` <9a8748490704100425t34ebafcdq866a923df80b9aca@mail.gmail.com>
[not found] ` <19061b0b0704112218j13688c16xc755d66147f8fe6a@mail.gmail.com>
2007-04-12 5:43 ` kernel BUG at net/core/skbuff.c in linux-2.6.21-rc6 Patrick McHardy
2007-04-13 23:16 ` David Miller
2007-04-14 6:00 ` Herbert Xu
2007-04-14 16:49 ` Paul Mackerras
2007-04-14 17:04 ` David Miller [this message]
2007-04-14 17:10 ` Patrick McHardy
2007-04-15 0:50 ` Paul Mackerras
2007-04-15 1:05 ` Paul Mackerras
2007-04-19 20:07 ` David Miller
2007-04-18 12:42 ` Jarek Poplawski
2007-04-18 21:35 ` Herbert Xu
2007-04-19 8:49 ` Bartek
2007-04-19 11:41 ` Herbert Xu
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=20070414.100441.15000708.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=paulus@samba.org \
--cc=poemann@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).