Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1181166rwb; Thu, 6 Oct 2022 09:25:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Mru1xhI6anHFJOIwMAhSNfjnfk49nUvFfXQ7rUqY3pYdj2XLnctb7kAWwIm046HTDD76I X-Received: by 2002:a65:5886:0:b0:439:8dd3:18d4 with SMTP id d6-20020a655886000000b004398dd318d4mr575556pgu.430.1665073505368; Thu, 06 Oct 2022 09:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665073505; cv=none; d=google.com; s=arc-20160816; b=QH1+RuVglwW3v1MLqTEOEdftjKwgEUrtO/hJe5y4JV7WWVW+RfhVtv8PVOWHSQV0S3 pdKVaeDGniPE6ah/HS5MEyAk/deOTV0jy4oze8sczQEjDZHMXEZTNrvvfQfQv3XuySHN X+M4dnVJyg0gVjTkmalp4pSHC5/FpO4V+HVwZxXhi1n5COqkXWMMeX0cUlbvkVCkU1C4 PkBwFgTaQQ2cP/vixvkJDEjt/tCiqFdX4i9NW0LdJleQW/zEJ7un6NggYLCxKzUKVr// p5xA1YmHGAy9bhyznWHc2nsBh9JKJL6jMRLb5l5Tk9vpLg0zVjZ5ZINw5NNV8QoUYxe1 LqLw== 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; bh=T+IXJzmq/2WngGlQ5qi23u/jPWBGvN0VOrhDWGZUyYw=; b=ueC/0UOdISScQ5+gzlEJ85N9vQl1FbgVqM1HxzOZZeAQ095irvutttQhZTCKV+5WnT fR++kemJvlG2yC563vwf32YhvAvfmZeSq4WV/fRujZJSJ465Y7ruXFOVLgfzI0LS1V/Z JG+JCAfiUVkDFmAyyNSUbqkzoBbWCN/5iaxHQD8C7FO9rmUZN+Vl9vbyyyhZRZmhg+lt rRfZ9bkIbLqQCSuexQ3Ozc8M0x4Bq28eUs3YRXqqSi7QBgHdMVSxfQjEdGAwTRE40SVB ANHkDakIUiGqKbVzFBbk3fFxn7sOOLe6R4KXyBg5YhX+34GFd1FfDKImPgG7tcKS8Pig tJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gEShlUmD; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a631d09000000b00434d869e339si20094762pgd.512.2022.10.06.09.24.52; Thu, 06 Oct 2022 09:25:05 -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=@kernel.org header.s=k20201202 header.b=gEShlUmD; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231713AbiJFQTQ (ORCPT + 99 others); Thu, 6 Oct 2022 12:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbiJFQTP (ORCPT ); Thu, 6 Oct 2022 12:19:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B858ACA30; Thu, 6 Oct 2022 09:19:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3766D619EC; Thu, 6 Oct 2022 16:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBB7DC433D6; Thu, 6 Oct 2022 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665073153; bh=ZgXM77/CXlz1KembRPwUCZZrHGoZx+VZ1yM34EffbDU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gEShlUmDsmrXFXkkL6VV7Tkd4KDRKAAj4NZuGie4VsVXHZydPqgc8prwovsqfWB6L MCElEH85luzIXRFjWFJ6ZX07qiAqTRF5oyrMiPWvWWI7Js2zPfWkBEMMr267knlXEV fgNiLhGl/45LlWkH1k/InWUQsgzNCeNWTCeP+GMXMctcoP+BZf7gXsfLoglwyqzi1s uO/wUhFVDCKYJTxxe0r/aSDasdXzJvWsi+FFu60VRt2eTJUfDoOtFowcNfgSQeLAop hGhR/v6A/Ig5JTp/YU4IYN1Sa4hW8LR/oSHXNzQvjgCamlxAcFC0wuxl/IPgFpljev vMno992AvkUxw== Date: Thu, 6 Oct 2022 19:19:08 +0300 From: Leon Romanovsky To: Dominique Martinet , Christian Schoenebeck Cc: Dan Carpenter , 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=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 05, 2022 at 06:01:39AM +0900, Dominique Martinet wrote: > 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... I can't resend anything in near future and most of the time have very limited access to computer due to holidays here. Thanks > -- > Dominique