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 (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2013-09-25 00:30 UTC by Jack Johnson
Modified: 2024-09-19 06:43 UTC (History)
1 user (show)

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
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:17:25 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>