* Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets [not found] <1116702611.14509.10.camel@leto.cs.pocnet.net> @ 2005-05-21 19:49 ` Herbert Xu 2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明 2005-05-21 21:49 ` Christophe Saout 0 siblings, 2 replies; 5+ messages in thread From: Herbert Xu @ 2005-05-21 19:49 UTC (permalink / raw) To: Christophe Saout; +Cc: linux-net, netdev, YOSHIFUJI Hideaki, David S. Miller [-- Attachment #1: Type: text/plain, Size: 624 bytes --] On Sat, May 21, 2005 at 07:10:11PM +0000, Christophe Saout wrote: > > The oops occurs in line 391 in net/ipv6/icmp.c: > > > idev = in6_dev_get(skb->dev); Here is a minimal fix. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> I wonder why I've never seen it before. BTW, icmpv6_send seems to ignore its dev argument altogether. Any reason why we can't just use it instead of skb->dev? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt [-- Attachment #2: p --] [-- Type: text/plain, Size: 274 bytes --] --- a/net/ipv6/xfrm6_output.c +++ b/net/ipv6/xfrm6_output.c @@ -84,6 +84,7 @@ static int xfrm6_tunnel_check_size(struc mtu = IPV6_MIN_MTU; if (skb->len > mtu) { + skb->dev = dst->dev; icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); ret = -EMSGSIZE; } ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets 2005-05-21 19:49 ` [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets Herbert Xu @ 2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明 2005-05-22 7:34 ` Herbert Xu 2005-05-23 20:11 ` David S. Miller 2005-05-21 21:49 ` Christophe Saout 1 sibling, 2 replies; 5+ messages in thread From: YOSHIFUJI Hideaki / 吉藤英明 @ 2005-05-21 20:18 UTC (permalink / raw) To: herbert; +Cc: christophe, linux-net, netdev, davem In article <20050521194932.GA10959@gondor.apana.org.au> (at Sun, 22 May 2005 05:49:32 +1000), Herbert Xu <herbert@gondor.apana.org.au> says: > On Sat, May 21, 2005 at 07:10:11PM +0000, Christophe Saout wrote: > > > > The oops occurs in line 391 in net/ipv6/icmp.c: > > > > > idev = in6_dev_get(skb->dev); > > Here is a minimal fix. > > Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> > BTW, icmpv6_send seems to ignore its dev argument altogether. > Any reason why we can't just use it instead of skb->dev? (After looking into icmpv6_send() usages,) I don't know the reason why we needed the last argument "dev". It seems that we already had it at the time of 2.2.16. Probably, we can remove it. --yoshfuji ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets 2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明 @ 2005-05-22 7:34 ` Herbert Xu 2005-05-23 20:11 ` David S. Miller 1 sibling, 0 replies; 5+ messages in thread From: Herbert Xu @ 2005-05-22 7:34 UTC (permalink / raw) To: YOSHIFUJI Hideaki / ?$B5HF#1QL@; +Cc: christophe, linux-net, netdev, davem On Sun, May 22, 2005 at 05:18:17AM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote: > > > BTW, icmpv6_send seems to ignore its dev argument altogether. > > Any reason why we can't just use it instead of skb->dev? > > (After looking into icmpv6_send() usages,) > I don't know the reason why we needed the last argument "dev". > It seems that we already had it at the time of 2.2.16. > Probably, we can remove it. In a number of places (I've just created another one with my patch :) we are setting skb->dev specifically for icmpv6_send. If we make icmpv6_send use its dev argument instead of skb->dev then we can avoid those settings. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets 2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明 2005-05-22 7:34 ` Herbert Xu @ 2005-05-23 20:11 ` David S. Miller 1 sibling, 0 replies; 5+ messages in thread From: David S. Miller @ 2005-05-23 20:11 UTC (permalink / raw) To: yoshfuji; +Cc: herbert, christophe, linux-net, netdev From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> Date: Sun, 22 May 2005 05:18:17 +0900 (JST) > In article <20050521194932.GA10959@gondor.apana.org.au> (at Sun, 22 May 2005 05:49:32 +1000), Herbert Xu <herbert@gondor.apana.org.au> says: > > > On Sat, May 21, 2005 at 07:10:11PM +0000, Christophe Saout wrote: > > > > > > The oops occurs in line 391 in net/ipv6/icmp.c: > > > > > > > idev = in6_dev_get(skb->dev); > > > > Here is a minimal fix. > > > > Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> > > > Acked-by: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Applied, thanks everyone. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets 2005-05-21 19:49 ` [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets Herbert Xu 2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明 @ 2005-05-21 21:49 ` Christophe Saout 1 sibling, 0 replies; 5+ messages in thread From: Christophe Saout @ 2005-05-21 21:49 UTC (permalink / raw) To: Herbert Xu; +Cc: linux-net, netdev, YOSHIFUJI Hideaki, David S. Miller [-- Attachment #1: Type: text/plain, Size: 121 bytes --] Am Sonntag, den 22.05.2005, 05:49 +1000 schrieb Herbert Xu: > Here is a minimal fix. Yes, it fixes the problem. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-05-23 20:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1116702611.14509.10.camel@leto.cs.pocnet.net>
2005-05-21 19:49 ` [BUG 2.6.12-rc4] IPv6 xfrm tunnel oops with large packets Herbert Xu
2005-05-21 20:18 ` YOSHIFUJI Hideaki / 吉藤英明
2005-05-22 7:34 ` Herbert Xu
2005-05-23 20:11 ` David S. Miller
2005-05-21 21:49 ` Christophe Saout
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox