From: Kirill Tkhai <ktkhai@virtuozzo.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fuse: Put leaked request on error path of fuse_retrieve()
Date: Tue, 6 Nov 2018 12:34:23 +0300 [thread overview]
Message-ID: <5e2fa16d-1408-4c34-1f9d-a6ccfe345358@virtuozzo.com> (raw)
In-Reply-To: <CAJfpegs+kbFqChz0wKEW+nDBH=M+S+UsDW1w7hyvj3yLmHnuWw@mail.gmail.com>
On 06.11.2018 12:33, Miklos Szeredi wrote:
> On Tue, Nov 6, 2018 at 10:25 AM, Kirill Tkhai <ktkhai@virtuozzo.com> wrote:
>> On 06.11.2018 12:23, Miklos Szeredi wrote:
>>> On Tue, Nov 6, 2018 at 10:13 AM, Kirill Tkhai <ktkhai@virtuozzo.com> wrote:
>>>> fuse_request_send_notify_reply() may fail, and this case
>>>> it remains leaked (fuse_retrieve_end(), which is called
>>>> on error path, does not do that). Also, fc->num_waiting,
>>>> will never be decremented, and fuse_wait_aborted() will
>>>> never finish. So, put the request patently.
>>>>
>>>> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
>>>
>>> Posted same patch yesterday for a syzbot report. How did you notice this?
>>
>> I've found this by code review. I did this last week and I have 10 patches more
>> on different theme. I was waiting for when the merge window opens.
>
> Well, the merge window just closed. But never worry, bugfixes can go
> in at anytime.
>
> If you notice a bug, such as this, you don't need to hold back until
> any particular time, the sooner it's known, the better.
Ok, no problem :)
Thanks,
Kirill
prev parent reply other threads:[~2018-11-06 9:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 9:13 Kirill Tkhai
2018-11-06 9:23 ` Miklos Szeredi
2018-11-06 9:25 ` Kirill Tkhai
2018-11-06 9:33 ` Miklos Szeredi
2018-11-06 9:34 ` Kirill Tkhai [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=5e2fa16d-1408-4c34-1f9d-a6ccfe345358@virtuozzo.com \
--to=ktkhai@virtuozzo.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
/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
all inboxes | Powered by JetHome®