From owner-freebsd-current@FreeBSD.ORG Sun Mar 7 10:07:19 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C441C1065676; Sun, 7 Mar 2010 10:07:19 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 97B828FC25; Sun, 7 Mar 2010 10:07:19 +0000 (UTC) Received: by pwj1 with SMTP id 1so3619626pwj.13 for ; Sun, 07 Mar 2010 02:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=7HrPbMQE3yJIUX31kX4mSL2l0zbCBq4OwC7Id+BvQo0=; b=Of8vKvq+aIcBx5wrVlie2QQIMR1t3bTxIgmJ4NbiHPYKAyaxn8h99DbUO8n69zZbxI K/epoqJObZ+3apSXGE5jGXGIqCz2F4ovF9gbehQjUVcTEJrf4hGE10KPJgAn1ehrQn+I 2IBszjSAEihYyNv0VQkAqpiD1yC9/5SX8l/UY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=dPSBZJqrR88s63uT0G6KgasYBegTvICyYox6CM9kW2MSjmzlYjtMd9g5bdfjpq37dJ L8shmVUqTtc+DNN/WShM4wPdo6NggbUpdZ//l0a+T4iUrJGBSvyvRHE7gl8JeSvdSRyj FGALz86Pw8exDt7NbyGI6PJ+hRfDMUk3Bov74= MIME-Version: 1.0 Received: by 10.142.119.20 with SMTP id r20mr2259887wfc.96.1267956438851; Sun, 07 Mar 2010 02:07:18 -0800 (PST) Date: Sun, 7 Mar 2010 02:07:18 -0800 Message-ID: <7d6fde3d1003070207q621e69ado2cb64e431feacd76@mail.gmail.com> From: Garrett Cooper To: Alexander Motin , Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Current Subject: Removing USB keyboard after filesystems synced causes panic with destroyed mutex twa(4)? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2010 10:07:19 -0000 Hi Alexander and Hans, I recently did the following which generated a panic on a 9-CURRENT kernel compiled on the 26th: 1. Executed reboot 2. Removed keyboard. 3. Some time after `All buffers synced\nUptime: ...' was displayed, the keyboard was registered disconnected. 4. The interrupt was delivered to my twa(4) enabled card and the kernel panicked, like so: ugen2.2: at usbus2 (disconnected) uhub8: at uhub2, port 1, addr 2 (disconnected) ugen2.3: at usbus2 (disconnected) ukbd0: at uhub8, port 3, addr 3 (disconnected) uhid0: at uhub8, port 3, addr 3 (disconnected) panic: mtx_lock_spin() of destroyed mutex @ /usr/src/sys/dev/twa/tw_cl_intr.c:88 cpuid = 1 KDB: enter: panic [thread pid 12 tid 100025 ] Stopped at kdb_enter+0x3d: movq $0,0x40289c(%rip) db> I wish I could provide you with more details, but unfortunately I the USB bus isn't registering the fact that I'm reattaching the keyboard right now and the box won't reboot automatically :( (didn't set the right sysctl beforehand to panic automatically). I'll try and reproduce the issue again, but I was just wondering whether or not you guys had seen this problem before. Thanks, -Garrett