Bug 101371

Summary: OOPS: unplugging western digital passport drive
Product: IO/Storage Reporter: Ilan Cohen (ilanco)
Component: SCSIAssignee: linux-scsi (linux-scsi)
Status: NEW ---    
Severity: high CC: joe.lawrence, marci_r
Priority: P1    
Hardware: Intel   
OS: Linux   
Kernel Version: 4.0.7 Subsystem:
Regression: No Bisected commit-id:
Attachments: kernel log

Description Ilan Cohen 2015-07-12 08:23:59 UTC
Created attachment 182471 [details]
kernel log

Hi,

I can reproducibly crash my laptop by unplugging a western digital passport drive.
The flow is as follow:

1. plugin in passport drive
2. wait until drivers are loaded
3. plug in or unplug power cable
4. unplug passport

This only happens after changing the power state of the laptop. So if I plug in the passport drive while on BAT (or AC) and plug in out while on AC (or BAT) the system crashes.

I think this is the same bug but for an older kernel version:
https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg37689.html

Kernel log is attached.

Friendly regards,

Ilan Cohen
Comment 1 Joe Lawrence 2015-07-19 02:37:48 UTC
Hi Ilan,

Have you tried the patch to drivers/scsi/scsi_pm.c that Alan posted in the thread you mentioned:

https://www.mail-archive.com/linux-scsi@vger.kernel.org/msg37852.html

Thanks,

-- Joe
Comment 2 Ilan Cohen 2015-07-20 14:41:49 UTC
Hi Joe,

I applied the patch Alan posted to kernel 4.0.8 and the crash does not occur anymore.

Regards,

Ilan Cohen