Skip to contentSkip to conversation

list delete bug: kernel crash

DISCUSSION security 4 participants 6 messages Aug 31, 2004

lore
Share & tools
lore

security

author
#0 lore raw

----- Original Message ----- From: "security" <[email protected]>
To: "Gavin Hamill" <[email protected]>; <[email protected]>
Sent: Tuesday, August 31, 2004 3:34 PM
Subject: Re: list delete bug: kernel crash

Quoted 11 lines
Quoted 10 lines

This may be a long shot, but there may exist the possibility of the files on disk being corrupted when they were installed, due to your faulty memory?

Try to reinstall the kernel / modules and iptables userspace?

Cheers,
Gavin.

Ok. I go re-compil my kernel and re-install iptable package :)

Ok still have crash after re-compil my kernel and re-install iptable userspace package. Allways the same error:

Aug 31 16:01:39 gateway kernel: LIST_DELETE: net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9224) not in
&ip_conntrack_hash[hr].
Aug 31 16:01:39 gateway kernel: LIST_DELETE: net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9524) not in
&ip_conntrack_hash[hr].
Aug 31 16:03:26 gateway kernel: LIST_DELETE: net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d6537224) not in

&ip_conntrack_hash[hr].

#1 lore raw
Quoted 8 lines · security

Ok still have crash after re-compil my kernel and re-install iptable userspace package.
Allways the same error:

Aug 31 16:01:39 gateway kernel: LIST_DELETE:

net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9224) not in &ip_conntrack_hash[hr].

That's a shame. Unless your netfilter support came via modules rather than from the kernel itself, then I'm afraid I have no more suggestions :( My last thinking was that you may not have replaced any modules - only the main kernel file...

Cheers,
Gavin.

author
#2 lore raw

----- Original Message ----- From: "Gavin Hamill" <[email protected]>
To: <[email protected]>
Sent: Tuesday, August 31, 2004 5:05 PM
Subject: Re: list delete bug: kernel crash

Quoted 11 lines · security
Quoted 9 lines

Ok still have crash after re-compil my kernel and re-install iptable userspace package.
Allways the same error:

Aug 31 16:01:39 gateway kernel: LIST_DELETE:

net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9224) not in &ip_conntrack_hash[hr].

Quoted 5 lines

That's a shame. Unless your netfilter support came via modules rather than from the kernel itself, then I'm afraid I have no more suggestions :( My last thinking was that you may not have replaced any modules - only the main kernel file...

I have re-compil / install kernel and modules.
But, i will wait because when the last crash occur, i had re install iptable userspace BUT didn't have reboot.
And i have notice too that the iptable userspace i used was 1.2.11 compiled by me, and now i have re-install offciel slackware 10.0 package: 1.2.10 So i will wait to see if i have other crash since i have reboot with this iptable userspace version.

#3 lore raw
In reply to security
Quoted 31 lines · security

----- Original Message -----
From: "security" <[email protected]>
To: "Gavin Hamill" <[email protected]>; <[email protected]>
Sent: Tuesday, August 31, 2004 3:34 PM
Subject: Re: list delete bug: kernel crash

Quoted 11 lines
Quoted 9 lines

This may be a long shot, but there may exist the possibility of the files on
disk being corrupted when they were installed, due to your faulty memory?

Try to reinstall the kernel / modules and iptables userspace?

Cheers,
Gavin.

Ok. I go re-compil my kernel and re-install iptable package :)

Ok still have crash after re-compil my kernel and re-install iptable userspace package.
Allways the same error:

Aug 31 16:01:39 gateway kernel: LIST_DELETE:
net/ipv4/netfilter/ip_conntrack_core.c:300
`&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9224) not in
&ip_conntrack_hash[hr].
Aug 31 16:01:39 gateway kernel: LIST_DELETE:
net/ipv4/netfilter/ip_conntrack_core.c:300
`&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9524) not in
&ip_conntrack_hash[hr].
Aug 31 16:03:26 gateway kernel: LIST_DELETE:
Quoted 3 lines

