From: Christophe Saout Subject: Oops with snapshots in 2.6.16-rc1-mm4 Date: Thu, 02 Feb 2006 11:00:53 +0100 Message-ID: <1138874453.10636.6.camel@leto.intern.saout.de> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1740246306==" 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: device-mapper development List-Id: dm-devel.ids --===============1740246306== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-D40RRHs/p2bn3XiEmYt6" --=-D40RRHs/p2bn3XiEmYt6 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, I managed to get this Oops when lvremove'ing a snapshot. This is done by a script so it doesn't wait while executing the commands and it looks like some sort of race condition with BIOs still being processed by kcopyd when kcopy_client_destroy is called. I would love to dig into this but I'm still very busy and don't have time to dig into this. Feb 2 00:31:11 websrv2 ----------- [cut here ] --------- [please bite here= ] --------- Feb 2 00:31:11 websrv2 Kernel BUG at drivers/md/kcopyd.c:154 Feb 2 00:31:11 websrv2 invalid opcode: 0000 [1] PREEMPT=20 Feb 2 00:31:11 websrv2 last sysfs file: /block/ram0/dev Feb 2 00:31:11 websrv2 CPU 0=20 Feb 2 00:31:11 websrv2 Modules linked in: ipt_LOG ip6table_filter ip6_tabl= es twofish serpent blowfish sha256 aes ipt_owner xt_mark xt_state ipt_REJEC= T xt_tcpudp ipt_multiport iptable_filter iptable_mangle ip_tables x_tables = ext3 jbd reiser4 ip_conntrack_irc ip_conntrack_ftp ip_conntrack via_rhine 8= 139too crc32 raid5 xor Feb 2 00:31:11 websrv2 Pid: 21930, comm: lvremove Not tainted 2.6.16-rc1-c= s1 #1 Feb 2 00:31:11 websrv2 RIP: 0010:[] {c= lient_free_pages+12} Feb 2 00:31:11 websrv2 RSP: 0018:ffff81005daebcc8 EFLAGS: 00010287 Feb 2 00:31:11 websrv2 RAX: 00000000000000de RBX: ffff810023856820 RCX: ff= ffffff8053f000 Feb 2 00:31:11 websrv2 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ff= ff810023856820 Feb 2 00:31:11 websrv2 RBP: ffffc20000883040 R08: ffff81007cc19d00 R09: 00= 00000000000001 Feb 2 00:31:11 websrv2 R10: 0000000000000001 R11: ffffffff80178a90 R12: 00= 00000000000000 Feb 2 00:31:11 websrv2 R13: 0000000000000004 R14: ffff81005daebd68 R15: ff= ffffff80359ae0 Feb 2 00:31:11 websrv2 FS: 00002ae3e21faa70(0000) GS:ffffffff80667000(000= 0) knlGS:00000000f7fbd6b0 Feb 2 00:31:11 websrv2 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b Feb 2 00:31:11 websrv2 CR2: 00007fffc88ad3b0 CR3: 000000002933f000 CR4: 00= 000000000006e0 Feb 2 00:31:11 websrv2 Process lvremove (pid: 21930, threadinfo ffff81005d= aea000, task ffff81004989a850) Feb 2 00:31:11 websrv2 Stack: ffff810023856820 ffffffff8035a994 ffff81004b= 6590c0 ffffffff8035c420=20 Feb 2 00:31:11 websrv2 ffff81004c8a8800 ffffc20000883040 ffff81004c8a8800 = ffffffff8035684b=20 Feb 2 00:31:11 websrv2 ffff81004c8a8800 ffff81005ced45c0=20 Feb 2 00:31:11 websrv2 Call Trace: {kcopyd_client_destro= y+20} Feb 2 00:31:11 websrv2 {snapshot_dtr+304} {dm_table_put+107} Feb 2 00:31:11 websrv2 {__hash_remove+192} {dev_remove+88} Feb 2 00:31:11 websrv2 {ctl_ioctl+579} {schedule+229} Feb 2 00:31:11 websrv2 {do_ioctl+105} = {vfs_ioctl+674} Feb 2 00:31:11 websrv2 {sys_ioctl+73} = {system_call+126} Feb 2 00:31:11 websrv2=20 Feb 2 00:31:11 websrv2 Code: 0f 0b 68 ca 98 47 80 c2 9a 00 48 8b 7b 10 e8 = a1 ff ff ff 48=20 Feb 2 00:31:11 websrv2 RIP {client_free_pages+12} RSP Feb 2 00:31:11 websrv2 <1>Unable to handle kernel NULL pointer dereference= at 0000000000000040 RIP:=20 Feb 2 00:31:11 websrv2 {bio_add_page+25} Feb 2 00:31:11 websrv2 PGD 0=20 Feb 2 00:31:11 websrv2 Oops: 0000 [2] PREEMPT=20 Feb 2 00:31:11 websrv2 last sysfs file: /block/ram0/dev Feb 2 00:31:11 websrv2 CPU 0=20 Feb 2 00:31:11 websrv2 Modules linked in: ipt_LOG ip6table_filter ip6_tabl= es twofish serpent blowfish sha256 aes ipt_owner xt_mark xt_state ipt_REJEC= T xt_tcpudp ipt_multiport iptable_filter iptable_mangle ip_tables x_tables = ext3 jbd reiser4 ip_conntrack_irc ip_conntrack_ftp ip_conntrack via_rhine 8= 139too crc32 raid5 xor Feb 2 00:31:11 websrv2 Pid: 8002, comm: kcopyd Not tainted 2.6.16-rc1-cs1 = #1 Feb 2 00:31:11 websrv2 RIP: 0010:[] {b= io_add_page+25} Feb 2 00:31:11 websrv2 RSP: 0018:ffff81003f639c90 EFLAGS: 00010287 Feb 2 00:31:11 websrv2 RAX: 0000000000000000 RBX: 0000000000000010 RCX: 00= 00000000001000 Feb 2 00:31:11 websrv2 RDX: ffff810001c9a548 RSI: ffff81006dd36840 RDI: ff= ff81006dd36840 Feb 2 00:31:11 websrv2 RBP: ffff81006dd36840 R08: 0000000000000000 R09: ff= ff81003f0756c0 Feb 2 00:31:11 websrv2 R10: ffff81006dd36840 R11: 0000000000000001 R12: ff= ff81003f639d68 Feb 2 00:31:11 websrv2 R13: ffff81005c82a500 R14: ffff81005c9b8a80 R15: ff= ff81003f639ce0 Feb 2 00:31:11 websrv2 FS: 00002ae3e21faa70(0000) GS:ffffffff80667000(000= 0) knlGS:00000000f7fbd6b0 Feb 2 00:31:11 websrv2 CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b Feb 2 00:31:11 websrv2 CR2: 0000000000000040 CR3: 000000002933f000 CR4: 00= 000000000006e0 Feb 2 00:31:11 websrv2 Process kcopyd (pid: 8002, threadinfo ffff81003f638= 000, task ffff810048fa51c0) Feb 2 00:31:11 websrv2 Stack: ffffffff8035a13c 0000000000000010 0000000100= 000001 0000000000000000=20 Feb 2 00:31:11 websrv2 ffffffff80359df0 ffffffff80359e20 0000000000000008 = ffff81003ca43ea0=20 Feb 2 00:31:11 websrv2 0000000000000100 0000000000001000=20 Feb 2 00:31:11 websrv2 Call Trace: {dispatch_io+316} {list_get_page+0} Feb 2 00:31:11 websrv2 {list_next_page+0} {complete_io+0} Feb 2 00:31:11 websrv2 {async_io+196} = {complete_io+0} Feb 2 00:31:11 websrv2 {dm_io_async+80} {list_get_page+0} Feb 2 00:31:11 websrv2 {list_next_page+0} {run_io_job+0} Feb 2 00:31:11 websrv2 {do_work+0} {ru= n_io_job+92} Feb 2 00:31:11 websrv2 {process_jobs+30} {run_workqueue+219} Feb 2 00:31:11 websrv2 {keventd_create_kthread+0} {worker_thread+353} Feb 2 00:31:11 websrv2 {default_wake_function+0} {worker_thread+0} Feb 2 00:31:11 websrv2 {kthread+219} {= child_rip+8} Feb 2 00:31:11 websrv2 {keventd_create_kthread+0} {kthread+0} Feb 2 00:31:11 websrv2 {child_rip+0} Feb 2 00:31:11 websrv2=20 Feb 2 00:31:11 websrv2 Code: 48 8b 78 40 44 0f b7 8f 4c 02 00 00 e9 d6 fd = ff ff 66 66 90=20 Feb 2 00:31:11 websrv2 RIP {bio_add_page+25} RSP Feb 2 00:31:11 websrv2 CR2: 0000000000000040 --=-D40RRHs/p2bn3XiEmYt6 Content-Type: application/pgp-signature; name=signature.asc Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBD4dhVZCYBcts5dM0RAr2NAKCgNjGT9eqYF1VpSFvEXUYKIfcL3wCfdKys KkefI4i93/+Pe4o8il6XoEQ= =iHMj -----END PGP SIGNATURE----- --=-D40RRHs/p2bn3XiEmYt6-- --===============1740246306== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============1740246306==--