From: Ingo Molnar <mingo@elte.hu>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>,
"David S. Miller" <davem@davemloft.net>,
Herbert Xu <herbert@gondor.apana.org.au>,
coreteam@netfilter.org
Subject: Re: [lockup] 2.6.17-rc3: netfilter/sctp: lockup in sctp_new(), do_basic_checks()
Date: Tue, 2 May 2006 15:45:16 +0200 [thread overview]
Message-ID: <20060502134516.GA31049@elte.hu> (raw)
In-Reply-To: <20060502134053.GA30917@elte.hu>
* Ingo Molnar <mingo@elte.hu> wrote:
> > running an "isic" stresstest on and against a testbox [which, amongst
> > other things, generates random incoming and outgoing packets] on
> > 2.6.17-rc3 (and 2.6.17-rc3-mm1) over gigabit results in a reproducible
> > lockup, after 5-10 minutes of runtime:
btw., just in case someone would like to build ISIC on a modern distro,
the minimal fixes are below. The commandline i'm typically using for
testing is:
isic -s firstbox.com -d secondbox.com -m 50000 >/dev/null 2>/dev/null
seems useful.
Ingo
--- icmpsic.c 2006-04-26 16:14:32.000000000 +0200
+++ icmpsic.c.orig 2006-04-26 16:14:33.000000000 +0200
@@ -265,7 +265,7 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) icmp + 4);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- payload[cx] = rand() & 0xffff;
+ (u_short) payload[cx] = rand() & 0xffff;
if ( rand() <= (RAND_MAX * ICMPCksm) )
--- isic.c 2006-04-26 16:14:32.000000000 +0200
+++ isic.c.orig 2006-04-26 16:14:33.000000000 +0200
@@ -229,8 +229,8 @@ main(int argc, char **argv)
payload = (short int *)(buf + IP_H);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- payload[cx] = rand() & 0xffff;
- payload[payload_s] = rand() & 0xffff;
+ (u_int16_t) payload[cx] = rand() & 0xffff;
+ (u_int16_t) payload[payload_s] = rand() & 0xffff;
if ( printout ) {
printf("%s ->",
--- tcpsic.c 2006-04-26 16:14:32.000000000 +0200
+++ tcpsic.c.orig 2006-04-26 16:14:32.000000000 +0200
@@ -317,7 +317,7 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) tcp + 20);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- payload[cx] = rand() & 0xffff;
+ (u_int16_t) payload[cx] = rand() & 0xffff;
if ( rand() <= (RAND_MAX * TCPCksm) )
libnet_do_checksum(l, (u_int8_t *)buf, IPPROTO_TCP, (tcp->th_off << 2)
--- udpsic.c 2006-04-26 16:14:32.000000000 +0200
+++ udpsic.c.orig 2006-04-26 16:14:32.000000000 +0200
@@ -292,7 +292,7 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) udp + UDP_H);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- payload[cx] = rand() & 0xffff;
+ (u_int16_t) payload[cx] = rand() & 0xffff;
if ( printout ) {
printf("%s,%i ->",
next prev parent reply other threads:[~2006-05-02 13:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 11:34 [lockup] 2.6.17-rc3: netfilter/sctp: lockup in sctp_new(), do_basic_checks() Ingo Molnar
2006-05-02 13:40 ` Ingo Molnar
2006-05-02 13:45 ` Ingo Molnar [this message]
2006-05-02 13:54 ` [netfilter-core] " Patrick McHardy
2006-05-02 14:01 ` Ingo Molnar
2006-05-02 13:57 ` Patrick McHardy
2006-05-02 14:16 ` Ingo Molnar
2006-05-02 14:24 ` Ingo Molnar
2006-05-02 14:29 ` Patrick McHardy
2006-05-02 14:38 ` Ingo Molnar
2006-05-02 14:35 ` Patrick McHardy
2006-05-02 14:42 ` Ingo Molnar
2006-05-02 14:40 ` Patrick McHardy
2006-05-02 13:45 ` [netfilter-core] " Patrick McHardy
2006-05-02 15:34 ` Marcel Holtmann
2006-05-02 15:55 ` [netfilter-core] " 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=20060502134516.GA31049@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-kernel@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.