From: Eric Dumazet <eric.dumazet@gmail.com>
To: Chris Rankin <rankincj@yahoo.com>
Cc: netdev@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>,
bugzilla-daemon@bugzilla.kernel.org,
bugme-daemon@bugzilla.kernel.org, stable@kernel.org,
Neil Horman <nhorman@tuxdriver.com>
Subject: Re: [Bugme-new] [Bug 14749] New: Kernel locks up after a few minutes of heavy surfing
Date: Tue, 08 Dec 2009 04:03:30 +0100 [thread overview]
Message-ID: <4B1DC202.20607@gmail.com> (raw)
In-Reply-To: <138412.20552.qm@web52903.mail.re2.yahoo.com>
Chris Rankin a écrit :
>
> I saw something interesting in 2.6.31.7 about a crash due to fragmentation:
>
> ipv4: additional update of dev_net(dev) to struct *net in ip_fragment.c, NULL ptr OOPS
>
> I'll try applying that patch too, to see if it makes any difference. Along with that other UDP-related thing I noticed:
>
> udp: Fix udp_poll() and ioctl()
>
Its all two years old UDP bugs (I spot another one some hours ago), and very rare.
I run heavy duty servers with lot of UDP trafic and never caught a _single_ error,
I am quite suprised it could happen on your machine on demand.
1) Do you have another NIC adapter to try ? It might be a buggy driver.
(Neil Horman found an error on Intel drivers some hours ago, that can corrupt skbs)
2) Could you add following debugging aid ?
3) Any chance you can do a git bisect ?
Thanks
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index 7d12c6a..5a7a456 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -147,10 +147,15 @@ void inet_sock_destruct(struct sock *sk)
return;
}
- WARN_ON(atomic_read(&sk->sk_rmem_alloc));
- WARN_ON(atomic_read(&sk->sk_wmem_alloc));
- WARN_ON(sk->sk_wmem_queued);
- WARN_ON(sk->sk_forward_alloc);
+ WARN((atomic_read(&sk->sk_rmem_alloc) | atomic_read(&sk->sk_wmem_alloc) |
+ sk->sk_wmem_queued | sk->sk_forward_alloc) != 0,
+ "%s socket sk_rmem_alloc=%d sk_wmem_alloc=%d "
+ "sk_wmem_queued=%d sk_forward_alloc=%d\n",
+ sk->sk_prot->name,
+ atomic_read(&sk->sk_rmem_alloc),
+ atomic_read(&sk->sk_wmem_alloc),
+ sk->sk_wmem_queued,
+ sk->sk_forward_alloc);
kfree(inet->opt);
dst_release(sk->sk_dst_cache);
next prev parent reply other threads:[~2009-12-08 3:04 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-14749-10286@http.bugzilla.kernel.org/>
2009-12-07 21:53 ` [Bugme-new] [Bug 14749] New: Kernel locks up after a few minutes of heavy surfing Andrew Morton
2009-12-08 0:19 ` Chris Rankin
2009-12-08 3:03 ` Eric Dumazet [this message]
2009-12-08 9:03 ` Chris Rankin
2009-12-08 11:21 ` Eric Dumazet
2009-12-08 11:36 ` Jarek Poplawski
2009-12-08 13:35 ` Chris Rankin
2009-12-08 13:47 ` Jarek Poplawski
2009-12-15 7:54 ` Jarek Poplawski
2009-12-08 12:00 ` Neil Horman
2009-12-08 13:39 ` Chris Rankin
2009-12-08 13:41 ` Neil Horman
2009-12-08 14:39 ` Eric Dumazet
2009-12-08 9:17 ` Chris Rankin
2009-12-08 0:31 ` Chris Rankin
2009-12-08 0:44 ` Andrew Morton
2009-12-08 0:38 ` Chris Rankin
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=4B1DC202.20607@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=rankincj@yahoo.com \
--cc=stable@kernel.org \
/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).