summaryrefslogtreecommitdiff
path: root/net/wimax
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-06-17 14:16:11 -0700
committerStephen Hemminger <stephen@networkplumber.org>2013-06-24 08:40:32 -0700
commit1c51a9159ddefa5119724a4c7da3fd3ef44b68d5 (patch)
treebcc3144d0fcc631d666be990c6bb95b69505b741 /net/wimax
parent8385f50a03a8ad3d2c6d76b1117c959261ab7a1c (diff)
vxlan: fix race caused by dropping rtnl_unlock
It is possible for two cpu's to race creating vxlan device. For most cases this is harmless, but the ability to assign "next avaliable vxlan device" relies on rtnl lock being held across the whole operation. Therfore two instances of calling: ip li add vxlan%d vxlan ... could collide and create two devices with same name. To fix this defer creation of socket to a work queue, and handle possible races there. Introduce a lock to ensure that changes to vxlan socket hash list is SMP safe. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Diffstat (limited to 'net/wimax')
0 files changed, 0 insertions, 0 deletions