[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <eaac6a37-66bf-d244-bf08-0f717feb495c@kernel.dk>
Date: Wed, 14 Jun 2023 10:14:59 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Chenyuan Mi <cymi20@...an.edu.cn>
Cc: asml.silence@...il.com, io-uring@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] io_uring/kbuf: fix missing check for return value of
io_buffer_get_list()
On 6/14/23 9:12?AM, Chenyuan Mi wrote:
> The io_buffer_get_list() function may return NULL, which may
> cause null pointer deference, and other callsites of
> io_buffer_get_list() all do Null check. Add Null check for
> return value of io_buffer_get_list().
>
> Found by our static analysis tool.
Ah, was going to ask about a test case, but I guess it doesn't exist.
I don't think this can happen, as the legacy buffer groups can only ever
get added, and only get removed when the ring goes away.
--
Jens Axboe
Powered by blists - more mailing lists