Mikulas Patocka
ef7e7c82e0
loop: fix crash when using unassigned loop device
When the loop module is loaded, it creates 8 loop devices /dev/loop[0-7].
The devices have no request routine and thus, when they are used without
being assigned, a crash happens.
For example, these commands cause crash (assuming there are no used loop
devices):
Kernel Fault: Code=26 regs=000000007f420980 (Addr=0000000000000010)
CPU: 1 PID: 50 Comm: kworker/1:1 Not tainted 3.11.0 #1
Workqueue: ksnaphd do_metadata [dm_snapshot]
task: 000000007fcf4078 ti: 000000007f420000 task.ti: 000000007f420000
[ 116.319988]
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00001000000001001111111100001111 Not tainted
r00-03 000000ff0804ff0f 00000000408bf5d0 00000000402d8204 000000007b7ff6c0
r04-07 00000000408a95d0 000000007f420950 000000007b7ff6c0 000000007d06c930
r08-11 000000007f4205c0 0000000000000001 000000007f4205c0 000000007f4204b8
r12-15 0000000000000010 0000000000000000 0000000000000000 0000000000000000
r16-19 000000001108dd48 000000004061cd7c 000000007d859800 000000000800000f
r20-23 0000000000000000 0000000000000008 0000000000000000 0000000000000000
r24-27 00000000ffffffff 000000007b7ff6c0 000000007d859800 00000000408a95d0
r28-31 0000000000000000 000000007f420950 000000007f420980 000000007f4208e8
sr00-03 0000000000000000 0000000000000000 0000000000000000 0000000000303000
sr04-07 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 117.549988]
IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000402d82fc 00000000402d8300
IIR: 53820020 ISR: 0000000000000000 IOR: 0000000000000010
CPU: 1 CR30: 000000007f420000 CR31: ffffffffffffffff
ORIG_R28: 0000000000000001
IAOQ[0]: generic_make_request+0x11c/0x1a0
IAOQ[1]: generic_make_request+0x120/0x1a0
RP(r2): generic_make_request+0x24/0x1a0
Backtrace:
[<00000000402d83f0>] submit_bio+0x70/0x140
[<0000000011087c4c>] dispatch_io+0x234/0x478 [dm_mod]
[<0000000011087f44>] sync_io+0xb4/0x190 [dm_mod]
[<00000000110883bc>] dm_io+0x2c4/0x310 [dm_mod]
[<00000000110bfcd0>] do_metadata+0x28/0xb0 [dm_snapshot]
[<00000000401591d8>] process_one_work+0x160/0x460
[<0000000040159bc0>] worker_thread+0x300/0x478
[<0000000040161a70>] kthread+0x118/0x128
[<0000000040104020>] end_fault_vector+0x20/0x28
[<0000000040177220>] task_tick_fair+0x420/0x4d0
[<00000000401aa048>] invoke_rcu_core+0x50/0x60
[<00000000401ad5b8>] rcu_check_callbacks+0x210/0x8d8
[<000000004014aaa0>] update_process_times+0xa8/0xc0
[<00000000401ab86c>] rcu_process_callbacks+0x4b4/0x598
[<0000000040142408>] __do_softirq+0x250/0x2c0
[<00000000401789d0>] find_busiest_group+0x3c0/0xc70
[ 119.379988]
Kernel panic - not syncing: Kernel Fault
Rebooting in 1 seconds..
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2013-11-08 09:10:28 -07:00
..
2013-10-17 15:44:48 +02:00
2013-10-22 08:21:34 +01:00
2013-09-15 22:18:55 -04:00
2013-10-16 18:42:41 -07:00
2013-09-26 14:02:33 -04:00
2013-11-08 09:10:28 -07:00
2013-09-23 17:44:25 -03:00
2013-10-01 17:04:17 +00:00
2013-10-15 16:22:11 -07:00
2013-10-07 23:01:07 -07:00
2013-09-26 02:31:04 +02:00
2013-10-02 16:03:50 -04:00
2013-10-25 16:22:47 +02:00
2013-09-12 11:22:45 -07:00
2013-09-07 12:53:35 +10:00
2013-10-24 22:17:50 +05:30
2013-09-06 11:14:33 -07:00
2013-09-03 11:37:15 -07:00
2013-09-11 15:58:51 -07:00
2013-10-11 16:31:54 +02:00
2013-10-31 15:28:23 -07:00
2013-10-21 13:39:37 +02:00
2013-10-17 09:30:10 -07:00
2013-10-09 09:48:55 -07:00
2013-10-10 10:22:35 +02:00
2013-09-05 15:21:30 -04:00
2013-10-15 19:26:43 +01:00
2013-10-27 10:16:33 -07:00
2013-10-31 10:38:59 -07:00
2013-10-04 10:43:34 -07:00
2013-09-09 16:35:29 -07:00
2013-09-15 22:27:04 -04:00
2013-09-12 11:35:33 -07:00
2013-09-06 08:09:27 +09:30
2013-09-18 12:02:00 -07:00
2013-11-08 09:02:31 -07:00
2013-10-14 06:37:00 -03:00
2013-09-06 13:30:06 -07:00
2013-09-11 15:59:35 -07:00
2013-09-13 15:09:52 +02:00
2013-09-26 13:56:53 -07:00
2013-09-21 09:55:32 -07:00
2013-10-25 10:09:43 -07:00
2013-10-23 07:47:42 +01:00
2013-09-05 11:08:01 -07:00
2013-10-15 09:26:07 +01:00
2013-09-03 22:52:48 -04:00
2013-09-03 16:24:35 -07:00
2013-10-30 15:28:52 +01:00
2013-09-27 16:22:43 +02:00
2013-10-23 07:57:57 +01:00
2013-09-11 15:58:15 -07:00
2013-09-13 15:09:52 +02:00
2013-09-13 15:09:52 +02:00
2013-09-06 13:21:16 -07:00
2013-09-30 12:04:33 +01:00
2013-09-11 15:58:59 -07:00
2013-10-22 09:16:40 +02:00
2013-10-30 12:24:49 -07:00
2013-10-07 14:51:59 +01:00
2013-10-30 12:24:50 -07:00
2013-10-25 10:42:09 -07:00
2013-10-21 11:26:45 +08:00
2013-10-17 13:27:24 -07:00
2013-10-29 10:21:34 -07:00
2013-11-01 09:33:56 -07:00
2013-10-11 10:40:46 -06:00
2013-10-25 11:03:34 -07:00
2013-10-29 10:21:34 -07:00
2013-09-09 10:02:53 +09:30
2013-10-07 00:12:14 -07:00
2013-10-13 20:02:03 +02:00
2013-09-25 15:50:53 -07:00