Skip to contentSkip to conversation

2.4.23 hard lock, 100% reproducible.

DISCUSSION Mark Symonds 5 participants 7 messages Dec 7, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I've got a machine here that is locking hard under 2.4.23. Normally would suspect it's a hardware problem but it runs fine on 2.4.22 and also 2.2 series kernels. In a bit of a quandry here since that box has shell users...

I'm getting no oopses on the monitor nor in the logs - this is a hard, instantaneous crash. No kbd, no nothing, good night.

I've got a kernel compiling right now with hacking support, but none of the additional hacking options are enabled.

Wondering if anyone else has seen this? lspci output is below, will wait until requested before dumping a bunch of crap about my hardware onto the list.

Anything I can do from userland, let me know.

Signature · 26 lines
Mark 



----------------------- 
symonds:~# lspci
00:00.0 Host bridge: Intel Corp. 82810 GMCH [Graphics
Memory Controller Hub] (rev 03)
00:01.0 VGA compatible controller: Intel Corp. 82810 CGC
[Chipset Graphics Controller] (rev 03)
00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev
02)
00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC)
(rev 02)
00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02)
00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02)
00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02)
01:09.0 Multimedia audio controller: Cirrus Logic
Crystal CS4281 PCI Audio (rev 01)
01:0b.0 Ethernet controller: D-Link System Inc RTL8139
Ethernet (rev 10)
01:0d.0 Ethernet controller: VIA Technologies, Inc.
VT86C100A [Rhine 10/100] (rev 06)
01:0e.0 Ethernet controller: Lite-On Communications Inc
LNE100TX (rev 20)
symonds:~#
#1 lore raw
Quoted 11 lines · Mark Symonds

Hi,

I've got a machine here that is locking hard under 2.4.23. Normally would suspect it's a hardware problem but it runs fine on 2.4.22 and also 2.2 series kernels. In a bit of a quandry here since that box has shell users...

I'm getting no oopses on the monitor nor in the logs - this is a hard, instantaneous crash. No kbd, no nothing, good night.

Not even sysrq?

Quoted 7 lines

I've got a kernel compiling right now with hacking support, but none of the additional hacking options are enabled.

Wondering if anyone else has seen this? lspci output is below, will wait until requested before dumping a bunch of crap about my hardware onto the list.

Same for me.

2.4.23 locks up hard. 2.4.22 worked perfectly (save the random usb oops).

I was not able to capture a register trace or a process dump with sysrq because this box has a usb keyboard and usb seems to get shot. I've plugged a ps/2 keyboard to get more details the next lock-up. If this fail, I might try the NMI oopser.

lspci:

00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x] (rev c4) 00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x AGP] 00:07.0 ISA bridge: VIA Technologies, Inc. VT82C596 ISA [Mobile South] (rev 23) 00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 10) 00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 11) 00:07.3 Host bridge: VIA Technologies, Inc. VT82C596 Power Management (rev 30) 00:0f.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 08) 00:0f.1 Input device controller: Creative Labs SB Live! (rev 08) 00:10.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang] 00:12.0 SCSI storage controller: Adaptec 7892A (rev 02)
01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 04)

Phil.

#2 lore raw

[...]

Quoted 3 lines

Not even sysrq?

I did get msgs twice here in the past few hours, but only sometimes does it give anything. Here's what it said:

Unable to handle kernel NULL pointer

dereference at virtual address: 00000000

printing eip:
c02363dd
*pde=00000000

Oops: 0000
CPU: 0

EIP: 0010:[<c02363d>] Not tainted
EFLAGS: 00010217

eax: 00000006 ebx: 00000000 ecx: 7a01a8c0 ecx: c700b2a0
esi: c0299ce0 edi: 000001b7 ebp: c0299d94 esp: c0299c54
ds: 0018 es: 0018 ss: 0018

process: swapper (pid: 0, stackpage = c0299000)

Other than that, nothing. Is there a patch out there that will simply make 2.4.22 secure? Things run great on that kernel.

Signature · 1 line
Mark
#3 lore raw
Quoted 3 lines · Mark Symonds

Other than that, nothing. Is there a patch out there that will simply make 2.4.22 secure? Things run great on that kernel.

Here's the relevant section from patch-2.4.23

- Chris

mm/mmap.c 2003-11-28 10:26:21.000000000 -0800 renamed from mm/mmap.c 2003-06-13 07:51:39.000000000 -0700 +3 -0
diff -urN linux-2.4.22/mm/mmap.c linux-2.4.23/mm/mmap.c
@@ -1041,6 +1041,9 @@
        if (!len)
                return addr;
 
+       if ((addr + len) > TASK_SIZE || (addr + len) < addr)
+               return -EINVAL;
+
        /*
         * mlock MCL_FUTURE?
         */
#4 lore raw
Quoted 6 lines · Chris Frey
Quoted 3 lines · Mark Symonds

Other than that, nothing. Is there a patch out there that will simply make 2.4.22 secure? Things run great on that kernel.

Here's the relevant section from patch-2.4.23

Hi,
This is included with the patch set I just posted, 2.4.22-uv3 available at
http://www.hardrock.org/current-updates/linux-2.4.22-uv3-updates.patch.

This also includes patches for some other issues in 2.4.22. I haven't yet posted one for 2.4.23 due to some outstanding issues with what appear to be (or at least could be) hard locks (such as this thread). Once these are resolved I will be releasing a -uv for 2.4.23.

Regards
James

Quoted 2 lines

- Chris

Signature · 5 lines
James Bourne                  | Email:            [email protected]          
Unix Systems Administrator    | WWW:           http://www.hardrock.org
Custom Unix Programming       | Linux:  The choice of a GNU generation
----------------------------------------------------------------------
 "All you need's an occasional kick in the philosophy." Frank Herbert  
#6 lore raw
Quoted 6 lines · David Rees
Quoted 2 lines · James Bourne

This is included with the patch set I just posted, 2.4.22-uv3 available at
http://www.hardrock.org/current-updates/linux-2.4.22-uv3-updates.patch.

The correct link appears to be
http://www.hardrock.org/kernel/current-updates/linux-2.4.22-uv3-updates.patch

Sorry, yes this is correct.

Regards
James

Quoted 1 line

-Dave

Signature · 5 lines
James Bourne                  | Email:            [email protected]          
Unix Systems Administrator    | WWW:           http://www.hardrock.org
Custom Unix Programming       | Linux:  The choice of a GNU generation
----------------------------------------------------------------------
 "All you need's an occasional kick in the philosophy." Frank Herbert