public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] null-pointer deref (perhaps reiserfs3)
@ 2004-12-05 22:31 Sven Köhler
  2004-12-06 16:35 ` Sven Köhler
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Köhler @ 2004-12-05 22:31 UTC (permalink / raw)
  To: linux-kernel

Hi,

on a machine that i can only reach via SSH at the moment, i got a 
null-pointer dereference (see below). The machine runs kernel 2.6.9 
without any additional patches.

It happened, while i was doing a "make install". A command within the 
"installkernel"-script segfaulted. It seems that only the filesystem 
mounted to /boot is affected. Any access to that FS blocks.

Is there any way to recover the situation remotely? I'm thinking about 
unmounting /boot, and running fsck.reiserfs, but i cannot umount the FS, 
since the device is still in use.



Unable to handle kernel NULL pointer dereference at virtual address 00000000
  printing eip:
c018d632
*pde = 00000000
Oops: 0000 [#1]
SMP
Modules linked in: nfsd exportfs lockd sunrpc ipt_state ip_conntrack 
ipt_REJECT ipt_ULOG iptable_filter ip_tables ohci_hcd ehci_hcd uhci_hcd 
rtc usbcore 8250_acpi 8250 serial_core e100 mii ide_cd sr_mod cdrom
CPU:    1
EIP:    0060:[<c018d632>]    Not tainted VLI
EFLAGS: 00010282   (2.6.9)
EIP is at scan_bitmap_block+0x32/0x280
eax: f894f000   ebx: 00000001   ecx: 00000000   edx: 00000000
esi: f894f008   edi: db319c5c   ebp: f7fd9600   esp: db319bf8
ds: 007b   es: 007b   ss: 0068
Process cat (pid: 15917, threadinfo=db318000 task=f47b26d0)
Stack: f3c90000 00008000 00002618 00000001 db319c10 00000000 00000000 
00000000
        00000001 db319c5c 00000000 f7fd9600 c018db60 db319ebc 00000001 
db319c5c
        00000801 00000020 00000020 00000001 00008000 00000800 00000001 
00008000
Call Trace:
  [<c018db60>] scan_bitmap+0x200/0x230
  [<c018ed06>] reiserfs_allocate_blocknrs+0x176/0x4f0
  [<c019bef0>] reiserfs_allocate_blocks_for_region+0x270/0x1660
  [<c01ad843>] search_for_position_by_key+0x1d3/0x400
  [<c01ac0a3>] pathrelse+0x23/0x40
  [<c019dfbc>] reiserfs_prepare_file_region_for_write+0x3bc/0x9d0
  [<c019eb3b>] reiserfs_file_write+0x56b/0x7c0
  [<c01546f8>] vfs_write+0xb8/0x130
  [<c0154841>] sys_write+0x51/0x80
  [<c01041ef>] syscall_call+0x7/0xb
Code: 8b 44 24 34 8b 7c 24 3c 8b 54 24 38 8b 28 8b 0f 8b 85 64 01 00 00 
8b 40 08 89 4c 24 14 8d 34 d0 85 f6 0f 84 2f 02 00 00 8b 56 04 <8b> 02 
a8 04 0f 85 15 02 00 00 0f b7 46 02 31 d2 3b 44 24 44 0f



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

* Re: [BUG] null-pointer deref (perhaps reiserfs3)
  2004-12-05 22:31 [BUG] null-pointer deref (perhaps reiserfs3) Sven Köhler
@ 2004-12-06 16:35 ` Sven Köhler
  2004-12-06 16:44   ` Sven Köhler
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Köhler @ 2004-12-06 16:35 UTC (permalink / raw)
  To: linux-kernel

> on a machine that i can only reach via SSH at the moment, i got a 
> null-pointer dereference (see below). The machine runs kernel 2.6.9 
> without any additional patches.
> 
> It happened, while i was doing a "make install". A command within the 
> "installkernel"-script segfaulted. It seems that only the filesystem 
> mounted to /boot is affected. Any access to that FS blocks.

Here's how to reproduce it:

dd if=/dev/zero of=image bs=1M count=40
mkreiserfs -f image
mount -o loop image /mnt/test
cp -r /etc/ /mnt/test

The kernel will Oops, and cp will segfault.

After that, umount -r /mnt/test will fail or block.
The computer will not reboot or halt.


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

* Re: [BUG] null-pointer deref (perhaps reiserfs3)
  2004-12-06 16:35 ` Sven Köhler
@ 2004-12-06 16:44   ` Sven Köhler
  2004-12-06 21:27     ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Sven Köhler @ 2004-12-06 16:44 UTC (permalink / raw)
  To: linux-kernel

> dd if=/dev/zero of=image bs=1M count=40
> mkreiserfs -f image
> mount -o loop image /mnt/test
> cp -r /etc/ /mnt/test
> 
> The kernel will Oops, and cp will segfault.

Well, this won't make sense to you, if don't tell you, that "cp -r /etc/ 
/mnt/test" copies more, than the reiserfs can take. In other words:
reiserfs crashes if there's no more free diskspace.


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

* Re: [BUG] null-pointer deref (perhaps reiserfs3)
  2004-12-06 16:44   ` Sven Köhler
@ 2004-12-06 21:27     ` Andrew Morton
  2004-12-06 21:34       ` Chris Mason
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2004-12-06 21:27 UTC (permalink / raw)
  To: Sven Köhler; +Cc: linux-kernel, reiserfs-dev

Sven Köhler <skoehler@upb.de> wrote:
>
> > dd if=/dev/zero of=image bs=1M count=40
> > mkreiserfs -f image
> > mount -o loop image /mnt/test
> > cp -r /etc/ /mnt/test
> > 
> > The kernel will Oops, and cp will segfault.
> 
> Well, this won't make sense to you, if don't tell you, that "cp -r /etc/ 
> /mnt/test" copies more, than the reiserfs can take. In other words:
> reiserfs crashes if there's no more free diskspace.
> 

Could you please test 2.6.10-rc3?

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

* Re: [BUG] null-pointer deref (perhaps reiserfs3)
  2004-12-06 21:27     ` Andrew Morton
@ 2004-12-06 21:34       ` Chris Mason
  0 siblings, 0 replies; 5+ messages in thread
From: Chris Mason @ 2004-12-06 21:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Sven Köhler, linux-kernel, reiserfs-dev

On Mon, 2004-12-06 at 13:27 -0800, Andrew Morton wrote:
> Sven Köhler <skoehler@upb.de> wrote:
> >
> > > dd if=/dev/zero of=image bs=1M count=40
> > > mkreiserfs -f image
> > > mount -o loop image /mnt/test
> > > cp -r /etc/ /mnt/test
> > > 
> > > The kernel will Oops, and cp will segfault.
> > 
> > Well, this won't make sense to you, if don't tell you, that "cp -r /etc/ 
> > /mnt/test" copies more, than the reiserfs can take. In other words:
> > reiserfs crashes if there's no more free diskspace.
> > 
> 
> Could you please test 2.6.10-rc3?

Anything 2.6.10-rc1 or newer should fix it, I sent him the reiserfs
small filesystem patch earlier today.

-chris




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

end of thread, other threads:[~2004-12-06 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-05 22:31 [BUG] null-pointer deref (perhaps reiserfs3) Sven Köhler
2004-12-06 16:35 ` Sven Köhler
2004-12-06 16:44   ` Sven Köhler
2004-12-06 21:27     ` Andrew Morton
2004-12-06 21:34       ` Chris Mason

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