From: Eric Dumazet <eric.dumazet@gmail.com>
To: Alexander Holler <holler@ahsoftware.de>
Cc: Neil Horman <nhorman@tuxdriver.com>,
linux-kernel@vger.kernel.org, David Miller <davem@davemloft.net>,
Herbert Xu <herbert@gondor.apana.org.au>,
netdev@vger.kernel.org
Subject: Re: bridge/netfilter: regression in 2.6.39.1
Date: Mon, 06 Jun 2011 14:12:37 +0200 [thread overview]
Message-ID: <1307362358.3098.6.camel@edumazet-laptop> (raw)
In-Reply-To: <4DECBEA3.6070408@ahsoftware.de>
Le lundi 06 juin 2011 à 13:48 +0200, Alexander Holler a écrit :
> Am 06.06.2011 13:15, schrieb Neil Horman:
> > On Fri, Jun 03, 2011 at 09:21:06PM +0200, Alexander Holler wrote:
> >> Hello,
> >>
> >> I'm getting a oops in the bridge code in br_change_mtu() with
> >> 2.6.39.1. The patch below seems to fix that.
> >>
> >> I'm not sure about the usage of dst_cow_metrics_generic() in
> >> fake_dst_ops, but after having a quick look at it seems to be ok to
> >> use that here.
> >>
> >> Regards,
> >>
> >> Alexander
> >>
> > How did the flags of the dst entry on which we're callnig dst_entry_write_ptr
> > wind up getting the READ_ONLY flag set on it? I don't see how we'er falling
> > into that clause in which we call cow_metrics when we call dst_metric_set. It
> > seems like that flag is set erroneously. perhaps we should just update
> > fake_rtable.dst to have the correct flags?
> > Neil
>
> It is set by that change:
>
> --------
> @@ -124,7 +128,7 @@ void br_netfilter_rtable_init(struct net_bridge *br)
> atomic_set(&rt->dst.__refcnt, 1);
> rt->dst.dev = br->dev;
> rt->dst.path = &rt->dst;
> - dst_metric_set(&rt->dst, RTAX_MTU, 1500);
> + dst_init_metrics(&rt->dst, br_dst_default_metrics, true);
> rt->dst.flags = DST_NOXFRM;
> rt->dst.ops = &fake_dst_ops;
> }
> --------
>
> The true in dst_init_metrics() is responsible for that flag.
>
You are aware this change fixed an oops ?
read_only in this context means : In case this must be written, we make
a COW first
(allocate a piece of memory, copy the source in it before applying any
change)
It would be nice you send us the stack trace, so that we can have a clue
of whats going on.
Thanks
next prev parent reply other threads:[~2011-06-06 12:12 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 19:21 bridge/netfilter: regression in 2.6.39.1 Alexander Holler
2011-06-03 19:34 ` Eric Dumazet
2011-06-03 19:42 ` Alexander Holler
2011-06-03 19:51 ` Alexander Holler
2011-06-03 19:55 ` Eric Dumazet
2011-06-04 12:04 ` Alexander Holler
2011-06-06 6:57 ` Alexander Holler
2011-06-03 22:31 ` Ben Hutchings
2011-06-06 11:15 ` Neil Horman
2011-06-06 11:48 ` Alexander Holler
2011-06-06 12:12 ` Eric Dumazet [this message]
2011-06-06 12:49 ` Alexander Holler
2011-06-06 13:13 ` Neil Horman
2011-06-06 13:18 ` Eric Dumazet
2011-06-06 13:16 ` Eric Dumazet
2011-06-06 13:29 ` Alexander Holler
2011-06-06 14:26 ` Eric Dumazet
2011-06-06 15:32 ` Neil Horman
2011-06-06 16:11 ` Eric Dumazet
2011-06-06 17:07 ` Neil Horman
2011-06-07 7:52 ` David Miller
2011-06-06 13:09 ` Eric Dumazet
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=1307362358.3098.6.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=holler@ahsoftware.de \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.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).