From: Andrew Morton <akpm@osdl.org>
To: netdev@oss.sgi.com
Cc: mailinglist.chris@gmail.com
Subject: Fw: kernel 2.6 libipq kernel hang
Date: Wed, 6 Apr 2005 15:58:28 -0700 [thread overview]
Message-ID: <20050406155828.1584d7cd.akpm@osdl.org> (raw)
Begin forwarded message:
Date: Wed, 6 Apr 2005 15:12:05 -0400
From: Mailing List <mailinglist.chris@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: kernel 2.6 libipq kernel hang
All,
I am having a kernel hang with all the latest versions of the 2.6
kernel (2.6.8.1, 2.6.9, 2.6.10, and 2.6.12-rc2). Basically, my test
is this: I have a simple ipq program that just takes packets in,
makes a copy of them (using memcpy), then accepts the packets with the
new buffer (which happens to be a copy of the old buffer). I run this
program on two machines, with the following iptables rules:
/sbin/iptables -t mangle -A POSTROUTING -d 192.168.3.0/24 -j QUEUE
/sbin/iptables -t mangle -A PREROUTING -s 192.168.3.0/24 -j QUEUE
I then have a simple server and client program; the server just
accepts a connection, recv's some data, and then closes the connection
(in a while(1) loop). The client connects to the server, send's some
data, then closes the connection (in a while(1) loop). With this test
running, on all of the kernels mentioned above, the kernel will always
hang after some length of time (it seems to be more or less random).
No oops, no stack trace, just a hard kernel lock. I saw in the
ChangeLog for 2.6.12-rc2 that they may have fixed a race condition in
netlink; however, 2.6.12-rc2 still did not work for me. I have also
tried running a server program that just accepts a connection, and
recv's data forever, with a client that connects once, and send's data
forever. This also locked up the machine, although with slightly
different behavior (basically the queue program sucked up 100% of the
processor for a while, then the whole kernel hung).
All of the code I am using, along with the scripts can be found at
http://www.ontologistics.net/OpenSource/libipq
If anyone has any suggestions about what I am doing wrong in either
the libipq program or the client or server programs, or any ideas
about what is going on with netlink, please let me know.
Thank you,
Chris Lalancette
next reply other threads:[~2005-04-06 22:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-06 22:58 Andrew Morton [this message]
2005-06-04 16:40 ` Fw: kernel 2.6 libipq kernel hang Patrick McHardy
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=20050406155828.1584d7cd.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=mailinglist.chris@gmail.com \
--cc=netdev@oss.sgi.com \
/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).