Bug 182361 - [suspend/resume] [panic] Suspend when using USB disc as root causes kernel panic, core not dumped
Summary: [suspend/resume] [panic] Suspend when using USB disc as root causes kernel pa...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 9.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-25 00:30 UTC by Jack Johnson
Modified: 2017-12-31 22:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Johnson 2013-09-25 00:30:00 UTC
NOTE: Emacs notation for keyboard shortcuts used throughout
When I press C-M-Space on the keyboard, the kernel panics. Because this  disconnects the USB bus, core does not get dumped because I am using a USB hard drive.

To fix the problem, I recommend disabling suspend entirely when installation onto a USB hard disk is detected (somehow), also when detecting that we are using a USB stick.

C-M-Space is a very poor choice of keyboard shortcut, because it causes fatfingering with C-M-F1 through F9 which users coming from Linux and also users using X use, because that's what they are used to. This is compounded by my use of a SATA HDD in a USB enclosure, which I am sure is the setup of hundreds of other users who don't want to destroy their Linux installation.

Fix: 

To fix the problem, I recommend disabling suspend entirely when installation onto a USB hard disk is detected (somehow), also when detecting that we are using a USB stick.

UGLY HACK TO FIX:
# sed -i .funfun -e 's/susp/nop/g' /usr/share/syscons/keymaps/preferred.keymap.kbd
How-To-Repeat: 1. Install FreeBSD on any USB stick
2. Boot USB stick on certain newer computers (post about 2007)
3. Attempt to suspend
4. Kernel panick. You will see this as the computer glitching, suspending, and when it boots, fans run 100% for a few seconds and then system reboots.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-09-29 22:45:09 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-usb

reclassify.
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:14 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped