All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: jukka.rissanen@linux.intel.com
Cc: linux-bluetooth@vger.kernel.org, kernel@pengutronix.de
Subject: btle 6lowpan races
Date: Wed, 29 Jul 2015 14:38:21 +0200	[thread overview]
Message-ID: <20150729123802.GA31129@omega> (raw)

Hi Jukka,

I think it's bad for filling data for btle lowpan private data at point [0].
This is called after register_netdev and the rtnl_lock isn't hold after
calling "register_netdev" anymore which ends in a possible interface up
between register and filling lowpan_dev information. The result would be
that lowpan_dev is readed somewhere where it isn't filled.

The solution would be simple move the filling between alloc and register of
netdev.

If you like I can prepare patches for that.

Any thoughts on this?

- Alex

[0] http://lxr.free-electrons.com/source/net/bluetooth/6lowpan.c#L874

             reply	other threads:[~2015-07-29 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-29 12:38 Alexander Aring [this message]
2015-07-29 12:51 ` btle 6lowpan races Jukka Rissanen

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=20150729123802.GA31129@omega \
    --to=alex.aring@gmail.com \
    --cc=jukka.rissanen@linux.intel.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-bluetooth@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.