Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1323492

Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device

From Greg KH <greg@kroah.com>
Newsgroups linux.kernel
Subject Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device
Date 2016-02-01 21:50 +0100
Message-ID <qXtA7-8mr-21@gated-at.bofh.it> (permalink)
References <qXgMx-7wo-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <dingxiang@huawei.com>
> ---
>  drivers/md/dm-snap.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)

<formletter>

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.

</formletter>

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] [dm]fix NULL pointer in dm_exception_store_create() when create dm device DingXiang <dingxiang@huawei.com> - 2016-02-01 08:10 +0100
  Re: [PATCH] [dm]fix NULL pointer in dm_exception_store_create() when  create dm device Greg KH <greg@kroah.com> - 2016-02-01 21:50 +0100

csiph-web