random panics in bridging on 2.6.34+
Subsystems (4)
A message that is not in the archive (sent off-list or not yet received): [email protected]/
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 20110318081052.6ca134fb@nehalam
Quoted 6 lines · Stephen Hemminger
Quoted 1 line · On Fri, 18 Mar 2011 13:49:03 GMT [email protected] wrote:
Herbert hasn't submitted the patch upstream.
Oops! Thanks for reminding me.
bridge: Reset IPCB when entering IP stack on NF_FORWARD
Whenever we enter the IP stack proper from bridge netfilter we need to ensure that the skb is in a form the IP stack expects it to be in.
The entry point on NF_FORWARD did not meet the requirements of the IP stack, therefore leading to potential crashes/panics.
This patch fixes the problem.
net/bridge/br_netfilter.c +3 -0
@@ -752,6 +752,9 @@ static unsigned int br_nf_forward_ip(unsigned int hook, struct sk_buff *skb, nf_bridge->mask |=BRNF_PKT_TYPE ; } +if (br_parse_ip_options (skb)) +return NF_DROP ; +/* The physdev module checks on this */ nf_bridge->mask |=BRNF_BRIDGED ; nf_bridge->physoutdev = skb->dev;
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Stephen Hemminger
Acked-byQuoted 16 lines · On Fri, 18 Mar 2011 10:27:28 -0500 Herbert Xu <[email protected]>…
Quoted 6 lines · Stephen Hemminger
Quoted 1 line · On Fri, 18 Mar 2011 13:49:03 GMT [email protected] wrote:
Herbert hasn't submitted the patch upstream.
Oops! Thanks for reminding me.
bridge: Reset IPCB when entering IP stack on
NF_FORWARDWhenever we enter the IP stack proper from bridge netfilter we need to ensure that the skb is in a form the IP stack expects it to be in.
Quoted 6 lines
The entry point on
NF_FORWARDdid not meet the requirements of the IP stack, therefore leading to potential crashes/panics.This patch fixes the problem.
Signed-off-by Herbert Xu <[email protected]>
From: Stephen Hemminger <[email protected]>
Date: Fri, 18 Mar 2011 09:03:38 -0700
Quoted 19 lines
Quoted 16 lines · On Fri, 18 Mar 2011 10:27:28 -0500 Herbert Xu <[email protected]>…
Quoted 6 lines · Stephen Hemminger
Quoted 1 line · On Fri, 18 Mar 2011 13:49:03 GMT [email protected] wrote:
Herbert hasn't submitted the patch upstream.
Oops! Thanks for reminding me.
bridge: Reset IPCB when entering IP stack on
NF_FORWARDWhenever we enter the IP stack proper from bridge netfilter we need to ensure that the skb is in a form the IP stack expects it to be in.
Quoted 7 lines
Quoted 6 lines
The entry point on
NF_FORWARDdid not meet the requirements of the IP stack, therefore leading to potential crashes/panics.This patch fixes the problem.
Signed-off-by Herbert Xu <[email protected]>
Applied.