From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 25832] kernel crashes upon resume if usb devices are removed when suspended
Date: Fri, 22 Apr 2011 10:37:39 GMT [thread overview]
Message-ID: <201104221037.p3MAbdg6012184@demeter2.kernel.org> (raw)
In-Reply-To: <bug-25832-13602@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=25832
--- Comment #61 from rocko <rockorequin@hotmail.com> 2011-04-22 10:37:37 ---
I can reliably reproduce it with the following, running in Ubuntu (11.04 at the
moment, but 10.10 works as well):
1. I insert a USB key formatted with ext4.
2. I run this simple script, passing the id that shows up in
/sys/bus/usb/drivers/usb-storage for the USB key as the argument, eg 2-2:1.0:
#!/bin/bash
SLEEP=3
function list {
if [ -e "$1" ]; then
echo $1
fi
}
cd /sys/bus/usb/drivers/usb-storage
if [ "$1" == "" ] || [ "$2" != "" ]; then
echo "Usage: $0 usb device"
echo "With one of these: "
for file in 1* ; do list $file; done
for file in 2* ; do list $file; done
exit 1
fi
echo 8 > /proc/sys/kernel/printk
count=1
while true; do
echo -n $1 >unbind
echo $count
sleep $SLEEP
echo -n $1 >bind
sleep $SLEEP
((count=count+1))
done
I'm making it sleep 3 seconds between unbind/bind events because that gives
Ubuntu plenty of time to mount the drive after the bind.
When it oopses, it typically oopses within a few seconds of the unbind event
(I'd say in less than 10 seconds and often immediately). For me it normally
will oops inside 10 bind/unbinds, but 2.6.39-rc4 took more like 20 to 30 goes
when I tried it this morning).
I'll try again sending the output to another PC, but I'm pretty sure last time
I tried that the ssh session crashed before it could dump the stack trace, just
as the tty console usually crashes before it finishes dumping.
When I get time I'll try some variations as well like making it sync and sleep
before the unbind.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
next prev parent reply other threads:[~2011-04-22 10:37 UTC|newest]
Thread overview: 100+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-25832-13602@https.bugzilla.kernel.org/>
2011-02-03 17:09 ` [Bug 25832] kernel crashes upon resume if usb devices are removed when suspended bugzilla-daemon
2011-02-03 18:22 ` bugzilla-daemon
2011-02-04 6:28 ` bugzilla-daemon
2011-02-04 6:30 ` bugzilla-daemon
2011-02-04 15:31 ` bugzilla-daemon
2011-02-05 8:31 ` bugzilla-daemon
2011-02-05 8:53 ` bugzilla-daemon
2011-02-05 19:12 ` bugzilla-daemon
2011-02-05 19:56 ` bugzilla-daemon
2011-02-05 19:58 ` bugzilla-daemon
2011-02-05 20:53 ` bugzilla-daemon
2011-02-05 23:10 ` bugzilla-daemon
2011-02-06 2:54 ` bugzilla-daemon
2011-02-06 3:44 ` bugzilla-daemon
2011-02-06 4:26 ` bugzilla-daemon
2011-02-06 6:43 ` bugzilla-daemon
2011-02-06 9:00 ` bugzilla-daemon
2011-02-07 1:20 ` bugzilla-daemon
2011-02-07 3:11 ` bugzilla-daemon
2011-02-07 3:32 ` bugzilla-daemon
2011-02-07 3:33 ` bugzilla-daemon
2011-02-07 4:24 ` bugzilla-daemon
2011-02-07 15:36 ` bugzilla-daemon
2011-02-07 23:49 ` bugzilla-daemon
2011-02-19 12:36 ` bugzilla-daemon
2011-02-19 15:55 ` bugzilla-daemon
2011-02-20 0:16 ` bugzilla-daemon
2011-02-21 4:02 ` bugzilla-daemon
2011-02-21 4:08 ` bugzilla-daemon
2011-02-21 8:59 ` bugzilla-daemon
2011-02-21 16:48 ` bugzilla-daemon
2011-02-22 7:03 ` bugzilla-daemon
2011-03-03 15:23 ` bugzilla-daemon
2011-03-06 10:25 ` bugzilla-daemon
2011-03-06 15:59 ` bugzilla-daemon
2011-03-12 6:03 ` bugzilla-daemon
2011-03-12 12:12 ` bugzilla-daemon
2011-03-12 15:51 ` bugzilla-daemon
2011-03-13 0:41 ` bugzilla-daemon
2011-03-13 2:26 ` bugzilla-daemon
2011-03-13 2:45 ` bugzilla-daemon
2011-03-13 3:01 ` bugzilla-daemon
2011-03-13 21:17 ` bugzilla-daemon
2011-03-14 4:10 ` bugzilla-daemon
2011-03-14 14:18 ` bugzilla-daemon
2011-03-24 23:06 ` bugzilla-daemon
2011-03-31 0:44 ` bugzilla-daemon
2011-03-31 0:49 ` bugzilla-daemon
2011-04-01 15:09 ` bugzilla-daemon
2011-04-01 23:58 ` bugzilla-daemon
2011-04-04 2:32 ` bugzilla-daemon
2011-04-04 14:11 ` bugzilla-daemon
2011-04-05 15:17 ` bugzilla-daemon
2011-04-06 23:01 ` bugzilla-daemon
2011-04-22 6:00 ` bugzilla-daemon
2011-04-22 10:13 ` bugzilla-daemon
2011-04-22 10:37 ` bugzilla-daemon [this message]
2011-04-22 11:58 ` bugzilla-daemon
2011-04-22 13:42 ` [Bug 25832] kernel crashes when a mounted ext3/4 file system is physically removed bugzilla-daemon
2011-04-22 15:00 ` bugzilla-daemon
2011-04-23 0:32 ` bugzilla-daemon
2011-04-23 4:12 ` bugzilla-daemon
2011-04-23 19:31 ` bugzilla-daemon
2011-04-24 1:35 ` bugzilla-daemon
2011-04-25 0:36 ` bugzilla-daemon
2011-04-25 0:37 ` bugzilla-daemon
2011-04-25 0:39 ` bugzilla-daemon
2011-04-25 20:28 ` bugzilla-daemon
2011-04-26 0:28 ` bugzilla-daemon
2011-04-26 0:44 ` bugzilla-daemon
2011-04-26 1:22 ` bugzilla-daemon
2011-04-26 3:29 ` bugzilla-daemon
2011-04-26 4:02 ` bugzilla-daemon
2011-04-26 18:15 ` bugzilla-daemon
2011-05-03 2:19 ` bugzilla-daemon
2011-05-04 7:36 ` bugzilla-daemon
2011-05-10 23:27 ` bugzilla-daemon
2011-05-26 6:44 ` bugzilla-daemon
2011-05-26 14:27 ` bugzilla-daemon
2011-07-13 7:52 ` bugzilla-daemon
2011-08-31 5:00 ` bugzilla-daemon
2011-08-31 5:07 ` bugzilla-daemon
2011-08-31 14:36 ` bugzilla-daemon
2011-08-31 23:43 ` bugzilla-daemon
2011-09-01 1:30 ` bugzilla-daemon
2011-09-04 3:53 ` bugzilla-daemon
2011-09-04 13:55 ` bugzilla-daemon
2011-09-04 14:00 ` bugzilla-daemon
2011-09-05 17:44 ` bugzilla-daemon
2011-09-09 19:13 ` Ted Ts'o
2011-09-09 22:10 ` Alan Stern
[not found] ` <BAY151-W6176D929049AA9E2BDBAEBA1000@phx.gbl>
2011-09-10 14:06 ` Ted Ts'o
2011-09-10 18:07 ` Alan Stern
2011-09-12 1:58 ` Alan Stern
2012-07-02 13:24 ` bugzilla-daemon
2011-03-06 12:34 2.6.38-rc7-git4: Reported regressions 2.6.36 -> 2.6.37 Rafael J. Wysocki
2011-03-06 12:40 ` [Bug #25832] kernel crashes upon resume if usb devices are removed when suspended Rafael J. Wysocki
2011-03-06 12:40 ` Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2011-02-21 22:29 2.6.38-rc5-git6: Reported regressions 2.6.36 -> 2.6.37 Rafael J. Wysocki
2011-02-21 22:37 ` [Bug #25832] kernel crashes upon resume if usb devices are removed when suspended Rafael J. Wysocki
2011-02-12 23:34 2.6.38-rc4-git5: Reported regressions 2.6.36 -> 2.6.37 Rafael J. Wysocki
2011-02-12 23:38 ` [Bug #25832] kernel crashes upon resume if usb devices are removed when suspended Rafael J. Wysocki
2011-02-03 0:03 2.6.38-rc3-git1: Reported regressions 2.6.36 -> 2.6.37 Rafael J. Wysocki
2011-02-03 0:05 ` [Bug #25832] kernel crashes upon resume if usb devices are removed when suspended Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201104221037.p3MAbdg6012184@demeter2.kernel.org \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.