From: Cong Wang <cwang@twopensource.com>
To: Alex <d77190@mail.ru>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: Bug 75571
Date: Mon, 2 Jun 2014 14:19:52 -0700 [thread overview]
Message-ID: <CAHA+R7Oog=fAGjcfVTus2HdCt_Vv-1XDFePR3mLb0FM1N3q0ow@mail.gmail.com> (raw)
In-Reply-To: <1401085231.1775.9.camel@anpws>
[-- Attachment #1: Type: text/plain, Size: 538 bytes --]
On Sun, May 25, 2014 at 11:20 PM, Alex <d77190@mail.ru> wrote:
> Hello!
> I caught a bug and adviced to post it to this list from
> https://bugzilla.kernel.org/show_bug.cgi?id=75571
>
> I tried ifconfig interfaces down (both tun and ifb) before setting rules
> with no luck. This is new trace from kernel 3.2.59.
>
> [ 2945.851717] skb_under_panic: text:f9ca8566 len:209 put:148
> head:ece89000 data:ece88fce tail:0xece8909f end:0xece89140 dev:tun4177
Could you try the following patch? We need to call skb_cow_head() before
skb_push().
[-- Attachment #2: mirred.diff --]
[-- Type: text/plain, Size: 542 bytes --]
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c
index 4f912c0..35b8b8e 100644
--- a/net/sched/act_mirred.c
+++ b/net/sched/act_mirred.c
@@ -156,8 +156,14 @@ static int tcf_mirred(struct sk_buff *skb, const struct tc_action *a,
goto out;
if (!(at & AT_EGRESS)) {
- if (m->tcfm_ok_push)
+ if (m->tcfm_ok_push) {
+ err = skb_cow_head(skb2, skb2->dev->hard_header_len);
+ if (err) {
+ kfree_skb(skb2);
+ goto out;
+ }
skb_push(skb2, skb2->dev->hard_header_len);
+ }
}
/* mirror is always swallowed */
next prev parent reply other threads:[~2014-06-02 21:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 6:20 Bug 75571 Alex
2014-06-01 14:43 ` Emil Goode
2014-06-02 10:32 ` Alex
2014-06-02 17:38 ` Cong Wang
2014-06-02 21:19 ` Cong Wang [this message]
2014-06-04 8:31 ` Alex
2014-06-05 0:27 ` Cong Wang
2014-06-05 5:22 ` Alex
2014-06-05 19:18 ` Cong Wang
2014-06-06 4:13 ` Alex
2014-06-09 23:49 ` Cong Wang
2014-06-14 19:29 ` Alex
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='CAHA+R7Oog=fAGjcfVTus2HdCt_Vv-1XDFePR3mLb0FM1N3q0ow@mail.gmail.com' \
--to=cwang@twopensource.com \
--cc=d77190@mail.ru \
--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;
as well as URLs for NNTP newsgroup(s).