Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by David Luye » Fri, 26 Jul 2002 18:00:17



I attempted to mkfs and use a whole disk rather than a partition
with reiserfs.  It failed (not a major problem, I'll just make a
partition), but it failed with a "kernel BUG" message, so here 'tis.

A subsequent attempt to cfdisk the same disk hung and refused
to die even with a kill -9.

Here's the hung cfdisk (fdisk could touch the disk while this
is hung).


100     0   469   312  15   0  1852  692 rwsem_ D    pts/0      0:00
cfdisk /dev/sdb
100     0   513   476  16   0  1336  428 pipe_w S    pts/1      0:00
grep cfdisk

After reboot everything worked fine.

Original commands to cause failure:
  mkfs -b 8192 /dev/sdb -f
  mount /dev/sdb /cache

/dev/sdb is an IBM ServeRAID array, of 4x36Gb/2=72Gb.

Jul 25 18:48:03 praxis8 kernel: kernel BUG at buffer.c:2511!
Jul 25 18:48:03 praxis8 kernel: invalid operand: 0000
Jul 25 18:48:03 praxis8 kernel: CPU:    0
Jul 25 18:48:03 praxis8 kernel: EIP:    0010:[grow_buffers+86/276]
Not tainted
Jul 25 18:48:03 praxis8 kernel: EFLAGS: 00010206
Jul 25 18:48:03 praxis8 kernel: eax: 00001e00   ebx: 00000008   ecx:
00000200   edx: f7932800
Jul 25 18:48:03 praxis8 kernel: esi: 00000010   edi: 00000810   ebp:
00000008   esp: f503fdbc
Jul 25 18:48:03 praxis8 kernel: ds: 0018   es: 0018   ss: 0018
Jul 25 18:48:03 praxis8 kernel: Process mount (pid: 466,
stackpage=f503f000)
Jul 25 18:48:03 praxis8 kernel: Stack: 00000810 00002000 00000008
f644a000 0000d100 c01387db 00000810 00000008
Jul 25 18:48:03 praxis8 kernel:        00002000 f2473280 f7558400
f7558400 c01389ec 00000810 00000008 00002000
Jul 25 18:48:03 praxis8 kernel:        f24732cc c018c94c 00000810
00000008 00002000 c018235b f7558400 00000008
Jul 25 18:48:03 praxis8 kernel: Call Trace:    [getblk+39/64]
[bread+24/112] [reiserfs_bread+24/28] [read_super_block+383/856]
[reiserfs_read_super+165/1124]
Jul 25 18:48:03 praxis8 kernel:   [get_sb_bdev+464/584]
[alloc_vfsmnt+118/160] [do_kern_mount+85/260] [do_add_mount+105/312]
[do_mount+326/352] [copy_mount_options+85/164]
Jul 25 18:48:03 praxis8 kernel:   [sys_mount+175/272]
[system_call+51/56]
Jul 25 18:48:03 praxis8 kernel:
Jul 25 18:48:03 praxis8 kernel: Code: 0f 0b cf 09 36 68 23 c0 b9 ff ff
ff ff 89 fa b6 00 90 8d 74

David.
--
David Luyer                                     Phone:   +61 3 9674 7525
Network Development Manager    P A C I F I C    Fax:     +61 3 9699 8693
Pacific Internet (Australia)  I N T E R N E T   Mobile:  +61 4 1111 BYTE
http://www.pacific.net.au/                      NASDAQ:  PCNTF

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by David Luye » Fri, 26 Jul 2002 18:10:16


Followup to my own post:

Quote:> I attempted to mkfs and use a whole disk rather than a partition
> with reiserfs.  It failed (not a major problem, I'll just make a
> partition), but it failed with a "kernel BUG" message, so here 'tis.

[...]

Quote:> Original commands to cause failure:
>   mkfs -b 8192 /dev/sdb -f
>   mount /dev/sdb /cache

Actually looks like the -b 8192 was the problem, the same happened
on /dev/sdb1.  Had to reboot again after that as mount was*
in the same way as cfdisk had previously.  Similar 'kernel BUG'
message resulted.

David.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by Alan Co » Fri, 26 Jul 2002 18:50:15



> Original commands to cause failure:
>   mkfs -b 8192 /dev/sdb -f
>   mount /dev/sdb /cache

