From: Moni Shoua Date: Sun, 8 Feb 2015 09:49:32 +0000 (+0200) Subject: net/bonding: Fix potential bad memory access during bonding events X-Git-Tag: fixes-v4.0-rc1~150^2~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92e584fe443995bbb84069a4d13ea8ebedb5c5c8;p=pandora-kernel.git 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 Signed-off-by: Moni Shoua Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed