Re: [PATCH][next] io_uring: Fix a read of ununitialized pointer tctx
From: Jens Axboe
Date: Fri Sep 03 2021 - 08:17:01 EST
On 9/3/21 5:35 AM, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> In the unlikely case where ctx->flags & IORING_SETUP_SQPOLL is true
> and sqd is NULL the pointer tctx is not assigned a valid value and
> can contain a garbage value when it is dereferenced. Fix this by
> initializing it to NULL.
Doh - thanks, I folded this one in.
--
Jens Axboe