That isnt supported on x86 (it exceeds page size) but the crash is
something that should not have happened and points to a missing
validation check in the reiserfs code.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by Daniel Phillip » Sat, 27 Jul 2002 14:40:06



Quote:> Followup to my own post:
> > I attempted to mkfs and use a whole disk rather than a partition
> > with reiserfs.  It failed (not a major problem, I'll just make a
> > partition), but it failed with a "kernel BUG" message, so here 'tis.

It was this BUG no doubt (buffer.c):

2398         /* Size must be within 512 bytes and PAGE_SIZE */
2399         if (size < 512 || size > PAGE_SIZE)
2400                 BUG();

Quote:> > Original commands to cause failure:
> >   mkfs -b 8192 /dev/sdb -f
> >   mount /dev/sdb /cache

> Actually looks like the -b 8192 was the problem, the same happened
> on /dev/sdb1.  Had to reboot again after that as mount was*
> in the same way as cfdisk had previously.  Similar 'kernel BUG'
> message resulted.

It's Reiserfs's fault all right, for not recognizing the fact that
the kernel can't handle blocksize larger than the hard PAGE_SIZE.
Good thing the BUG is there now, it used to fail silently.

There is no fundamental reason why we can't handled the larger
blocksizes.  It just didn't make it to the top of the list of things
to do for this cycle.  For now, all the mkfs's have to accomodate
this shortcoming.

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by Daniel Phillip » Sat, 27 Jul 2002 17:40:06



Quote:> There is no fundamental reason why we can't handle the larger
> blocksizes.  It just didn't make it to the top of the list of things
> to do for this cycle.  For now, all the mkfs's have to accomodate
> this shortcoming.

Whoops, correction, the correct behaviour is to refuse to mount a
filesystem that has oversize blocks.  Mkfs can and should go ahead and
create such things if asked to.

--
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Linux-2.4.18-rc3-ac3: bug with using whole disks as filesystems

Post by Oleg Droki » Sat, 27 Jul 2002 19:00:07


Hello!


> > Original commands to cause failure:
> >   mkfs -b 8192 /dev/sdb -f
> >   mount /dev/sdb /cache
> Actually looks like the -b 8192 was the problem, the same happened
> on /dev/sdb1.  Had to reboot again after that as mount was*
> in the same way as cfdisk had previously.  Similar 'kernel BUG'
> message resulted.

Linux kernel 2.4 reiserfs implementation lacks support for blocksizes
different from 4096 bytes, we plan to merge it in after 2.4.19 is out.
It have all the checks needed not to allow you to mount such volumes with
too big blocksizes.

Bye,
    Oleg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://www.veryComputer.com/
Please read the FAQ at  http://www.veryComputer.com/

 
 
 

1. diff ?? [ linux-2.4.18-rc3 ]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  Error in diff generated

## Automatically generated incremental diff
## From:   linux-2.4.18-rc2
## To:     linux-2.4.18-rc3
## Robot:  $Id: make-incremental-diff,v 1.11 2002/02/20 02:59:33 hpa Exp $
- --
   Sort

######## Antoni Bella Perez ####################                             |
# http://www.terra.es/personal7/bella5/home.htm

collaborador del projecte Debian en catal: debian.org/index.ca.htm
Maquinari: - Pentium II 300MHz 128MB memria 599.65 bogomips
Sistema:   - Debian GNU/Linux-2.4.18-rc2  -  XFree86 4.1.0-14

- -
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8dYhbGfXdVUGHvegRAtYmAJ9ZKjgipx5RMFmW3TtJ/cpe40S6UgCfTqu4
zmEZ0DXsoUTvki4d3hTK1k4=
=Fr4V
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Connecting Linux via IPX to a Novell 4.11 Server (NDS)

3. Oops booting linux-2.4.18-pre7-ac3

4. Xconfig needed for et4000w32 pci/vlb

5. Linux 2.4.19-rc3-ac3 and ext3 problems

6. Lock screen doesn't work

7. Linux 2.4.19-rc3-ac3

8. ide timeout problems

9. PATCH: 2.4.19-rc3-ac3: init_task.c: missing braces around initializer (trivial)

10. cmd680 problem in 2.4.19-rc3-ac3

11. IDE-Problems with 2.4.x (2.4.19-rc3-ac3)

12. 2.4.19rc3-ac3 --> sched.c errors

13. 2.4.19-rc3-ac3 ide_map_buffer/ide_unmap_buffer