mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* PROBLEM: kernel BUG in buffer.c
@ 2002-08-21 18:50 Peter Hicks
  2002-08-21 19:10 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Hicks @ 2002-08-21 18:50 UTC (permalink / raw)
  To: linux-kernel

Hi everyone

I've come across a BUG() in buffer.c, line 2497. I'm running 2.4.19 on a 
Pentium III, with no other problems. I'd finished making a backup of an 
IRIX installation CD, was mounting the freshly burnt CD, and was greeted 
with a hung 'mount' and the following in dmesg:

EFS: 1.0a - http://aeschi.ch.eu.org/efs/
kernel BUG at buffer.c:2497!
invalid operand: 0000
CPU:    0
EIP:    0010:[<c0135e12>]    Not tainted
EFLAGS: 00010206
eax: 000007ff   ebx: 0000000b   ecx: 00000800   edx: d3cb58c0
esi: 00000000   edi: 00000b00   ebp: 00000000   esp: d7c9fe44
ds: 0018   es: 0018   ss: 0018
Process mount (pid: 1244, stackpage=d7c9f000)
Stack: 00000b00 00000200 00000000 00000000 00004000 c01340a7 00000b00 
00000000
       00000200 c02349b4 c1bf2e00 c1bf2ecc c0134294 00000b00 00000000 
00000200
       00000000 e089b219 00000b00 00000000 00000200 c02349b4 c1bf2e00 
c15c71e0
Call Trace:    [<c01340a7>] [<c0134294>] [<e089b219>] [<c0136fe0>] 
[<e089c900>]
  [<e089c900>] [<c01457b6>] [<c013719b>] [<e089c900>] [<c0146699>] 
[<c0146962>]
  [<c01467b4>] [<c0146ce4>] [<c010856f>]

Code: 0f 0b c1 09 20 21 20 c0 8b 44 24 20 05 00 fe ff ff 3d 00 0e

Line 2497 of buffer.c is in grow_buffers, and the code is as follows:

   2495:       /* Size must be multiple of hard sectorsize */
   2496:        if (size & (get_hardsect_size(dev)-1))
   2497:                BUG();

This is the first time its happened. Can anybody confirm that this is, 
as I suspect, a problem with the CD-ROM and not with the kernel? Do I 
need to provide any more information to help somebody with troubleshooting?

Best wishes,


Peter (not currently subscribed to the list, please cc: in to replies!)


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

* Re: PROBLEM: kernel BUG in buffer.c
  2002-08-21 18:50 PROBLEM: kernel BUG in buffer.c Peter Hicks
@ 2002-08-21 19:10 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2002-08-21 19:10 UTC (permalink / raw)
  To: Peter Hicks; +Cc: linux-kernel

On Wed, 2002-08-21 at 19:50, Peter Hicks wrote:
> Hi everyone
> 
> I've come across a BUG() in buffer.c, line 2497. I'm running 2.4.19 on a 
> Pentium III, with no other problems. I'd finished making a backup of an 
> IRIX installation CD, was mounting the freshly burnt CD, and was greeted 
> with a hung 'mount' and the following in dmesg:

Well its definitely a kernel bug. We should never crash given a bad CD.
In this case I think the problem is a little deeper. Our efs code
doesn't appear to consider and error the case when its block size is 
below 2048 bytes.

An EFS block is 512 bytes so we tell a 2K sectored device to use 512byte
sectors. At this point the kernel rightfully realises that something
deeply wrong is happening and aborted.

I believe the fix is as follows

	Make EFS check its not asking for stupid block sizes
	
You can then use a loopback mount to buffer the device and mount the CD
that way. I'll fix the EFS code tomorrow


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

end of thread, other threads:[~2002-08-21 19:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-21 18:50 PROBLEM: kernel BUG in buffer.c Peter Hicks
2002-08-21 19:10 ` Alan Cox

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

all inboxes | Powered by JetHome®