From: Eric Wheeler Subject: dm-thinp BUG at drivers/md/persistent-data/dm-btree-remove.c:188 Date: Thu, 14 Feb 2013 18:07:56 -0800 (PST) Message-ID: Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com List-Id: dm-devel.ids Hello all, I've been experimenting with dm-thinp recently and for the past few months and all has been well---until today. The server is running vanilla 3.7.1 and just started issuing the BUG dump below. After the bug, the kernel hangs and I can't even ping the server. This is running as a KVM virtual machine running dm-thinp backed with a single virtio-blk device. Has anyone seen this? Is this known to be fixed in a newer version? Does this indicate a corrupt volume or metadata volume? Let me know what other data I can collect, if any. The VM seems to hang every few hours or so but I'm not sure what triggers it yet. -Eric kernel BUG at drivers/md/persistent-data/dm-btree-remove.c:188! invalid opcode: 0000 [#1] SMP Modules linked in: ebtable_nat ebtables ipt_REJECT bridge fcoe libfcoe libfc 8021q scsi_transport_fc garp stp scsi_tgt llc sunrpc xt_limit xt_conntrack iptable_filter xt_mark iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 ext3 jbd dm_thin_pool dm_bio_prison dm_persistent_data dm_bufio libcrc32c vhost_net tun crc32c_intel microcode pcspkr i2c_piix4 i2c_core pata_acpi ata_generic ata_piix floppy dm_mirror dm_region_hash dm_log dm_mod CPU 2 Pid: 3084, comm: kworker/u:0 Not tainted 3.7.1 #2 Red Hat KVM RIP: 0010:[] [] shift+0x3b/0x91 [dm_persistent_data] RSP: 0018:ffff8802160e7b58 EFLAGS: 00010202 RAX: 00000000000000fc RBX: ffff880040411000 RCX: 00000000000000fb RDX: 00000000ffffffff RSI: ffff880040411000 RDI: ffff880040410000 RBP: ffff8802160e7b88 R08: 00000000000000fc R09: 000000000008bfc6 R10: ffff8802160e7bf0 R11: ffff8802160e7ac8 R12: 00000000ffffffff R13: ffff880040410000 R14: 00000000000000fc R15: 00000000000000fd FS: 0000000000000000(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007f7749c89000 CR3: 00000002141ca000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process kworker/u:0 (pid: 3084, threadinfo ffff8802160e6000, task ffff880214038e20) Stack: ffff8802160e7b78 ffff8802153eec40 ffff88001e1d7000 ffff880040411000 ffff880040410000 00000000000000fc ffff8802160e7c78 ffffffffa009b471 ffff880200000000 ffff88021fc92680 ffff8802160e7bd8 ffffffff81092a3b Call Trace: [] remove_raw+0x517/0x624 [dm_persistent_data] [] ? ttwu_do_wakeup+0x4d/0xdb [] ? try_to_wake_up+0x19c/0x1ae [] dm_btree_remove+0x81/0x12e [dm_persistent_data] [] dm_thin_remove_block+0x5f/0x8a [dm_thin_pool] [] process_prepared_discard+0x22/0x40 [dm_thin_pool] [] process_prepared+0x77/0x8f [dm_thin_pool] [] do_worker+0x53/0x22f [dm_thin_pool] [] process_one_work+0x1ea/0x2ec [] ? pool_dtr+0x6b/0x6b [dm_thin_pool] [] worker_thread+0x168/0x268 [] ? manage_workers+0x280/0x280 [] kthread+0xb5/0xbd [] ? kthread_freezable_should_stop+0x65/0x65 [] ret_from_fork+0x7c/0xb0 [] ? kthread_freezable_should_stop+0x65/0x65 Code: 08 66 66 66 66 90 8b 47 14 49 89 fd 48 89 f3 41 89 d4 44 8b 7f 10 44 8b 76 10 3b 46 14 74 04 0f 0b eb fe 41 29 d7 41 39 c7 76 04 <0f> 0b eb fe 47 8d 34 34 41 39 c6 76 04 0f 0b eb fe 83 fa 00 74 RIP [] shift+0x3b/0x91 [dm_persistent_data] RSP ---[ end trace 524d6bc36c283730 ]--- BUG: unable to handle kernel paging request at ffffffffffffffd8 IP: [] kthread_data+0x10/0x16 PGD 1673067 PUD 1674067 PMD 0 Oops: 0000 [#2] SMP Modules linked in: ebtable_nat ebtables ipt_REJECT bridge fcoe libfcoe libfc 8021q scsi_transport_fc garp stp scsi_tgt llc sunrpc xt_limit xt_conntrack iptable_filter xt_mark iptable_mangle ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 ext3 jbd dm_thin_pool dm_bio_prison dm_persistent_data dm_bufio libcrc32c vhost_net tun crc32c_intel microcode pcspkr i2c_piix4 i2c_core pata_acpi ata_generic ata_piix floppy dm_mirror dm_region_hash dm_log dm_mod CPU 2 Pid: 3084, comm: kworker/u:0 Tainted: G D 3.7.1 #2 Red Hat KVM RIP: 0010:[] [] kthread_data+0x10/0x16 RSP: 0018:ffff8802160e77e8 EFLAGS: 00010092 RAX: 0000000000000000 RBX: ffff88021fd12680 RCX: 0000000000000002 RDX: ffffffff818a8760 RSI: 0000000000000002 RDI: ffff880214038e20 RBP: ffff8802160e77e8 R08: ffff88021fd12680 R09: ffff880214038e68 R10: ffff8801c7c1adf0 R11: 0000000000000010 R12: ffff880214039100 R13: 0000000000000002 R14: 0000000000000002 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: ffffffffffffffd8 CR3: 00000002141ca000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process kworker/u:0 (pid: 3084, threadinfo ffff8802160e6000, task ffff880214038e20) Stack: ffff8802160e7818 ffffffff810863e4 ffff8802160e7818 ffff88021fd12680 ffff880214039100 ffff8802160e78e8 ffff8802160e78a8 ffffffff8148ebab ffff8802160e6010 0000000000012680 ffff880214038e20 0000000000012680 Call Trace: [] wq_worker_sleeping+0x1a/0x78 [] __schedule+0x150/0x503 [] schedule+0x64/0x66 [] do_exit+0x81b/0x834 [] oops_end+0xbf/0xc7 [] die+0x5a/0x63 [] do_trap+0x70/0x137 [] do_invalid_op+0x9c/0xa5 [] ? shift+0x3b/0x91 [dm_persistent_data] [] ? insert_shadow+0x39/0x8c [dm_persistent_data] [] ? kmem_cache_alloc_trace+0xc1/0xd3 [] invalid_op+0x1e/0x30 [] ? shift+0x3b/0x91 [dm_persistent_data] [] remove_raw+0x517/0x624 [dm_persistent_data] [] ? ttwu_do_wakeup+0x4d/0xdb [] ? try_to_wake_up+0x19c/0x1ae [] dm_btree_remove+0x81/0x12e [dm_persistent_data] [] dm_thin_remove_block+0x5f/0x8a [dm_thin_pool] [] process_prepared_discard+0x22/0x40 [dm_thin_pool] [] process_prepared+0x77/0x8f [dm_thin_pool] [] do_worker+0x53/0x22f [dm_thin_pool] [] process_one_work+0x1ea/0x2ec [] ? pool_dtr+0x6b/0x6b [dm_thin_pool] [] worker_thread+0x168/0x268 [] ? manage_workers+0x280/0x280 [] kthread+0xb5/0xbd [] ? kthread_freezable_should_stop+0x65/0x65 [] ret_from_fork+0x7c/0xb0 [] ? kthread_freezable_should_stop+0x65/0x65 Code: 8b 04 25 80 b9 00 00 48 8b 80 88 02 00 00 48 8b 40 c8 c9 48 c1 e8 02 83 e0 01 c3 55 48 89 e5 66 66 66 66 90 48 8b 87 88 02 00 00 <48> 8b 40 d8 c9 c3 55 48 89 e5 66 66 66 66 90 48 3b 3d b7 e4 81 RIP [] kthread_data+0x10/0x16 RSP CR2: ffffffffffffffd8 ---[ end trace 524d6bc36c283731 ]--- Fixing recursive fault but reboot is needed! -- Eric Wheeler www.globallinuxsecurity.pro