[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20141006.005325.565105939884937203.davem@davemloft.net>
Date: Mon, 06 Oct 2014 00:53:25 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: fw@...len.de, netfilter-devel@...r.kernel.org, bsd@...hat.com,
stephen@...workplumber.org, netdev@...r.kernel.org,
eric.dumazet@...il.com, davidn@...idnewall.com
Subject: Re: bridge: Do not compile options in br_parse_ip_options
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Sat, 4 Oct 2014 22:18:02 +0800
> bridge: Do not compile options in br_parse_ip_options
>
> Commit 462fb2af9788a82a534f8184abfde31574e1cfa0
>
> bridge : Sanitize skb before it enters the IP stack
>
> broke when IP options are actually used because it mangles the
> skb as if it entered the IP stack which is wrong because the
> bridge is supposed to operate below the IP stack.
>
> Since nobody has actually requested for parsing of IP options
> this patch fixes it by simply reverting to the previous approach
> of ignoring all IP options, i.e., zeroing the IPCB.
>
> If and when somebody who uses IP options and actually needs them
> to be parsed by the bridge complains then we can revisit this.
>
> Reported-by: David Newall <davidn@...idnewall.com>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Agreed that mangling the packet is definitely wrong here, and since
you preserve the CB clearing this change should be fine.
Please submit this formally after it's been tested.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists