2004-10-15 14:35:07

by Richard B. Johnson

[permalink] [raw]
Subject: OOPS while loading a Linux-2.6.8 module


If you were to execute `strip` on a Linux-2.6.8 module,
you can OOPS the kernel. Gotta patch? I'll test immediately.


HeavyLink: falsely claims to have parameter shmem
Unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
00000000
*pde = 07469001
Oops: 0000 [#1]
SMP
Modules linked in: HeavyLink parport_pc lp parport autofs4 rfcomm l2cap bluetooth sunrpc 3c59x e100 mii ipt_REJECT ipt_state ip_conntrack iptable_filter ip_tables floppy sg sr_mod microcode dm_mod uhci_hcd ehci_hcd button battery asus_acpi ac ipv6 ext3 jbd ata_piix libata aic7xxx sd_mod scsi_mod
CPU: 0
EIP: 0060:[<00000000>] Not tainted
EFLAGS: 00010202 (2.6.8)
EIP is at 0x0
eax: 00000000 ebx: c0341da0 ecx: c0341da0 edx: 00000000
esi: f0a60f80 edi: c0341d84 ebp: c0341d84 esp: de38dfa4
ds: 007b es: 007b ss: 0068
Process insmod (pid: 25326, threadinfo=de38c000 task=ee9ab730)
Stack: c0138897 bffffc1a 00000004 0807a018 00000000 00000000 de38c000 c0106e4d
0807a018 0000c3e0 0807a008 00000000 00000000 bfffcc08 00000080 0000007b
0000007b 00000080 ffffe410 00000073 00000206 bfffcbb0 0000007b
Call Trace:
[<c0138897>] sys_init_module+0x107/0x220
[<c0106e4d>] sysenter_past_esp+0x52/0x71
Code: Bad EIP value.


Cheers,
Dick Johnson
Penguin : Linux version 2.6.8 on an i686 machine (5537.79 BogoMips).
Note 96.31% of all statistics are fiction.


2004-10-16 10:44:34

by Denis Vlasenko

[permalink] [raw]
Subject: Re: OOPS while loading a Linux-2.6.8 module

On Friday 15 October 2004 17:34, Richard B. Johnson wrote:
>
> If you were to execute `strip` on a Linux-2.6.8 module,
> you can OOPS the kernel. Gotta patch? I'll test immediately.
>
>
> HeavyLink: falsely claims to have parameter shmem
> Unable to handle kernel NULL pointer dereference at virtual address 00000000
> printing eip:
> 00000000
> *pde = 07469001
> Oops: 0000 [#1]
> SMP
> Modules linked in: HeavyLink parport_pc lp parport autofs4 rfcomm
^^^^^^^^^
Is the source of this available anywhere?
--
vda

2004-10-18 11:51:05

by Richard B. Johnson

[permalink] [raw]
Subject: Re: OOPS while loading a Linux-2.6.8 module

On Sat, 16 Oct 2004, Denis Vlasenko wrote:

> On Friday 15 October 2004 17:34, Richard B. Johnson wrote:
>>
>> If you were to execute `strip` on a Linux-2.6.8 module,
>> you can OOPS the kernel. Gotta patch? I'll test immediately.
>>
>>
>> HeavyLink: falsely claims to have parameter shmem
>> Unable to handle kernel NULL pointer dereference at virtual address 00000000
>> printing eip:
>> 00000000
>> *pde = 07469001
>> Oops: 0000 [#1]
>> SMP
>> Modules linked in: HeavyLink parport_pc lp parport autofs4 rfcomm
> ^^^^^^^^^
> Is the source of this available anywhere?
> --
> vda
>

Any module does this. Here's one to experiment with since
it contains practically nothing....


Cheers,
Dick Johnson
Penguin : Linux version 2.6.8 on an i686 machine (5537.79 BogoMips).
Note 96.31% of all statistics are fiction.


Attachments:
demo.tar.gz (8.22 kB)

2004-10-18 23:31:45

by Randy.Dunlap

[permalink] [raw]
Subject: Re: OOPS while loading a Linux-2.6.8 module

Richard B. Johnson wrote:
> On Sat, 16 Oct 2004, Denis Vlasenko wrote:
>
>> On Friday 15 October 2004 17:34, Richard B. Johnson wrote:
>>
>>>
>>> If you were to execute `strip` on a Linux-2.6.8 module,
>>> you can OOPS the kernel. Gotta patch? I'll test immediately.
>>>
>>>
>>> HeavyLink: falsely claims to have parameter shmem
>>> Unable to handle kernel NULL pointer dereference at virtual address
>>> 00000000
>>> printing eip:
>>> 00000000
>>> *pde = 07469001
>>> Oops: 0000 [#1]
>>> SMP
>>> Modules linked in: HeavyLink parport_pc lp parport autofs4 rfcomm
>>
>> ^^^^^^^^^
>> Is the source of this available anywhere?
>> --
>> vda
>>
>
> Any module does this. Here's one to experiment with since
> it contains practically nothing....

Yep. Steve Hemminger posted patches that fix that problem and
they *should* show up in 2.6.10-pre/-rc.

--
~Randy