From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43626 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932079AbcBAUmz (ORCPT ); Mon, 1 Feb 2016 15:42:55 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1651320948 for ; Mon, 1 Feb 2016 15:42:55 -0500 (EST) Date: Mon, 1 Feb 2016 12:42:53 -0800 From: Greg KH To: DingXiang Cc: snitzer@redhat.com, stable@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device Message-ID: <20160201204253.GD18440@kroah.com> References: <1454310358-755-1-git-send-email-dingxiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454310358-755-1-git-send-email-dingxiang@huawei.com> Sender: stable-owner@vger.kernel.org List-ID: On Mon, Feb 01, 2016 at 03:05:58PM +0800, DingXiang wrote: > In some conditions(such as umount fs failed),origin path or origin bdev or both of the two is same > as cow's.If this happens, origin dev will be freed when get cow dev in function "dm_get_device" , > then "s->origin->dev" which used by "dm_exception_store_create" will be a NULL pointer. > > Signed-off-by:Ding Xiang > --- > drivers/md/dm-snap.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.