]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: allow only one WPAN to be up at any given time
authorPhoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Mon, 31 Mar 2014 19:37:45 +0000 (21:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Apr 2014 20:25:51 +0000 (16:25 -0400)
commit3497329adc33dfb35ac0e4defc8c0c7fb004769c
tree9240a0e5acf234c77211c173e626d22f55bd1467
parent0651c80793e389027fc00ed0e4b01662b58ac4d2
mac802154: allow only one WPAN to be up at any given time

All 802.15.4 PHY devices with drivers in tree can support only one WPAN
at any given time, yet the stack allows arbitrarily many WPAN devices to
be created and up at the same time. This cannot work with what the
hardware provides, and in the current implementation, provides an easy
DoS vector to any process on the system that may call socket() and
sendmsg().

Thus, allow only one WPAN per PHY to be up at once, just like mac80211
does for managed devices.

Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mac802154/ieee802154_dev.c
net/mac802154/mac802154.h