From: David Miller <davem@davemloft.net>
To: decot@googlers.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
ebiederm@xmission.com, edumazet@google.com, amwang@redhat.com,
antonio@meshcoding.com, jpirko@redhat.com
Subject: Re: [PATCH net-next v1 2/2] netpoll: avoid reference leaks
Date: Tue, 08 Jul 2014 14:17:08 -0700 (PDT) [thread overview]
Message-ID: <20140708.141708.2064358397103630362.davem@davemloft.net> (raw)
In-Reply-To: <CAG88wWZ9GiqoOscqG4-ePOWo8bXgSTAQ6=6-tZPahMcxOvQMLg@mail.gmail.com>
From: David Decotigny <decot@googlers.com>
Date: Tue, 8 Jul 2014 12:35:14 -0700
> Thanks for the feedback. This patch results from manual inspection of
> the code. I agree my commit description is abusive: in the case of
> bonding, I think everything is fine, there should be no ref leak,
> cleanup paths seem clean.
>
> My point was to make things more predictable: ndo_netpoll_cleanup
> called anyways to acknowledge actual loss of a ref to npinfo,
> irrespective of whether it's the last ref or not. Without this patch,
> calling ndo_netpoll_cleanup would depend on some timing behavior, hard
> to predict, and users of the API have better be careful to reclaim the
> refs manually anyways: as a consequence, not sure this callback is
> actually required in its current inception.
You've increased my confusion rather than decreased it.
You fail to address the core issue in my feedback:
Whoever drops the refcount to zero must be the one to invoke
the cleanup function.
Please address this concisely, and directly.
next prev parent reply other threads:[~2014-07-08 21:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1404172155.git.decot@googlers.com>
2014-06-30 23:50 ` [PATCH net-next v1 1/2] netpoll: fix use after free David Decotigny
2014-06-30 23:50 ` [PATCH net-next v1 2/2] netpoll: avoid reference leaks David Decotigny
2014-07-08 2:35 ` David Miller
2014-07-08 19:35 ` David Decotigny
2014-07-08 21:17 ` David Miller [this message]
2014-07-08 21:50 ` David Decotigny
2014-07-08 22:16 ` David Miller
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=20140708.141708.2064358397103630362.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=amwang@redhat.com \
--cc=antonio@meshcoding.com \
--cc=decot@googlers.com \
--cc=ebiederm@xmission.com \
--cc=edumazet@google.com \
--cc=jpirko@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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).