public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* hard crash in IPsec
@ 2004-01-19 10:48 Valentijn Sessink
  2004-01-19 13:36 ` James Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Valentijn Sessink @ 2004-01-19 10:48 UTC (permalink / raw)
  To: linux-kernel

Hello list,

2.6.0/IPsec crashes, fully reproducable. Verified with 2.6.1.

Details of the crash are on a couple of jpg's,
http://valentijn.sessink.nl/fotoalbum/2004-01-14%20afscheidscollege%20Frits/img_0017.jpg
and img_0018.jpg

IPsec config on the crashing machine:

add $ip1 $ip2 esp 0x202 -m tunnel -E 3des-cbc $passwd1
 -A hmac-md5 $passwd2;
add $ip2 $ip1 esp 0x302 -m tunnel -E 3des-cbc $passwd3
 -A hmac-md5 $passwd4;
spdadd net/24 work/24 any -P out ipsec esp/tunnel/$ip1-$ip2/require;
spdadd net/24 work/24 any -P out ipsec esp/tunnel/$ip2-$ip1/require;

note the wrong config, where the second spdadd has an "out" instead of the
correct "in". The other end has correct configuration.

tcpdumping the network now says:
15:07:07.335105 $ip1 > $ip2: ESP(spi=0x00000202,seq=0x1) (DF)
15:07:07.365947 $ip2 > $ip1: ESP(spi=0x00000302,seq=0x5)
15:07:07.365947 truncated-ip - 16 bytes missing!$ip2 > 69.0.0.84:
$ip1 > 69.0.0.84: (frag 13828:4294967256@29112) [tos 0x4c] (ipip)
15:07:08.331514 $ip1 > $ip2: ESP(spi=0x00000202,seq=0x2) (DF)
15:07:08.361917 $ip2 > $ip1: ESP(spi=0x00000302,seq=0x6)
15:07:08.361917 truncated-ip - 16 bytes missing!$ip2 > 69.0.0.84:
$ip1 > 69.0.0.84: (frag 13828:4294967256@29096) [tos 0x4e,ECT] (ipip)
15:07:09.330341 $ip1 > $ip2: ESP(spi=0x00000202,seq=0x3) (DF)
15:07:09.362973 $ip2 > $ip1: ESP(spi=0x00000302,seq=0x7)
15:07:09.362973 truncated-ip - 16 bytes missing!$ip2 > 69.0.0.84:
$ip1 > 69.0.0.84: (frag 13828:4294967256@29080) [tos 0x50] (ipip)
15:07:10.331186 $ip1 > $ip2: ESP(spi=0x00000202,seq=0x4) (DF)

Once the setup was corrected, everything was fine (no crashes).

This is Debian GNU/Linux 3.0, kernel compiled with GCC 2.95.4, a 32Mb Cyrix
6x86MX machine.

Best regards,

Valentijn
-- 
http://www.openoffice.nl/   Open Office - Linux Office Solutions
Valentijn Sessink  valentyn+sessink@nospam.openoffice.nl

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-01-19 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-19 10:48 hard crash in IPsec Valentijn Sessink
2004-01-19 13:36 ` James Morris
2004-01-19 14:23   ` Valentijn Sessink
2004-01-19 14:25     ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox