Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757266AbaAHTyQ (ORCPT ); Wed, 8 Jan 2014 14:54:16 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:37137 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752717AbaAHTyN (ORCPT ); Wed, 8 Jan 2014 14:54:13 -0500 MIME-Version: 1.0 In-Reply-To: <1389210102.23310.31.camel@ret.masoncoding.com> References: <20140102053101.GA29352@localhost> <20140106221036.GE9037@kmo> <20140107055318.GA19016@localhost> <1389126617.23310.19.camel@ret.masoncoding.com> <1389210102.23310.31.camel@ret.masoncoding.com> Date: Wed, 8 Jan 2014 11:54:12 -0800 Message-ID: Subject: Re: [block:for-3.14/core] kernel BUG at fs/bio.c:1748 From: Muthu Kumar To: Chris Mason Cc: "kmo@daterainc.com" , "linux-btrfs@vger.kernel.org" , "fengguang.wu@intel.com" , "linux-kernel@vger.kernel.org" , "lkp@linux.intel.com" , "axboe@kernel.dk" , "linux-fsdevel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chris, [ 8.336061] WARNING: CPU: 0 PID: 0 at fs/bio.c:1778 bio_endio+0xbe/0x100() [ 8.336062] bio_endio: bio for (unknown) without endio This is my recent change to avoid memory leak in bio_endio. But I think the problem is higher up, most likely bio_endio is called twice on the same bio (which was freed before). Are you running the unmodified for-3.14/core or do you have local patches? Regards, Muthu On Wed, Jan 8, 2014 at 11:41 AM, Chris Mason wrote: > On Tue, 2014-01-07 at 13:23 -0800, Muthu Kumar wrote: >> Chris, >> This is based off of Jens block tree, for-3.14/core branch... >> > > Ok, Kent did pull in one of my hunks, one was a comment and the third > was effectively the same as your patch. I tried to test the end result > today, but get these on boot with ext4: > > [ 8.336061] WARNING: CPU: 0 PID: 0 at fs/bio.c:1778 bio_endio+0xbe/0x100() > [ 8.336062] bio_endio: bio for (unknown) without endio > [ 8.336063] Modules linked in: megaraid_sas(+) > [ 8.336065] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.13.0-rc7-mason+ #1 > [ 8.336066] Hardware name: ZTSYSTEMS Echo Ridge T4 /A9DRPF-10D, BIOS 1.07 05/10/2012 > [ 8.336069] 00000000000006f2 ffff88087fc03c28 ffffffff815cb8c6 00000000000006f2 > [ 8.336071] ffff88087fc03c78 ffff88087fc03c68 ffffffff81047497 ffff88085561a8e8 > [ 8.336073] ffff8808582b6d80 00000000000000fe 00000000fffffffb ffff8808582b6d80 > [ 8.336073] Call Trace: > [ 8.336078] [] dump_stack+0x49/0x5b > [ 8.336082] [] warn_slowpath_common+0x87/0xb0 > [ 8.336084] [] warn_slowpath_fmt+0x41/0x50 > [ 8.336086] [] ? scsi_request_fn+0xc8/0x6a0 > [ 8.336087] [] bio_endio+0xbe/0x100 > [ 8.336091] [] blk_update_request+0x243/0x3a0 > [ 8.336092] [] blk_update_bidi_request+0x22/0xa0 > [ 8.336094] [] blk_end_bidi_request+0x2a/0x80 > [ 8.336096] [] blk_end_request+0xb/0x10 > [ 8.336098] [] scsi_io_completion+0xa6/0x700 > [ 8.336100] [] scsi_finish_command+0xc8/0x130 > [ 8.336101] [] scsi_softirq_done+0x13f/0x160 > [ 8.336104] [] blk_done_softirq+0x6d/0x80 > [ 8.336106] [] __do_softirq+0xdb/0x290 > [ 8.336108] [] irq_exit+0xbd/0xd0 > [ 8.336110] [] do_IRQ+0x61/0xe0 > [ 8.336112] [] common_interrupt+0x6a/0x6a > [ 8.336117] [] ? cpuidle_enter_state+0x4a/0xc0 > [ 8.336119] [] ? cpuidle_enter_state+0x46/0xc0 > [ 8.336121] [] cpuidle_idle_call+0xc7/0x160 > [ 8.336123] [] arch_cpu_idle+0x9/0x20 > [ 8.336126] [] cpu_startup_entry+0x9a/0x250 > [ 8.336128] [] rest_init+0x72/0x80 > [ 8.336131] [] start_kernel+0x3fd/0x40a > [ 8.336133] [] ? repair_env_string+0x5b/0x5b > [ 8.336134] [] x86_64_start_reservations+0x2a/0x2c > [ 8.336136] [] x86_64_start_kernel+0x140/0x147 > [ 8.336137] ---[ end trace d0966e2430ea53b4 ]--- > [ 8.336146] ------------[ cut here ]------------ > [ 8.336146] kernel BUG at fs/bio.c:523! > [ 8.336148] invalid opcode: 0000 [#1] SMP > [ 8.336148] Modules linked in: megaraid_sas(+) > [ 8.336150] CPU: 0 PID: 2911 Comm: scsi_id Tainted: G W 3.13.0-rc7-mason+ #1 > [ 8.336150] Hardware name: ZTSYSTEMS Echo Ridge T4 /A9DRPF-10D, BIOS 1.07 05/10/2012 > [ 8.336151] task: ffff8808556b4150 ti: ffff8808556b6000 task.ti: ffff8808556b6000 > [ 8.336153] RIP: 0010:[] [] bio_put+0x8a/0xa0 > [ 8.336153] RSP: 0018:ffff8808556b7b68 EFLAGS: 00010246 > [ 8.336154] RAX: 0000000000000000 RBX: ffff8808582b6d80 RCX: 0000000000000000 > [ 8.336155] RDX: ffff8808582b6dec RSI: 0000000000000003 RDI: ffff8808582b6d80 > [ 8.336155] RBP: ffff8808556b7b78 R08: 0000000000000004 R09: 0000000000000000 > [ 8.336156] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 > [ 8.336156] R13: 0000000000000000 R14: ffff8808567ebe28 R15: ffff8808582b6d80 > [ 8.336157] FS: 00007f16056bd700(0000) GS:ffff88087fc00000(0000) knlGS:0000000000000000 > [ 8.336158] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 8.336159] CR2: ffffe8f7ffc00000 CR3: 0000000856303000 CR4: 00000000000407f0 > [ 8.336159] Stack: > [ 8.336164] ffff8808582b6d80 0000000000000000 ffff8808556b7ba8 ffffffff81291b37 > [ 8.336168] ffff8808556b7b88 ffff8808556b7cf8 ffff88085561a8e8 ffff880855685400 > [ 8.336172] ffff8808556b7c78 ffffffff8129b42d ffff8808556b7be8 ffffffff8119e09b > [ 8.336172] Call Trace: > [ 8.336174] [] blk_rq_unmap_user+0x47/0x60 > [ 8.336177] [] sg_io+0x26d/0x370 > [ 8.336179] [] ? bdget+0x11b/0x130 > [ 8.336183] [] ? find_get_page+0x19/0xa0 > [ 8.336185] [] scsi_cmd_ioctl+0x409/0x480 > [ 8.336186] [] ? unlock_page+0x22/0x30 > [ 8.336189] [] ? __do_fault+0x439/0x560 > [ 8.336191] [] scsi_cmd_blk_ioctl+0x4c/0x70 > [ 8.336194] [] sd_ioctl+0xcf/0x160 > [ 8.336196] [] __blkdev_driver_ioctl+0x23/0x30 > [ 8.336198] [] blkdev_ioctl+0x1f8/0x790 > [ 8.336199] [] block_ioctl+0x37/0x40 > [ 8.336201] [] do_vfs_ioctl+0x87/0x4f0 > [ 8.336204] [] ? file_has_perm+0x8a/0xa0 > [ 8.336205] [] SyS_ioctl+0x91/0xa0 > [ 8.336207] [] system_call_fastpath+0x16/0x1b > [ 8.336218] Code: 8b 74 24 10 48 29 fb 48 89 df e8 a2 d2 f6 ff 48 8b 1c 24 4c 8b 64 24 08 c9 c3 0f 1f 80 00 00 00 00 48 89 df e8 38 60 fb ff eb 9a <0f> 0b 0f 1f 40 00 eb f > a 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 > [ 8.336220] RIP [] bio_put+0x8a/0xa0 > [ 8.336220] RSP > [ 8.336221] ---[ end trace d0966e2430ea53b5 ]--- > > Trying to track it down. > > -chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/