[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164424830208.19639.16912208440698766253.b4-ty@kernel.dk>
Date: Mon, 07 Feb 2022 08:38:22 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Ammar Faizi <ammarfaizi2@...weeb.org>
Cc: "Chen, Rong A" <rong.a.chen@...el.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Alviro Iskandar Setiawan <alviro.iskandar@...il.com>,
io-uring Mailing list <io-uring@...r.kernel.org>,
GNU/Weeb Mailing List <gwml@...weeb.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
Pavel Begunkov <asml.silence@...il.com>,
Tea Inside Mailing List <timl@...r.teainside.org>,
kernel test robot <lkp@...el.com>
Subject: Re: [PATCH io_uring-5.17 v2] io_uring: Clean up a false-positive warning from GCC 9.3.0
On Mon, 7 Feb 2022 21:05:33 +0700, Ammar Faizi wrote:
> From: Alviro Iskandar Setiawan <alviro.iskandar@...il.com>
>
> In io_recv(), if import_single_range() fails, the @flags variable is
> uninitialized, then it will goto out_free.
>
> After the goto, the compiler doesn't know that (ret < min_ret) is
> always true, so it thinks the "if ((flags & MSG_WAITALL) ..." path
> could be taken.
>
> [...]
Applied, thanks!
[1/1] io_uring: Clean up a false-positive warning from GCC 9.3.0
commit: 0d7c1153d9291197c1dc473cfaade77acb874b4b
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists