summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorMoni Shoua2015-02-08 10:49:32 +0100
committerDavid S. Miller2015-02-09 23:03:53 +0100
commit92e584fe443995bbb84069a4d13ea8ebedb5c5c8 (patch)
tree56ec4d25143890b36edd026b8ab6ec3950d98661 /drivers/infiniband/hw
parentMerge branch 'tipc-next' (diff)
downloadkernel-qcow2-linux-92e584fe443995bbb84069a4d13ea8ebedb5c5c8.tar.gz
kernel-qcow2-linux-92e584fe443995bbb84069a4d13ea8ebedb5c5c8.tar.xz
kernel-qcow2-linux-92e584fe443995bbb84069a4d13ea8ebedb5c5c8.zip
net/bonding: Fix potential bad memory access during bonding events
When queuing work to send the NETDEV_BONDING_INFO netdev event, it's possible that when the work is executed, the pointer to the slave becomes invalid. This can happen if between queuing the event and the execution of the work, the net-device was un-ensvaled and re-enslaved. Fix that by queuing a work with the data of the slave instead of the slave structure. Fixes: 69e6113343cf ('net/bonding: Notify state change on slaves') Reported-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: Moni Shoua <monis@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband/hw')
0 files changed, 0 insertions, 0 deletions