Oops while doing scsi-add-device

From: Paul Slootman (paul@wau.mis.ah.nl)
Date: Wed Apr 19 2000 - 09:46:47 EST


I have an external SCSI disk, which isn't always switched on.
When I need it, I turn it on, and perform:

    echo "scsi add-single-device 1 0 0 0" > /proc/scsi/scsi

The disk doesn't spin up on power-on, so the SCSI code does that.
I wanted to see if it was ready yet, so did "cat /proc/scsi/scsi".
That segv'ed, and the messages below appeared in the syslog. Nothing
devastating, but not very proper either. It looks like a struct for the
device is added to the list, but not filled immediately (the data itself
is apparently already available, as it's already in the syslog).

18:26:55 wurtel kernel: scsi singledevice 1 0 0 0
18:26:55 wurtel kernel: Vendor: SEAGATE Model: ST34371N Rev: 0338
18:26:55 wurtel kernel: Type: Direct-Access ANSI SCSI revision: 02
18:26:55 wurtel kernel: Detected scsi disk sdc at scsi1, channel 0, id 0, lun 0
18:27:01 wurtel kernel: sdc: Spinning up disk........<1>Unable to handle kernel NULL pointer dereference at virtual address 00000032
18:27:01 wurtel kernel: current->tss.cr3 = 0267e000, %cr3 = 0267e000
18:27:01 wurtel kernel: *pde = 00000000
18:27:01 wurtel kernel: Oops: 0000
18:27:01 wurtel kernel: CPU: 0
18:27:01 wurtel kernel: EIP: 0010:[proc_print_scsidevice+35/504]
18:27:01 wurtel kernel: EFLAGS: 00010246
18:27:01 wurtel kernel: eax: 00000000 ebx: c3091360 ecx: c359009d edx: c3091360
18:27:01 wurtel kernel: esi: 0000009e edi: c2590000 ebp: c3590000 esp: c0eb1e78
18:27:01 wurtel kernel: ds: 0018 es: 0018 ss: 0018
18:27:01 wurtel kernel: Process cat (pid: 8079, process nr: 14, stackpage=c0eb1000)
18:27:01 wurtel kernel: Stack: 00000000 00000002 00000000 c3091360 0000009e c2590000 c3590000 c3590000
18:27:01 wurtel kernel: c01cb88a c33f7eca c33f7eb2 0000000e 0804b612 c0eb0000 c01a3cb9 c3091360
18:27:01 wurtel kernel: c3590000 c0eb1ef0 0000009e c3094240 00000100 00000000 00000400 203a6e75
18:27:01 wurtel kernel: Call Trace: [scsi_device_types+3946/5728] [scsi_proc_info+121/1860] [dispatch_scsi_info+64/188] [proc_readscsi+150/268] [proc_readscsi+45/268] [sys_read+178/208] [system_call+52/56]
18:27:01 wurtel kernel: Code: 66 8b 40 32 25 ff ff 00 00 50 68 e0 f6 1c c0 8b 5c 24 50 03
18:27:10 wurtel kernel: .........ready
18:27:10 wurtel kernel: SCSI device sdc: hdwr sector= 512 bytes. Sectors= 8496960 [4148 MB] [4.1 GB]
18:27:10 wurtel kernel: sdc: sdc1

2.2.15pre15, ncr53c8xx in case it matters.

Paul Slootman

-- 
home:       paul@wurtel.demon.nl http://www.wurtel.demon.nl/
work:       paul@murphy.nl       http://www.murphy.nl/
debian:     paul@debian.org      http://www.debian.org/
isdn4linux: paul@isdn4linux.de   http://www.isdn4linux.de/

- 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 : Sun Apr 23 2000 - 21:00:15 EST