The following reply was made to PR kernel/6381; it has been noted by GNATS.

From: Kenneth R Westerback <kwesterb...@rogers.com>
To: Aaron Stellman <z...@x96.org>
Cc: Kenneth R Westerback <kwesterb...@rogers.com>, gn...@cvs.openbsd.org
Subject: Re: kernel/6381: ehci kernel panic, mass storage on sansa c250 mp3
 player insertion
Date: Thu, 20 May 2010 15:21:54 -0400

 On Thu, May 20, 2010 at 12:05:40PM -0700, Aaron Stellman wrote:
 > On Thu, May 20, 2010 at 12:26:08AM -0400, Kenneth R Westerback wrote:
 > > Can you plug it into non-ehci ports to see if this is ehci related?
 > > 
 > > .... Ken
 > > 
 > After further investigation, it turns out it's the hotplugd which is
 > causing the problem. I have only attach script, and here are the
 > contents that are causing panic:
 > 
 > #!/bin/sh
 > 
 > DEVCLASS=$1
 > DEVNAME=$2
 > 
 > case $DEVCLASS in
 > 2)
 >    # disk devices
 >    disklabel=`/sbin/disklabel $DEVNAME 2>&1 | \
 >       sed -n '/^label: /s/^label: //p'`
 >    ;;
 > 3)
 >    # network devices; requires hostname.$DEVNAME
 >    sh /etc/netstart $DEVNAME
 >    ;;
 > esac
 > 
 > If I comment out disklabel, no panic happens. Preprending "sleep 2"
 > right before running disklabel, doesn't change anything.
 > Could there be some sort of race condition, since hotplugd will fork two
 > children, to run attach for sd{1,2}?
 
 Aha. This is a known but still mysterious problem.
 
 .... Ken

Reply via email to