From: "Jan Beulich" Subject: Re: [PATCH] Fix blkback/blktap sysfs read bug. Date: Wed, 20 Jan 2010 11:06:14 +0000 Message-ID: <4B56F1B6020000780002AEFA@vpn.id2.novell.com> References: <20100119095250.GB20691@joejin-pc.cn.oracle.com> <4B5596B2020000780002AAF1@vpn.id2.novell.com> <20100119113224.GA21348@joejin-pc.cn.oracle.com> <4B55AE58020000780002AB39@vpn.id2.novell.com> <20100119141338.GA22249@joejin-pc.cn.oracle.com> <4B55E9E7020000780002AC17@vpn.id2.novell.com> <20100120020605.GA25697@joejin-pc.cn.oracle.com> <4B56C2DB020000780002AE45@vpn.id2.novell.com> <20100120105136.GA6801@joejin-pc.cn.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100120105136.GA6801@joejin-pc.cn.oracle.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Joe Jin Cc: Keir Fraser , xen-devel@lists.xensource.com, deepak.patel@oracle.com, greg.marsden@oracle.com List-Id: xen-devel@lists.xenproject.org >>> "Joe Jin" 20.01.10 11:51 >>> >On 2010-01-20 07:46, Jan Beulich wrote: >> And btw., in both cases with the lock added there's no need to check >> both 'be' and 'be->blkif', since be->blkif can't be NULL when be is >> non-NULL. > >No we must check it, as I have methioned, root cause is vbd was been >freed after open sysfs file. Why? You're inside the locked region, so either 'be' is NULL, or both 'be' and 'be->blkif' are non-NULL. Jan