Bug 691892 - DM target crashes on unbound loop device
Summary: DM target crashes on unbound loop device
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: device-mapper
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Milan Broz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-29 19:48 UTC by Zdenek Kabelac
Modified: 2013-03-01 04:10 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-22 16:24:41 UTC
Type: ---


Attachments (Terms of Use)

Description Zdenek Kabelac 2011-03-29 19:48:46 UTC
Description of problem:

Kernel is oopsing when unbound loop devices is used for mirror setup.
i.e.:
dmsetup create x --table "0 8 mirror core 2 8 sync 2 /dev/loop0 0 /dev/loop1 0"

and mirror resync will immediatelly cause OOps.

BUG: unable to handle kernel NULL pointer dereference at   (null)
 ? generic_make_request+0x2bd/0x590
 ? kmem_cache_alloc+0xad/0x190
 submit_bio+0x53/0xe0
 ? bio_add_page+0x3b/0x50
 dispatch_io+0x1ca/0x210 [dm_mod]
 ? read_callback+0x0/0xd0 [dm_mirror]
 dm_io+0xbb/0x290 [dm_mod]
 do_mirror+0x1e0/0x748 [dm_mirror]


Version-Release number of selected component (if applicable):
kernel 2.6.38 and earlier

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Zdenek Kabelac 2011-03-29 19:51:32 UTC
Patch posted by Milan on device-mapper devel list:

https://www.redhat.com/archives/dm-devel/2011-March/msg00146.html


Note You need to log in before you can comment on or make changes to this bug.