Bug 41872

Summary: Kernel crashes after ejecting of Samsung U5 player (just a flash stick)
Product: IO/Storage Reporter: wolfram
Component: SCSIAssignee: linux-scsi (linux-scsi)
Status: RESOLVED CODE_FIX    
Severity: normal CC: alan, bvanassche
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.38-3.0.0 Subsystem:
Regression: No Bisected commit-id:
Attachments: Kernel config
/proc/cpuinfo
lspci -vvv
lsusb -v
/proc/iomem
/proc/ioports
/proc/scsi/scsi
/proc/version
black screen of die

Description wolfram 2011-08-28 14:25:21 UTC
When I'm ejecting my Samsung U5 player (mounted or umounted with udisks --unmount or ejected via udisks --eject) I always get null pointer dereference crash.

Please find attached screenshot with error message and additional details
Comment 1 wolfram 2011-08-28 14:27:37 UTC
Created attachment 70602 [details]
Kernel config
Comment 2 wolfram 2011-08-28 14:27:57 UTC
Created attachment 70612 [details]
/proc/cpuinfo
Comment 3 wolfram 2011-08-28 14:28:16 UTC
Created attachment 70622 [details]
lspci -vvv
Comment 4 wolfram 2011-08-28 14:28:34 UTC
Created attachment 70632 [details]
lsusb -v
Comment 5 wolfram 2011-08-28 14:28:55 UTC
Created attachment 70642 [details]
/proc/iomem
Comment 6 wolfram 2011-08-28 14:29:18 UTC
Created attachment 70652 [details]
/proc/ioports
Comment 7 wolfram 2011-08-28 14:30:03 UTC
Created attachment 70662 [details]
/proc/scsi/scsi
Comment 8 wolfram 2011-08-28 14:30:35 UTC
Created attachment 70672 [details]
/proc/version
Comment 9 wolfram 2011-08-28 14:32:37 UTC
Created attachment 70682 [details]
black screen of die
Comment 10 Bart Van Assche 2011-08-28 14:39:34 UTC
Please correct the kernel version - above I see "2.5" while the config and the screenshot say "3.0.0-gentoo-01".
Comment 11 wolfram 2011-08-28 14:42:33 UTC
Could you give me a hint how to do that?
Comment 12 Bart Van Assche 2011-08-28 14:49:30 UTC
Never mind. It would help if you could verify whether this has been fixed in 3.1-rc3, available from http://kernel.org/. That version contains this patch: http://www.spinics.net/lists/stable-commits/msg13017.html.
Comment 13 wolfram 2011-08-28 15:13:34 UTC
Hmmm. Working like a charm. I can't insist that problem is really solved, but I've five successfull ejections without any problem, so looks like that.

wolfy@core ~ % uname -a
Linux core 3.1.0-rc3-git3-00 #1 SMP PREEMPT Sun Aug 28 22:01:43 NOVST 2011 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux