Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1022381rwb; Tue, 4 Oct 2022 14:15:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Kl1tusaHcygRZl5JOejxPHN10ACW1q5VtaJO+gF91D1iDxtXZeTwTMgbtKa6tHleUoGP2 X-Received: by 2002:aa7:d454:0:b0:459:9ae7:725b with SMTP id q20-20020aa7d454000000b004599ae7725bmr565393edr.165.1664918115511; Tue, 04 Oct 2022 14:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664918115; cv=none; d=google.com; s=arc-20160816; b=T8H9WNMnrZnStlKAH8GU+ongg9mpLAAag8H1/Vlds5nM2Gta2QXdkXh18gBevm6Ten WbLrPmDPDhIxIyJ96Sv5cTu5nUsA6m1F/XISA3FQT36CeB3nLPfT6FHPPhfa2DCXOcOf 5SstCceXsCCgOFQCtiG4LUAtw/n16kZOlcQgKBSNeCc93lCk+fwNMQEK/7sJS3Osw93C 0ew4xbyxQJX8F7lfVTxAVp7sI7EmY4prmMjyjrWLFOmbWyPq1YjoNMjnsuOqjU3a2ARN Q/aUo9hqpW1FLgYmMfpdo94Vsp+bGdhkaPQQROBcho3yZJKx8LAZlIqQHP03e2i5T4Jc kHQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=TQuv4dworN6gXfiGfaMjBzpIG00Hu+fteykKUo3XV7c=; b=qorfBq4WZH1UAEf8h7yUaGaMmw0sywMlLHRMlSpoGJIkW+mV1Ao87sL6Y6549ndUzD o4joYqHqnx1QLCTV0B8ic7LvDoIUMqUOF05DDJzXWZ3ZePFN/AgBqJtRyyr5b06K8NrU w9PH5fxNA9K3OoeyjPYZehPWkos6YcZEvCxyhJuquY2jW/0dlKyPeM0JdSWAdhtXc+st M9NWJovQYi7Ldlj2Zt/pJb2wW5CLRVuhqtMOr7AKvOLLXB++Q5L1L6pGWagQbcAE6knJ hCapzo5wJ8jUf7sruzrEVT7K9kNU/9Z6Nn9dDh8mlhh0q20FkGY2yZ2prikc+P+J/PXW OUkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=muqfAJqP; dkim=pass header.i=@codewreck.org header.s=2 header.b=jVig2ysi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds18-20020a170907725200b0078c468bd609si5478521ejc.292.2022.10.04.14.14.49; Tue, 04 Oct 2022 14:15:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=muqfAJqP; dkim=pass header.i=@codewreck.org header.s=2 header.b=jVig2ysi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229555AbiJDVCK (ORCPT + 99 others); Tue, 4 Oct 2022 17:02:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbiJDVCI (ORCPT ); Tue, 4 Oct 2022 17:02:08 -0400 Received: from nautica.notk.org (nautica.notk.org [91.121.71.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9927C65248; Tue, 4 Oct 2022 14:02:05 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id DE340C009; Tue, 4 Oct 2022 23:02:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1664917322; bh=TQuv4dworN6gXfiGfaMjBzpIG00Hu+fteykKUo3XV7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=muqfAJqP1CSYM8nz/7o6fHngTJk36Rxpvo52YMt5mktINDgp+idnOfJycrVO+SfzL TQkDJXtajzhmMQOXuha1sDos+uLaeIhEWR9RuuXJ6VptTYKBpoaeMORMI2w3o+6FcQ UtzopbZ/Xh074KbVScbDW/CgxA9jzNHZYAbDGxlEGrqPCEAESPDxI/3XcIRP0mz+3b bS+eB1G9EJ0GAUaMjG4Ocuuae45ENSm2Js2EAHbW1TlecIxjBu6GRw/Pk+z6hgmgww ieYNMYuBqLtVIWZLq61pZBeA8sWgQiLlG0J9EuUMsjPspbJBJAVOCrqB8BWJHxiYo9 550HnpakYe63g== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id ED5FAC009; Tue, 4 Oct 2022 23:01:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1664917321; bh=TQuv4dworN6gXfiGfaMjBzpIG00Hu+fteykKUo3XV7c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jVig2ysiF+cVU62HzWH6DcQPrNE1RT4nhRLIVRtZvfehbec04BB4p6dh2cwxuxIe4 WpAvr6M7Z6D+8Ug1AEfiyBmGw/eMMk7mIsLVRVBUV5sXPmH8YULHNW83zo/h3Yo0Ks MsbQ0Igqvgc+sYAa4OXRWVPjak8vBs8eVxWVjUKPdELnnU4iOuknKcsHhWS7gLzVWi HW1Rd7mj7bX0M+4sAw3+/Q15P5l8mwmRWkWSDXkFLual9nZfKyJfTutAtAJ80bdljD fdDqar9gEAaeGHF452yeFahD12nWo6aWioYCLpwIanWW9idEMAip0OGaq1VU3n050A Ne1Nl5zPG2MjA== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id b1a35815; Tue, 4 Oct 2022 21:01:54 +0000 (UTC) Date: Wed, 5 Oct 2022 06:01:39 +0900 From: Dominique Martinet To: Dan Carpenter Cc: Leon Romanovsky , v9fs-developer@lists.sourceforge.net, linux_oss@crudebyte.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, syzbot+67d13108d855f451cafc@syzkaller.appspotmail.com, davem@davemloft.net, edumazet@google.com, ericvh@gmail.com, kuba@kernel.org, lucho@ionkov.net, netdev@vger.kernel.org Subject: Re: [PATCH 1/2] Revert "9p: p9_client_create: use p9_client_destroy on failure" Message-ID: References: <024537aa138893c838d9cacc2e24f311c1e83d25.1664442592.git.leonro@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Carpenter wrote on Tue, Oct 04, 2022 at 04:10:44PM +0300: > On Thu, Sep 29, 2022 at 12:37:55PM +0300, Leon Romanovsky wrote: > > Rely on proper unwind order. > > > > This reverts commit 3ff51294a05529d0baf6d4b2517e561d12efb9f9. > > > > Reported-by: syzbot+67d13108d855f451cafc@syzkaller.appspotmail.com > > Signed-off-by: Leon Romanovsky > > The commit message doesn't really say what the problem is to the user. > Is this just to make the next patch easier? Yes (and perhaps a bit of spite from the previous discussion), and the next patch was not useable so I am not applying this as is. The next patch was meant as an alternative implementation to this fix: https://lore.kernel.org/all/20220928221923.1751130-1-asmadeus@codewreck.org/T/#u At this point I have the original fix in my -next branch but it hasn't had any positive review (and well, I myself agree it's ugly), so unless Leon sends a v2 I'll need to think of a better way of tracking if clnt->trans_mod->create has been successfully called. I'm starting to think that since we don't have so many clnt I can probably just fit a bool/bitfield in one of the holes of the struct and just keep track of it; that'll be less error-prone than relying on clnt->trans (which -is- initialized in create() most of the time, but not in a way we can rely on) or reworking create() to return it as I originally wanted to do (rdma still needs to populate clnt->trans behind the scenees before create() returns, so the abstraction is also quite ugly) The current breakage is actually quite bad so I'll try to send that today or tomorrow for merging next week unless Leon resends something we can work with... Conceptually won't be different than the patch currently in next so hopefully can pretend it's had a couple of weeks of testing... -- Dominique