* Fw: kernel 2.6 libipq kernel hang
@ 2005-04-06 22:58 Andrew Morton
2005-06-04 16:40 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Morton @ 2005-04-06 22:58 UTC (permalink / raw)
To: netdev; +Cc: mailinglist.chris
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fw: kernel 2.6 libipq kernel hang
2005-04-06 22:58 Fw: kernel 2.6 libipq kernel hang Andrew Morton
@ 2005-06-04 16:40 ` Patrick McHardy
0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2005-06-04 16:40 UTC (permalink / raw)
To: mailinglist.chris; +Cc: Andrew Morton, netdev
Andrew Morton wrote:
>
> 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
>
> /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
>
> 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.
Please try latest -git, Harald fixed a bug that could cause a deadlock
when ip_queue was used in PRE_ROUTING.
Regards
Patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-04 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-06 22:58 Fw: kernel 2.6 libipq kernel hang Andrew Morton
2005-06-04 16:40 ` Patrick McHardy
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).