Netdev List
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: ktkhai@virtuozzo.com
Cc: netdev@vger.kernel.org, eric.dumazet@gmail.com, ebiederm@xmission.com
Subject: Re: [PATCH] net: Convert atomic_t net::count to refcount_t
Date: Mon, 15 Jan 2018 14:23:57 -0500 (EST)	[thread overview]
Message-ID: <20180115.142357.55179119386016179.davem@davemloft.net> (raw)
In-Reply-To: <151577086012.22020.9600397187098638726.stgit@localhost.localdomain>

From: Kirill Tkhai <ktkhai@virtuozzo.com>
Date: Fri, 12 Jan 2018 18:28:31 +0300

> Since net could be obtained from RCU lists,
> and there is a race with net destruction,
> the patch converts net::count to refcount_t.
> 
> This provides sanity checks for the cases of
> incrementing counter of already dead net,
> when maybe_get_net() has to used instead
> of get_net().
> 
> Drivers: allyesconfig and allmodconfig are OK.
> 
> Suggested-by: Eric Dumazet <eric.dumazet@gmail.com>
> Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>

Applied, thank you.

      parent reply	other threads:[~2018-01-15 19:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 15:28 [PATCH] net: Convert atomic_t net::count to refcount_t Kirill Tkhai
2018-01-12 15:53 ` Eric Dumazet
2018-01-12 15:56   ` Kirill Tkhai
2018-01-15 19:23 ` David Miller [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=20180115.142357.55179119386016179.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=ebiederm@xmission.com \
    --cc=eric.dumazet@gmail.com \
    --cc=ktkhai@virtuozzo.com \
    --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