OOPS: net/ipv6/datagram.c (line 260) ipv6_local_error
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 37 lines · Chris Ruehl
Hi all,
We running a Dell server which crash frequently with (dell crash video snapshot) vanilla 3.14.25
The capture don't sadly don't show the full trace, so we lack on information.
1st line I can see in the crash video from the idrac :tcp_transmit_skb+0x461The null pointer happen:
Type "apropos word" to search for commands related to "word"...
Reading symbols fromnet/ipv6/datagram.o...done.
(gdb) list *(ipv6_local_error+0x17)0xae7is inipv6_local_error(net/ipv6/datagram.c:260).255 struct ipv6_pinfo *np = inet6_sk(sk); 256 struct sock_exterr_skb *serr; 257 struct ipv6hdr *iph; 258 struct sk_buff *skb;259
260 if (!np->recverr)
261 return;
262
263 skb =alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC);
264 if (!skb)
(gdb) quitWe running a 6in4 with ipsec tunnel on the 6. I found a pull request from Steffen Klassert
here:
http://article.gmane.org/gmane.linux.network/281469Which might be relevant to this problem.
Quoted 8 lines
For time being I add a
if (np == NULL){ LIMIT_NETDEBUG(KERN_DEBUG "ipv6_pinfo is NULL\n"); return; }as work around to stop the server crashing
Looks like ipv6_local_error() got an ipv4 socket. You could extend your workaround to something like the below. This should give a full backtrace and the socket family.
net/ipv6/datagram.c +7 -0
@@ -258,6 +258,13 @@ void ipv6_local_error(struct sock *sk, int err, struct flowi6 *fl6, u32 info)struct ipv6hdr *iph;struct sk_buff *skb; +if (np ==NULL ) { +WARN_ON_ONCE (1 ); +if (net_ratelimit ()) +printk (KERN_DEBUG "ipv6_pinfo is NULL, sk family %d\n" , sk->sk_family); +return ; + } +if (!np->recverr)return ;