From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Mason Subject: Re: [block:for-3.14/core] kernel BUG at fs/bio.c:1748 Date: Wed, 8 Jan 2014 20:51:38 +0000 Message-ID: <1389214325.23310.34.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> <1389212231.23310.33.camel@ret.masoncoding.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-7" Content-Transfer-Encoding: 8BIT 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" To: "muthu.lkml@gmail.com" Return-path: In-Reply-To: Content-Language: en-US Content-ID: <8D61A146B31F2A46B7A0C3CE9BDA8E79@fb.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Wed, 2014-01-08 at 12:40 -0800, Muthu Kumar wrote: +AD4- On Wed, Jan 8, 2014 at 12:16 PM, Chris Mason +ADw-clm+AEA-fb.com+AD4- wrote: +AD4- +AD4- On Wed, 2014-01-08 at 11:54 -0800, Muthu Kumar wrote: +AD4- +AD4APg- Chris, +AD4- +AD4APg- +AD4- +AD4APg- +AFs- 8.336061+AF0- WARNING: CPU: 0 PID: 0 at fs/bio.c:1778 bio+AF8-endio+-0xbe/0x100() +AD4- +AD4APg- +AFs- 8.336062+AF0- bio+AF8-endio: bio for (unknown) without endio +AD4- +AD4APg- +AD4- +AD4APg- This is my recent change to avoid memory leak in bio+AF8-endio. But I +AD4- +AD4APg- think the problem is higher up, most likely bio+AF8-endio is called twice +AD4- +AD4APg- on the same bio (which was freed before). +AD4- +AD4APg- +AD4- +AD4- +AD4- +AD4- I think these are just two separate problems. Lets ignore the WARN+AF8-ON +AD4- +AD4- for now. +AD4- +AD4- +AD4- +AD4- Not really... the BUG that is triggered: +AD4- +AD4- kernel BUG at fs/bio.c:523+ACE- +AD4- +AD4- It is in bio+AF8-put() (added to bio+AF8-endio() as part of recent change) +AD4- which gets an already freed bio. +AD4- Oh+ACE- I see. Let me try with that one reverted. Thanks+ACE- -chris