[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOssrKfZ3Bt4n87JOh=N-3X3XY8J1aBL7rFNG9u2efk41nAqiA@mail.gmail.com>
Date: Fri, 10 Nov 2017 09:54:48 +0100
From: Miklos Szeredi <mszeredi@...hat.com>
To: Colin King <colin.king@...onical.com>
Cc: overlayfs <linux-unionfs@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
lkml <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ovl: fix null pointer dereference on ofs allocation failure.
On Thu, Nov 9, 2017 at 6:47 PM, Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The current error exit path when ofs fails to allocate jumps
> to clean-up code that calls ovl_free_fs resulting in a null pointer
> dereference on the null ovl pointer. Fix this by simply returning
> with the -ENOMEM status in err.
>
> Detected by CoverityScan, CID#1461284 ("Dereference after null check")
Thanks, fixed.
Miklos
Powered by blists - more mailing lists