Sabrina Dubroca bbe11fab0b macsec: use after free when deleting the underlying device
macsec_notify() loops over the list of macsec devices configured on the
underlying device when this device is being removed.  This list is part
of the rx_handler data.

However, macsec_dellink unregisters the rx_handler and frees the
rx_handler data when the last macsec device is removed from the
underlying device.

Add macsec_common_dellink() to delete macsec devices without
unregistering the rx_handler and freeing the associated data.

Fixes: 960d5848dbf1 ("macsec: fix memory leaks around rx_handler (un)registration")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-11 09:58:57 -07:00
..
2016-07-27 14:03:52 -07:00
2016-08-01 18:36:01 -04:00
2016-08-01 18:36:01 -04:00
2016-07-30 21:01:36 -07:00
2016-07-28 15:45:17 -07:00
2016-08-01 18:36:01 -04:00
2016-08-01 16:49:13 -04:00
2016-07-30 21:01:36 -07:00
2016-08-01 18:36:01 -04:00
2016-08-01 07:25:10 -04:00
2016-07-30 21:01:36 -07:00
2016-07-30 21:01:36 -07:00
2016-08-02 17:05:11 -04:00
2016-08-01 18:36:01 -04:00
2016-07-31 21:36:58 -04:00
2016-08-02 17:05:11 -04:00
2016-07-20 23:39:36 -07:00
2016-07-28 17:38:16 -07:00
2016-07-30 21:01:36 -07:00
2016-07-31 21:36:58 -04:00
2016-07-26 18:27:20 -07:00
2016-08-01 18:36:01 -04:00
2016-08-01 18:36:01 -04:00
2016-08-01 18:36:01 -04:00
2016-08-01 18:37:45 -04:00
2016-08-01 18:36:01 -04:00
2016-08-02 19:35:40 -04:00
2016-07-27 11:35:37 -07:00
2016-07-27 15:18:53 -07:00