kernel BUG at file.c 80

From: Peter Bornemann (eduard.epi@t-online.de)
Date: Sun Feb 20 2000 - 16:15:22 EST


Hi,

I have a realiable way to provoke this message in the 2.3 kernel series. It
seems to come from the following lines in linux/fs/fat/file.c:

if (!create)
                return 0;
        if (iblock<<9 != MSDOS_I(inode)->mmu_private) {
                BUG();
                return -EIO;
        }

This seems to be triggered in my case: It happens, when I try to
save under StarOffice 5.1a a file to any one of my vfat (/dev/hda or
/dev/hdc) partitions. The exact message goes as follows:

Feb 20 21:27:01 eduard kernel: kernel BUG at file.c:80!
Feb 20 21:27:01 eduard kernel: invalid operand: 0000
Feb 20 21:27:01 eduard kernel: CPU: 0
Feb 20 21:27:01 eduard kernel: EIP:
0010:[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396359/76]
Feb 20 21:27:01 eduard kernel: EFLAGS: 00010282
Feb 20 21:27:01 eduard kernel: eax: 00000019 ebx: 00000000 ecx:
0000001d edx: 0000001e
Feb 20 21:27:01 eduard kernel: esi: 00000001 edi: c335a2c0 ebp:
c21bad80 esp: c1e43e30
Feb 20 21:27:01 eduard kernel: ds: 0018 es: 0018 ss: 0018
Feb 20 21:27:01 eduard kernel: Process soffice.bin (pid: 327,
stackpage=c1e43000)
Feb 20 21:27:01 eduard kernel: Stack: c4827e4d c4827fed 00000050 00000200
00000400 000001ff c1e43e90 00000200
Feb 20 21:27:01 eduard kernel: c012c617 c335a2c0 00000001 c21bad80
00000001 c335a2c0 00000200 000001ff
Feb 20 21:27:01 eduard kernel: fffffff4 00000000 c26c8000 c1e43e90
c21bade0 00000200 00000001 c21bad80
Feb 20 21:27:01 eduard kernel: Call Trace:
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-381363/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-380947/76]
[__block_prepare_write+259/520] [cont_prepare_write+482/696]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396456/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-389382/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396456/76]
Feb 20 21:27:01 eduard kernel: [generic_file_write+867/1288]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396146/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396186/76]
[sys_write+190/224] [system_call+52/56]
Feb 20 21:27:01 eduard kernel: Code: 0f 0b 83 c4 0c b8 fb ff ff ff eb 70 8d
76 00 8b 47 74 31 c9

The same mangled by ksymoops:

WARNING: This version of ksymoops is obsolete.
WARNING: The current version can be obtained from
ftp://ftp.ocs.com.au/pub/ksymoops
Options used: -V (specified)
              -o /lib/modules/2.3.46/ (default)
              -k /proc/ksyms (default)
              -l /proc/modules (default)
              -m /System.map (specified)
              -c 1 (default)

Feb 20 21:27:01 eduard kernel: invalid operand: 0000
Feb 20 21:27:01 eduard kernel: CPU: 0
Feb 20 21:27:01 eduard kernel: EIP:
0010:[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396359/76]
Feb 20 21:27:01 eduard kernel: EFLAGS: 00010282
Feb 20 21:27:01 eduard kernel: eax: 00000019 ebx: 00000000 ecx:
0000001d edx: 0000001e
Feb 20 21:27:01 eduard kernel: esi: 00000001 edi: c335a2c0 ebp:
c21bad80 esp: c1e43e30
Feb 20 21:27:01 eduard kernel: ds: 0018 es: 0018 ss: 0018
Feb 20 21:27:01 eduard kernel: Process soffice.bin (pid: 327,
stackpage=c1e43000)
Feb 20 21:27:01 eduard kernel: Stack: c4827e4d c4827fed 00000050 00000200
00000400 000001ff c1e43e90 00000200
Feb 20 21:27:01 eduard kernel: c012c617 c335a2c0 00000001 c21bad80
00000001 c335a2c0 00000200 000001ff
Feb 20 21:27:01 eduard kernel: fffffff4 00000000 c26c8000 c1e43e90
c21bade0 00000200 00000001 c21bad80
Feb 20 21:27:01 eduard kernel: Call Trace:
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-381363/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-380947/76]
[__block_prepare_write+259/520] [cont_prepare_write+482/696]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396456/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-389382/76]
[dummy0:__insmod_dummy0_O/lib/modules/2.3.46/net/dummy.o_M38AC7867_+-396456/76]
Feb 20 21:27:01 eduard kernel: Code: 0f 0b 83 c4 0c b8 fb ff ff ff eb 70 8d
76 00 8b 47 74 31 c9

Code: 00000000 Before first symbol 00000000 <_IP>: <===
Code: 00000000 Before first symbol 0: 0f 0b
ud2a <===
Code: 00000002 Before first symbol 2: 83 c4 0c
addl $0xc,%esp
Code: 00000005 Before first symbol 5: b8 fb ff ff ff
movl $0xfffffffb,%eax
Code: 0000000a Before first symbol a: eb 70
jmp 0000007c Before first symbol
Code: 0000000c Before first symbol c: 8d 76 00
leal 0x0(%esi),%esi
Code: 0000000f Before first symbol f: 8b 47 74
movl 0x74(%edi),%eax
Code: 00000012 Before first symbol 12: 31 c9
xorl %ecx,%ecx

75 warnings issued. Results may not be reliable.

This will never happen with any of the 2.2 kernels or before. But it can
happen sometimes with other applications too (gimp, perl come to mind)
while writing to a vfat partition. Fat, vfat, msdos are compiled as
modules.

Kernel was compiled with:
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

2.3.46 is not the first one, but I donīt know the exact starting point, for
most of the 2.3. series I couldnīt use for different reasons. It was
already in 2.3. pre 30, but there where lots of other (known) problems at
that time.

Bye

Peter B

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:26 EST