All of lore.kernel.org
 help / color / mirror / Atom feed
* oops if unplug dd of=/dev/scd$n
@ 2003-09-12 14:57 Pat LaVarre
  2003-09-12 18:19 ` console lost to Ctrl+Alt+F$n in 2.6.0-test5 Pat LaVarre
  2003-09-12 19:44 ` oops if unplug dd of=/dev/scd$n Pat LaVarre
  0 siblings, 2 replies; 14+ messages in thread
From: Pat LaVarre @ 2003-09-12 14:57 UTC (permalink / raw)
  To: linux-scsi

Here's an oops for we of linux-scsi to fix, brought to us courtesy the
usb-storage mailing list  ...

> > > Subject: [usb-storage] unplug while writing
> > >
> > > I inadvertently unplugged a [usb] drive during a
> > > 2.6.0-test5:
> > >
> > > sudo dd of=/dev/scd1 if=/dev/zero bs=1M count=128
> > >
> > > And I got the following /proc/kmsg ...
> > >
> > > I ask because seemingly til reboot I'm
> > > stuck with:
> > > $
> > > $ /sbin/modprobe -r sr_mod
> > > FATAL: Module sr_mod is in use.
> > > $
> >
> > ... always ... an oops ... Must be fixed.
>
> ... doesn't look like a usb-storage specific
> problem; ... looks ... like a SCSI hotplug
> problem ... Unplug while writing should 'work'
> gracefully.  Much of the filesystem code
> doesn't yet handle this, but something like
> dd to a scd node should.

Pat LaVarre

...
<4>SCSI error : <1 0 0 0> return code = 0x70000
<4>end_request: I/O error, dev sr1, sector 154656
<3>Buffer I/O error on device sr1, logical block 19332
<4>lost page write due to I/O error on sr1
...
<4>lost page write due to I/O error on sr1
<4>SCSI error : <1 0 0 0> return code = 0x10000
<4>end_request: I/O error, dev sr1, sector 262136
<3>Buffer I/O error on device sr1, logical block 32767
<4>lost page write due to I/O error on sr1
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
<4> printing eip:
<4>c01eb383
<1>*pde = 00000000
<4>Oops: 0000 [#1]
<4>CPU:    1
<4>EIP:    0060:[<c01eb383>]    Not tainted
<4>EFLAGS: 00010282
<4>EIP is at get_kobj_path_length+0x19/0x30
<4>eax: 00000000   ebx: 00000000   ecx: ffffffff   edx: d60e0af4
<4>esi: 00000015   edi: 00000000   ebp: ce1cde78   esp: ce1cde6c
<4>ds: 007b   es: 007b   ss: 0068
<4>Process dd (pid: 3015, threadinfo=ce1cc000 task=ce73f940)
<4>Stack: ce1cc000 0000008c dda34300 ce1cdec0 c01eb543 c03ff060 d65fe1ac 0000008c 
<4>       d65fe188 ce1cdea4 df91e1be ce17e400 dda34280 ce17e419 c03c35a0 c038cfce 
<4>       00000000 d65fe1b0 d65fe1ac c03ff0a8 de6066ac ce1cded8 c01eba47 c0387165 
<4>Call Trace:
<4> [<c01eb543>] kset_hotplug+0x15e/0x2b0
<4> [<df91e1be>] sr_remove+0x6f/0x8d [sr_mod]
<4> [<c01eba47>] kobject_del+0x66/0x6d
<4> [<c024bbd1>] device_del+0x83/0xa5
<4> [<c0280f64>] scsi_device_put+0xe0/0xfe
<4> [<df8e78d6>] cdrom_release+0x8c/0x105 [cdrom]
<4> [<c0166597>] blkdev_put+0x20f/0x23e
<4> [<c015e497>] __fput+0x123/0x135
<4> [<c015caf4>] filp_close+0x57/0x81
<4> [<c015cb9f>] sys_close+0x81/0xc7
<4> [<c010b46d>] sysenter_past_esp+0x52/0x71
<4>
<4>Code: f2 ae f7 d1 49 8b 52 24 8d 74 31 01 85 d2 75 e7 5b 89 f0 5e 
<4> <6>updfstab: numerical sysctl 1 23 is obsolete.
...



^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: 2.6.0-test5: intermittent crash on chvt to X; was console lost to Ctrl+Alt+F$n in 2.6.0-test5
@ 2003-09-14 19:00 Pat LaVarre
  0 siblings, 0 replies; 14+ messages in thread
From: Pat LaVarre @ 2003-09-14 19:00 UTC (permalink / raw)
  To: mhf; +Cc: mpm, p.lavarre, linux-kernel


> If it is specific to -test5, post (as tar.bz2)

Definitely not specific to 2.6.0-test5: I have
repeatedly seen 2.6.0-test4 crash this way too.

Whether I have had this vulnerability for days or
weeks or months or years I am not yet sure, I do not
customarily make a point of trying chvt much with each
new kernel.  

Unless I hear otherwise, hopefully within hours, when
next I manage to visit my console in person:

1) I will test to see if the script can crash:

2.6.0-test4 with my near default .config
2.4.22 with my near default .config
2.4.21-xfs Knoppix booted via cd

2) After the reboot following a crash of 2.6.0-test5 I
will sample:

lspci -v
/var/log/dmesg
X version and driver info from /var/log/XFree86.log 
.config

3) I will report back here, attaching (2) as .tar.bz2.

Pat LaVarre



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

end of thread, other threads:[~2003-09-16 17:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-12 14:57 oops if unplug dd of=/dev/scd$n Pat LaVarre
2003-09-12 18:19 ` console lost to Ctrl+Alt+F$n in 2.6.0-test5 Pat LaVarre
2003-09-12 23:06   ` Matt Mackall
2003-09-13  0:49     ` Pat LaVarre
2003-09-13  1:57       ` Matt Mackall
2003-09-13 13:38         ` Pat LaVarre
2003-09-13 14:49           ` Michael Frank
2003-09-13 15:47             ` Michael Frank
2003-09-13 23:12               ` Pat LaVarre
2003-09-14  9:32               ` console lost to Ctrl+Alt+F_n " Pavel Machek
2003-09-14  0:24           ` 2.6.0-test5: intermittent crash on chvt to X; was console lost to Ctrl+Alt+F$n " Michael Frank
2003-09-14 23:04             ` Pat LaVarre
2003-09-12 19:44 ` oops if unplug dd of=/dev/scd$n Pat LaVarre
  -- strict thread matches above, loose matches on Subject: below --
2003-09-14 19:00 2.6.0-test5: intermittent crash on chvt to X; was console lost to Ctrl+Alt+F$n in 2.6.0-test5 Pat LaVarre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.