From: Christian Schoenebeck <linux_oss@crudebyte.com>
To: Dominique Martinet <asmadeus@codewreck.org>,
Leon Romanovsky <leon@kernel.org>
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 [thread overview]
Message-ID: <4813311.ZYo2F6apM6@silver> (raw)
In-Reply-To: <YzV5J9NmL7hijFTR@unreal>
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 <leon@kernel.org>
> > > ---
> > >
> > > 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
prev parent reply other threads:[~2022-10-04 13:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-29 9:37 [PATCH 0/2] Fix to latest syzkaller bugs in 9p area Leon Romanovsky
2022-09-29 9:37 ` [PATCH 1/2] Revert "9p: p9_client_create: use p9_client_destroy on failure" Leon Romanovsky
2022-10-04 13:10 ` Dan Carpenter
2022-10-04 21:01 ` Dominique Martinet
2022-10-06 16:19 ` Leon Romanovsky
2022-09-29 9:37 ` [PATCH 2/2] 9p: destroy client in symmetric order Leon Romanovsky
2022-09-29 10:29 ` Dominique Martinet
2022-09-29 10:53 ` Leon Romanovsky
2022-10-04 13:03 ` Christian Schoenebeck [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4813311.ZYo2F6apM6@silver \
--to=linux_oss@crudebyte.com \
--cc=asmadeus@codewreck.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=ericvh@gmail.com \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=netdev@vger.kernel.org \
--cc=syzbot+67d13108d855f451cafc@syzkaller.appspotmail.com \
--cc=syzbot+de52531662ebb8823b26@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=v9fs-developer@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).