[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJfpegtcU_=hhmq9C-n1dkCBOcTX7VzkdXDpOZZNh1iZ73-t0w@mail.gmail.com>
Date: Thu, 29 Oct 2020 16:25:47 +0100
From: Miklos Szeredi <miklos@...redi.hu>
To: Zhiqiang Liu <liuzhiqiang26@...wei.com>
Cc: Miklos Szeredi <mszeredi@...hat.com>,
linfeilong <linfeilong@...wei.com>,
linux-fsdevel@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
lihaotian <lihaotian9@...wei.com>
Subject: Re: [PATCH] fuse: fix potential accessing NULL pointer problem in fuse_send_init()
On Thu, Oct 22, 2020 at 4:52 PM Zhiqiang Liu <liuzhiqiang26@...wei.com> wrote:
>
>
> In fuse_send_init func, ia is allocated by calling kzalloc func, and
> we donot check whether ia is NULL before using it. Thus, if allocating
> ia fails, accessing NULL pointer problem will occur.
Note the __GFP_NOFAIL flag for kzalloc(), which ensures that it will not fail.
Thanks,
Miklos
Powered by blists - more mailing lists