-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi !
This is a bug report according to REPORTING-BUGS.
[1.] One line summary:
"Segmentation fault" when reading and garbage when writing files on a SCSI
MO disk
[2.] Full description:
I have an internal SCSI magneto-optical drive (Fujitsu-Siemens MCE3064SS).
It is attached (as the only device) on an "Advance Peripherals 2941U
Business" ultra-SCSI adapter. This adapter seems to use an ACARD SCSI chipset.
The drive works fine under Windows NT and Linux kernel 2.2.19.
With kernel 2.4.3 there is a bug: I can mount disks and use commands like
"cd" and "ls". But each time I try to read file contents (using "cp", "cat"
etc.) these programs terminate with a segmentation fault.
When I try to create new files and write to them, e.g. "cat /proc/cputest >
testfile", everything _seems_ fine: no error and the file has the expected
size. Opening the file (using WinNT) shows that only garbage was written.
After the segmentation fault occured (read access), I cannot unmount the
drive (/dev/sda: device is busy).
I can reproduce this bug with kernels 2.4.2 and 2.4.3 (not tested with
other 2.4.x kernels). The problem does not appear with 2.2.x kernels.
[4.] Kernel version (from /proc/version):
Linux version 2.2.19 (root@poseidon) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #2 Tue Apr 10 10:50:56 MEST
2001 (NO problems using this kernel)
Linux version 2.4.3 (root@poseidon) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)) #7 Tue Apr 10 10:49:51 MEST
2001 (problem occurs)
Both kernels use the same configuration as far as possible.
[5.] Output of /var/log/messages:
kernel: Unable to handle kernel NULL pointer dereference at virtual address
00000000
kernel: printing eip:
kernel: 00000000
kernel: *pde = 00000000
kernel: Oops: 0000
kernel: CPU: 0
kernel: EIP: 0010:[<00000000>]
kernel: EFLAGS: 00010282
kernel: eax: 00000000 ebx: ca1cf720 ecx: 00001000 edx: ca1cf740
kernel: esi: bfffdf4c edi: 00001000 ebp: bfffeff4 esp: c9a9df84
kernel: ds: 0018 es: 0018 ss: 0018
kernel: Process cp (pid: 400, stackpage=c9a9d000)
kernel: Stack: d0a5850d ca1cf720 bfffdf4c 00001000 ca1cf740 ffffffea
ca1cf720 c012d9f2
kernel: ca1cf720 bfffdf4c 00001000 ca1cf740 c9a9c000 bffff444
bfffdf4c c0106dc3
kernel: 00000003 bfffdf4c 00001000 bffff444 bfffdf4c bfffeff4
00000003 0000002b
kernel: Call Trace: [<d0a5850d>] [sys_read+142/196] [system_call+51/56]
kernel:
kernel: Code: Bad EIP value.
Another example (after rebooting):
kernel: Unable to handle kernel NULL pointer dereference at virtual address
00000000
kernel: printing eip:
kernel: 00000000
kernel: *pde = 00000000
kernel: Oops: 0000
kernel: CPU: 0
kernel: EIP: 0010:[<00000000>]
kernel: EFLAGS: 00010282
kernel: eax: 00000000 ebx: ca1d07e0 ecx: 00004000 edx: ca1d0800
kernel: esi: 0804c080 edi: 00004000 ebp: bffff714 esp: c9999f84
kernel: ds: 0018 es: 0018 ss: 0018
kernel: Process cat (pid: 399, stackpage=c9999000)
kernel: Stack: d0a5850d ca1d07e0 0804c080 00004000 ca1d0800 ffffffea
ca1d07e0 c012d9f2
kernel: ca1d07e0 0804c080 00004000 ca1d0800 c9998000 00004000
0804c080 c0106dc3
kernel: 00000003 0804c080 00004000 00004000 0804c080 bffff714
00000003 0000002b
kernel: Call Trace: [<d0a5850d>] [sys_read+142/196] [system_call+51/56]
kernel:
kernel: Code: Bad EIP value.
[7.] Environment
[7.1.] Software:
Gnu C egcs-2.91.66
Gnu make 3.78.1
binutils 2.9.1.0.25
util-linux 2.10q
modutils 2.4.5
e2fsprogs 1.19
PPP 2.4.0
Linux C Library x 1 root root 1382179 Jan 19 07:14
/lib/libc.so.6
Dynamic linker (ldd) 2.2
Procps 2.0.7
Net-tools 1.57
Kbd 1.02
Sh-utils 2.0
Modules Loaded nls_iso8859-1 nls_cp437 sd_mod vfat fat nfs lockd sunrpc
[7.2.] Processor information:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 2
cpu MHz : 449.953
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36
mmx fxsr xmm
bogomips : 897.84
[7.3.] Module information:
Kernel 2.2.19:
nls_iso8859-1 2400 0 (autoclean)
nls_cp437 3904 0 (autoclean)
sd_mod 17712 0 (autoclean)
vfat 9552 0 (autoclean)
fat 30528 0 (autoclean) [vfat]
nfs 72912 3 (autoclean)
lockd 43376 1 (autoclean) [nfs]
sunrpc 60624 1 (autoclean) [nfs lockd]
Kernel 2.4.3:
nls_iso8859-1 2832 1 (autoclean)
nls_cp437 4352 1 (autoclean)
sd_mod 10384 1 (autoclean)
vfat 11504 1 (autoclean)
fat 31424 0 (autoclean) [vfat]
nfs 78144 3 (autoclean)
lockd 48816 1 (autoclean) [nfs]
sunrpc 58528 1 (autoclean) [nfs lockd]
[7.4.] Loaded driver and hardware information:
/proc/ioports (2.2.19):
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
e800-e8ff : eth0
ec00-ec3f : atp870u
f000-f007 : ide0
f008-f00f : ide1
/proc/ioports (2.4.3):
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
0cf8-0cff : PCI conf1
4000-403f : PCI device 8086:7113
5000-501f : PCI device 8086:7113
d000-dfff : PCI Bus #01
e000-e01f : PCI device 8086:7112
e400-e43f : PCI device 1274:5000
e800-e8ff : PCI device 10ec:8139
e800-e8ff : 8139too
ec00-ec3f : PCI device 1191:8020
ec00-ec3f : atp870u
f000-f00f : PCI device 8086:7111
f000-f007 : ide0
f008-f00f : ide1
/proc/iomem (2.4.3):
00000000-0009efff : System RAM
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000cbfff : Extension ROM
000f0000-000fffff : System ROM
00100000-0ffeffff : System RAM
00100000-001d2977 : Kernel code
001d2978-00211d1b : Kernel data
e0000000-e3ffffff : PCI device 8086:7190
e4000000-e7ffffff : PCI Bus #01
e4000000-e4003fff : PCI device 102b:0521
e5000000-e57fffff : PCI device 102b:0521
e8000000-e8ffffff : PCI Bus #01
e8000000-e8ffffff : PCI device 102b:0521
ea000000-ea0000ff : PCI device 10ec:8139
ea000000-ea0000ff : 8139too
[7.5.] PCI information
Kernel 2.2.19:
00:00.0 Class 0600: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort+ >SERR- <PERR-
Latency: 64
Region 0: Memory at e0000000 (32-bit, prefetchable)
Capabilities: [a0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
00:01.0 Class 0604: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 03)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e4000000-e7ffffff
Prefetchable memory behind bridge: e8000000-e8ffffff
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+
00:07.0 Class 0601: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
00:07.1 Class 0101: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if
80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Region 4: I/O ports at f000
00:07.2 Class 0c03: Intel Corporation 82371AB PIIX4 USB (rev 01)
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin D routed to IRQ 0
Region 4: I/O ports at e000
00:07.3 Class 0680: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
00:09.0 Class 0401: Ensoniq ES1370 [AudioPCI] (rev 01)
Subsystem: Unknown device 4942:4c4c
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (3000ns min, 32000ns max)
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at e400
00:0a.0 Class 0200: Realtek Semiconductor Co., Ltd. 8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. 8139
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at e800
Region 1: Memory at ea000000 (32-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [60] Vital Product Data
00:0c.0 Class 0100: Artop Electronic Corp: Unknown device 8020 (rev 01)
Subsystem: Artop Electronic Corp: Unknown device 8020
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 254
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ec00
Expansion ROM at e9000000 [disabled]
Capabilities: [50] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=3 PME-
01:00.0 Class 0300: Matrox Graphics, Inc. MGA G200 AGP [Millennium AGP]
(rev 01)
Subsystem: Matrox Graphics, Inc.: Unknown device ff03
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 8000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e8000000 (32-bit, prefetchable)
Region 1: Memory at e4000000 (32-bit, non-prefetchable)
Region 2: Memory at e5000000 (32-bit, non-prefetchable)
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
Kernel 2.4.3:
00:00.0 Class 0600: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge
(rev 03)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort+ >SERR- <PERR-
Latency: 64
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
00:01.0 Class 0604: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 03)
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 0000d000-0000dfff
Memory behind bridge: e4000000-e7ffffff
Prefetchable memory behind bridge: e8000000-e8ffffff
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+
00:07.0 Class 0601: Intel Corporation 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 0
00:07.1 Class 0101: Intel Corporation 82371AB PIIX4 IDE (rev 01) (prog-if
80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Region 4: I/O ports at f000 [size=16]
00:07.2 Class 0c03: Intel Corporation 82371AB PIIX4 USB (rev 01)
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64
Interrupt: pin D routed to IRQ 0
Region 4: I/O ports at e000 [size=32]
00:07.3 Class 0680: Intel Corporation 82371AB PIIX4 ACPI (rev 02)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9
00:09.0 Class 0401: Ensoniq ES1370 [AudioPCI] (rev 01)
Subsystem: Unknown device 4942:4c4c
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (3000ns min, 32000ns max)
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at e400 [size=64]
00:0a.0 Class 0200: Realtek Semiconductor Co., Ltd. 8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. 8139
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 5
Region 0: I/O ports at e800 [size=256]
Region 1: Memory at ea000000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1+,D2+,D3hot+,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0c.0 Class 0100: Artop Electronic Corp: Unknown device 8020 (rev 01)
Subsystem: Artop Electronic Corp: Unknown device 8020
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 254
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at ec00 [size=64]
Expansion ROM at e9000000 [disabled] [size=64K]
Capabilities: [50] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=3 PME-
01:00.0 Class 0300: Matrox Graphics, Inc. MGA G200 AGP [Millennium AGP]
(rev 01)
Subsystem: Matrox Graphics, Inc.: Unknown device ff03
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort-
<MAbort- >SERR- <PERR-
Latency: 64 (4000ns min, 8000ns max), cache line size 08
Interrupt: pin A routed to IRQ 11
Region 0: Memory at e8000000 (32-bit, prefetchable) [size=16M]
Region 1: Memory at e4000000 (32-bit, non-prefetchable) [size=16K]
Region 2: Memory at e5000000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
[7.6.] SCSI information:
/proc/scsi/scsi:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: FUJITSU Model: MCE3064SS Rev: 0030
Type: Optical Device ANSI SCSI revision: 02
/proc/scsi/atp870u/0 (Kernel 2.2.19):
ACARD AEC-671X Driver Version: 2.3+ac
Adapter Configuration:
Base IO: 0xec00
IRQ: 11
/proc/scsi/atp870u/0 (Kernel 2.4.3 - Driver version is older ?!?):
ACARD AEC-671X Driver Version: 2.1+ac
Adapter Configuration:
Base IO: 0xec00
IRQ: 11
[7.7.] Other information that might be relevant to the problem
The MO disk uses vfat file system.
SCSI support and SCSI low level driver are built into the kernel, SCSI disk
driver is a module. However, the same effects occur when building all parts
into kernel and also when compiling everything as a module.
If you need any further information please e-mail me ([EMAIL PROTECTED]).
By(e): Raimund.
-----BEGIN PGP SIGNATURE-----
iQA/AwUBOtMKefJXvT7l3bMdEQJjiwCgh4L7NVGSCCet3w/Nf6VRuQlGgygAnRVh
Z0ta61bRg2wOcLfXYt/QsozG
=fv4P
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]