Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp448208rwb; Tue, 4 Oct 2022 06:20:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qO1zsspXqBHY6YBbg6Yq9Uka+VZMbOLPWaDZ+moeqp0vNCPk3uuC3PDPeOvc1wDXoax0J X-Received: by 2002:a17:90b:400c:b0:20a:bb11:a0f3 with SMTP id ie12-20020a17090b400c00b0020abb11a0f3mr7212273pjb.166.1664889605915; Tue, 04 Oct 2022 06:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664889605; cv=none; d=google.com; s=arc-20160816; b=Rn3sJ+vIqiACOewK55ziFiV/IDh2ba6u4/j90ekm62fNWpORTflz6n09FDgXmh2vNH B6AxNgr+JOBSm+hqlVbErxKL3yZosAx/BUuh0ow728EsM/zEMV6mBS7Srwl/3GPvo+ik 0d7NzvvFKEatzekAMw40nhkPsP0fhHTRff3MSAOBZDdUuQQ69r/nURP9hlRb9dB5Q95W KZNsavCOGuwRRYEloR589oBVWW2MjEZDsEfPZ0WuvsYG4dcqapl0dv7Wu0n5of85oa2k ZhcehgVBOZ90qB05+HYichiG/T7Udk3NSAKQ5np95LOxxw8NbuopN1QhyXDQOYcC4Mli /sag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dVELfXXKaUTmoJi2M9apcMe3aQMNvoEJTLoWDD56CtU=; b=q1vddadT5B06MSPiV7WiXOFwyhnwes6F/cRMs8lI/FslkazN7hOZKwg9ktgRD7jlx3 dXc9V7Pq8i+IVtnHO3tOnPTxjeLdw90y6yZ/WwBTXTYfkrqwMxyIbQ6snAc6YiQAIvuI lf9quYCSomSz0/ml5Zp34qXNt0xx0qsv4u2phwxFlOu3W0DdfWn4LGXs3nfaXoMRWe4x SB4bv6505Z3UmJYI8tPQ4XI79uBw6VvlswYYxcbXH9+zp53mepSf50gbB8va4Z861Ukl DpJtOSJrzCQ5jffF9OOCy2aK2k1FYQZGeXsTZZaB2nRRi/EJmWHPnVYy6S5C8FPg4HNh 0p4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=QUwLAfML; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e80e00b0017c2132ef17si12089752plg.246.2022.10.04.06.19.51; Tue, 04 Oct 2022 06:20: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=@crudebyte.com header.s=kylie header.b=QUwLAfML; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229831AbiJDNEc (ORCPT + 99 others); Tue, 4 Oct 2022 09:04:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiJDNEO (ORCPT ); Tue, 4 Oct 2022 09:04:14 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB923DFA9; Tue, 4 Oct 2022 06:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=dVELfXXKaUTmoJi2M9apcMe3aQMNvoEJTLoWDD56CtU=; b=QUwLAfMLOiMchFX/9mW7ciLofG a/OkgpR/X5Z24OhzCyY86Fo+bwBchjMffoz8li4DQ9wRiIWtsI+bEDEXlCPl5JDarnfvdCIJlcjOZ fm7ewLLvjRKUyTEhHY38bRbmddwGsylLIAdPLhF90nLO9ceyb8xwk9LptYwE4MVr46TsOWkZp36S+ SfL0oVdJLuqM1RpW1xWWkW2SzQUhElcVverDWHm1lUYvmH5zJ26Hx97p95iL+yTYSORthBUhcLPuz o5NEv9w19B0DiqB6jpLnhlGjRhANsqfbx2YCiZgwZCK0FjKUo4znXg44vQm50H+BQomTjrTqpGC3S 1+EW6vVNW8Di/WESbPl4J5ppmOwz+aD9N88BOQ9NE+0BcfDflSLkP1xJqpaR+3rDCWA6SMGC+vhXv ZmAgqIKF4tQH5znwGs0+Yc0v7xCV6qOG47jy/HfaQ6u7vY/qMtBw/5godIJq8KraBGvcPAEi6L7jY wBqxW2d6yyip/Nt1dhcRMOap8Z+saxLiovKkMPG+ydo9rfTA22UPYKcS391aET4i+HDu6fLQLpj1s Mn7Z5a6hffG9pt7Donok4gWSEKIKfs688ldwXsXjXCYDeNwwIzqQsVZUxRbe1huh7NZ0vk1pNqYS3 kxfLSRr1TQjHTr/IyoSsWLyw2H5kEoTK5vB2YBBTs=; From: Christian Schoenebeck To: Dominique Martinet , Leon Romanovsky Cc: v9fs-developer@lists.sourceforge.net, 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, syzbot+de52531662ebb8823b26@syzkaller.appspotmail.com Subject: Re: [PATCH 2/2] 9p: destroy client in symmetric order Date: Tue, 04 Oct 2022 15:03:08 +0200 Message-ID: <4813311.ZYo2F6apM6@silver> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 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 Donnerstag, 29. September 2022 12:53:27 CEST Leon Romanovsky wrote: > On Thu, Sep 29, 2022 at 07:29:33PM +0900, Dominique Martinet wrote: > > Leon Romanovsky wrote on Thu, Sep 29, 2022 at 12:37:56PM +0300: > > > Make sure that all variables are initialized and released in correct > > > order. > > > > Haven't tried running or compiling, comments out of my head that might > > be wrong below > > > > > Reported-by: syzbot+de52531662ebb8823b26@syzkaller.appspotmail.com > > > > You're adding this report tag but I don't see how you fix that failure. > > What you need is p9_tag_cleanup(clnt) from p9_client_destroy -- I assume > > this isn't possible for any fid to be allocated at this point so the fid > > destroying loop is -probably- optional. > > > > I would assume it is needed from p9_client_version failures. > > > > > Signed-off-by: Leon Romanovsky > > > --- > > > > > > net/9p/client.c | 37 ++++++++++++------------------------- > > > 1 file changed, 12 insertions(+), 25 deletions(-) > > > > > > diff --git a/net/9p/client.c b/net/9p/client.c > > > index aaa37b07e30a..8277e33506e7 100644 > > > --- a/net/9p/client.c > > > +++ b/net/9p/client.c > > > @@ -179,7 +179,6 @@ static int parse_opts(char *opts, struct p9_client > > > *clnt)> > > > > goto free_and_return; > > > > > > } > > > > > > - v9fs_put_trans(clnt->trans_mod); > > > > Pretty sure you'll be "leaking transports" if someone tries to pass > > trans=foo multiple times; this can't be removed...(continues below)... > > It is pity, you are right. > > Thanks Hi Leon, have you planned a v2 on this? Just asking, so that we know whether to go forward. Best regards, Christian Schoenebeck