From owner-freebsd-bugs@FreeBSD.ORG Tue Sep 24 23:30:01 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E4B02E32 for ; Tue, 24 Sep 2013 23:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C33B623D8 for ; Tue, 24 Sep 2013 23:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8ONU0AP009722 for ; Tue, 24 Sep 2013 23:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8ONU0pU009709; Tue, 24 Sep 2013 23:30:00 GMT (envelope-from gnats) Resent-Date: Tue, 24 Sep 2013 23:30:00 GMT Resent-Message-Id: <201309242330.r8ONU0pU009709@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jack Johnson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4E9AEE00 for ; Tue, 24 Sep 2013 23:26:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3BDB323BE for ; Tue, 24 Sep 2013 23:26:17 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8ONQGmJ090913 for ; Tue, 24 Sep 2013 23:26:16 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8ONQGfu090907; Tue, 24 Sep 2013 23:26:16 GMT (envelope-from nobody) Message-Id: <201309242326.r8ONQGfu090907@oldred.freebsd.org> Date: Tue, 24 Sep 2013 23:26:16 GMT From: Jack Johnson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/182361: Suspend when using USB disc as root causes kernel panic(k), core not dumped X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2013 23:30:01 -0000 >Number: 182361 >Category: kern >Synopsis: Suspend when using USB disc as root causes kernel panic(k), core not dumped >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 24 23:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jack Johnson >Release: 9.1-RELEASE >Organization: none >Environment: FreeBSD jack-opti-bsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: 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. >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. >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 >Release-Note: >Audit-Trail: >Unformatted: