From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4320C433F5 for ; Mon, 7 Feb 2022 15:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232405AbiBGPq4 (ORCPT ); Mon, 7 Feb 2022 10:46:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352759AbiBGPi1 (ORCPT ); Mon, 7 Feb 2022 10:38:27 -0500 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F5C0C0401CE for ; Mon, 7 Feb 2022 07:38:25 -0800 (PST) Received: by mail-io1-xd2e.google.com with SMTP id n17so17247081iod.4 for ; Mon, 07 Feb 2022 07:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=uN1CSm5Xp0zfBe9o48GNau7bniWjnN8OKEvpexouZmA=; b=e7TGsDDQnw7DcjI6Brhjc6vCkM0BGnGHOPePjmWKGBU33M8F3SkG5FC9LetY1qxkST uS9Qu7uylVk9F7PIEVKRHenzEBnN8svGYCbBCD/f3btZzar8CHQF71cidCwAJWIniv8E 0lac2EA1iUAVm6024Xlwi3l+/5Ud/MWR2AAd1fOG5Chd1JUbumKrjpzV35Ciq+RSeTGD JvoWrKZqUWs+Mblu+src5E3wJraRRSqr3zQuI2QSYoIy03+wUB8QMHcSXMAmfBLGEkcp xGYWaxbmMw9mlsEcO7NHonfZwk369I36O5lJiHETzzkvNCtGBe2eduQCDw9DZpK9Gv7n ikqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=uN1CSm5Xp0zfBe9o48GNau7bniWjnN8OKEvpexouZmA=; b=PxxTsIZbZc/ehfpKXrXxC2sEpnNEqUSDrNHmP2fZK1UsPWvxo5zaunFW3tOiA/wS8O y8coibLYwZNqeGNPYycnF+H0NZj4EdJtIXl+uNEEE9M/hXEzjzbltLhl1vJrojRdTf7B +th8X2fyOZSi+GKX4sNjVyVylVsCpDQh95vAf8iGDJo9rzbf0iaYtCK04RY1dliLxCc1 Ur2Ooig6I2UN0mEgC3OrRSnQQrtlFH0rm7JqRUS4Mp/pGBjWPZvy5mGEbBnUUuypdqbe HyjLTNY6ko7bAx2JKUNVL5WndQEfiiP3DdZi0LIlfThPM04YCt4S6I/dLVJixAxiVsZy XmQg== X-Gm-Message-State: AOAM5323PXYkzKDnwNNg5qJe+JKJrf64c2DInNhGwZZg9UQpK/5LLTCU PdqKto3J6+IDm77oeXqiiHuDCQ== X-Google-Smtp-Source: ABdhPJyLp8yQXnthAsAiXf5Lyt8EZbSsYGzPNbpW4fdUvzh6XOdUKIJi5wEmEzcBbdv+ClLxErVLhw== X-Received: by 2002:a05:6602:2c83:: with SMTP id i3mr49969iow.105.1644248305006; Mon, 07 Feb 2022 07:38:25 -0800 (PST) Received: from x1.localdomain ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id z23sm6052912iol.11.2022.02.07.07.38.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Feb 2022 07:38:24 -0800 (PST) From: Jens Axboe To: Ammar Faizi Cc: "Chen, Rong A" , Linux Kernel Mailing List , Alviro Iskandar Setiawan , io-uring Mailing list , GNU/Weeb Mailing List , Dan Carpenter , Pavel Begunkov , Tea Inside Mailing List , kernel test robot In-Reply-To: <20220207140533.565411-1-ammarfaizi2@gnuweeb.org> References: <20220207114315.555413-1-ammarfaizi2@gnuweeb.org> <91e8ca64-0670-d998-73d8-f75ec5264cb0@kernel.dk> <20220207140533.565411-1-ammarfaizi2@gnuweeb.org> Subject: Re: [PATCH io_uring-5.17 v2] io_uring: Clean up a false-positive warning from GCC 9.3.0 Message-Id: <164424830208.19639.16912208440698766253.b4-ty@kernel.dk> Date: Mon, 07 Feb 2022 08:38:22 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On Mon, 7 Feb 2022 21:05:33 +0700, Ammar Faizi wrote: > From: Alviro Iskandar Setiawan > > 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