net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d6537224) not in &ip_conntrack_hash[hr].

I recall having memory problems in the past (about three years ago) ... never very fun, and the issue was so fine grained that I ended up having to
rebuild the box from a zeroed disk. Reading backward I see you are using 2.6.8.1 kernel code. Can you check

1) the MD5 sum of the tarball of kernel code and the 2)MD5 sum of the tarball of iptables,

just as a quick verification that they are (close to) clean.

next == which version of iptables ( i didn't notice that in your original
post) and what elements if any out of patch-o-matic(-ng) are installed?

Keep in mind that you now have to question any code that is on your system
that might have been built wilst that damaged memory module was installed, one never knows where a bit might have been flipped. *sigh*

This particular message is from LIST_DELETE in function clean_from_lists() and appears at first glance to be the cleanup after
expectation timeout. You don't have any tweaks to any of the (expectation) timeout code somewhere do you?

You could *try* running MD5sum against ip_*.c
in /usr/src/linux/net/ipv4/netfilter dir -- and *possibly* someone could verify the numbers .....but I personally would redownload the whole lot to be safe (i.e. kernel code/iptables code etc) -- if this is a recently built box, I'd rebuild from the ground up based on the bad memory module... but I'm paranoid....

Alistair Tonner

#5 lore raw
In reply to security
Quoted 33 lines · security

----- Original Message -----
From: "security" <[email protected]>
To: "Gavin Hamill" <[email protected]>; <[email protected]>
Sent: Tuesday, August 31, 2004 3:34 PM
Subject: Re: list delete bug: kernel crash

Quoted 5 lines
Quoted 5 lines

This may be a long shot, but there may exist the possibility of the files on
disk being corrupted when they were installed, due to your faulty memory?

Quoted 7 lines
Quoted 6 lines

Try to reinstall the kernel / modules and iptables userspace?

Cheers,
Gavin.

Ok. I go re-compil my kernel and re-install iptable package :)

Ok still have crash after re-compil my kernel and re-install iptable userspace package.
Allways the same error:

Aug 31 16:01:39 gateway kernel: LIST_DELETE: 
net/ipv4/netfilter/ip_conntrack_core.c:300 
`&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9224) not in
&ip_conntrack_hash[hr].
Aug 31 16:01:39 gateway kernel: LIST_DELETE: 
net/ipv4/netfilter/ip_conntrack_core.c:300 
`&ct->tuplehash[IP_CT_DIR_REPLY]'(d3ac9524) not in
&ip_conntrack_hash[hr].
Aug 31 16:03:26 gateway kernel: LIST_DELETE: 
Quoted 3 lines

net/ipv4/netfilter/ip_conntrack_core.c:300 `&ct->tuplehash[IP_CT_DIR_REPLY]'(d6537224) not in &ip_conntrack_hash[hr].

Have you tried to patch with patch-o-matic and recompile both the kernel and the userspace last sources (iptables). Both sides of the system must be synced or there will be problems.

Signature · 12 lines
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
[email protected]
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
                -- Jack Kerouac, "On the Road"
author
#4 lore raw
In reply to Alistair Tonner
Quoted 7 lines

I recall having memory problems in the past (about three years ago) ... never very fun, and the issue was so fine grained that I ended up having to rebuild the box from a zeroed disk. Reading backward I see you are using 2.6.8.1 kernel code. Can you check

[snip]

I have backup all my data, take my 2 install slackware CDROM, format all my disk and re-install slackware 10.0. Now i'm sure:
- My memory is not faulty (10 PASS of memtest86 without error)
- kernel / program are installed / compiled without memory fault
- i have a fresh and good install

No crash since my re install ,in fact i'm still installing, so many things to do... and as usuall i have forget to backup some files, but it's ok lol :)

So if i got another kernel crash i will post here :)

thanks all to help me :)