Sabrina Dubroca
524834b175
bonding: fix event handling for stacked bonds
...
[ Upstream commit 92480b3977 ]
When a bond is enslaved to another bond, bond_netdev_event() only
handles the event as if the bond is a master, and skips treating the
bond as a slave.
This leads to a refcount leak on the slave, since we don't remove the
adjacency to its master and the master holds a reference on the slave.
Reproducer:
ip link add bondL type bond
ip link add bondU type bond
ip link set bondL master bondU
ip link del bondL
No "Fixes:" tag, this code is older than git history.
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2023-05-15 12:23:22 +09:00
..
2023-05-15 12:23:13 +09:00
2023-05-12 16:27:16 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 11:22:47 +09:00
2023-05-15 11:44:23 +09:00
2023-05-15 11:16:42 +09:00
2023-05-15 12:05:18 +09:00
2023-05-15 09:51:44 +09:00
2023-05-15 10:05:32 +09:00
2023-05-15 12:17:16 +09:00
2023-05-15 12:23:20 +09:00
2023-05-15 12:06:10 +09:00
2023-05-15 12:05:56 +09:00
2023-05-15 12:06:06 +09:00
2023-05-15 11:22:49 +09:00
2023-05-15 12:16:59 +09:00
2023-05-15 12:21:46 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 09:20:44 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 12:17:17 +09:00
2023-05-15 12:23:08 +09:00
2023-05-15 12:21:46 +09:00
2022-03-15 09:20:56 +09:00
2023-05-15 12:23:12 +09:00
2023-05-15 10:45:29 +09:00
2023-05-15 11:41:33 +09:00
2023-05-15 12:17:00 +09:00
2023-05-15 12:16:44 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 11:57:46 +09:00
2023-05-15 12:22:56 +09:00
2023-05-15 12:05:23 +09:00
2023-05-15 12:23:16 +09:00
2023-05-15 12:23:04 +09:00
2023-05-15 12:12:05 +09:00
2023-05-15 12:17:08 +09:00
2023-05-15 09:10:25 +09:00
2023-05-12 17:22:44 +09:00
2023-05-15 12:17:13 +09:00
2023-05-15 12:21:39 +09:00
2023-05-12 16:43:39 +09:00
2023-05-15 11:22:55 +09:00
2023-05-15 11:44:15 +09:00
2023-05-15 12:23:17 +09:00
2023-05-15 12:22:57 +09:00
2023-05-15 11:30:03 +09:00
2023-05-15 12:23:22 +09:00
2023-05-15 10:48:49 +09:00
2023-05-15 12:05:44 +09:00
2023-05-15 11:10:41 +09:00
2023-05-12 16:42:35 +09:00
2023-05-15 09:58:01 +09:00
2023-05-15 12:06:16 +09:00
2023-05-15 12:22:50 +09:00
2023-05-15 09:18:55 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 11:45:19 +09:00
2023-05-15 12:05:28 +09:00
2023-05-15 11:50:33 +09:00
2023-05-15 12:07:35 +09:00
2023-05-15 11:22:20 +09:00
2023-05-12 17:24:35 +09:00
2023-05-15 12:21:40 +09:00
2023-05-15 10:06:13 +09:00
2023-05-15 09:23:11 +09:00
2023-05-15 12:07:33 +09:00
2023-05-15 12:12:32 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 12:17:04 +09:00
2023-05-15 12:23:16 +09:00
2023-05-15 12:05:52 +09:00
2023-05-15 12:12:36 +09:00
2023-05-15 12:05:59 +09:00
2023-05-15 09:23:01 +09:00
2020-02-04 13:48:58 +09:00
2023-05-15 12:22:59 +09:00
2023-05-15 12:23:11 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 12:17:11 +09:00
2023-05-15 08:28:33 +09:00
2023-05-12 16:39:25 +09:00
2023-05-15 11:55:45 +09:00
2023-05-15 12:17:15 +09:00
2023-05-15 12:22:45 +09:00
2023-05-15 09:22:48 +09:00
2023-05-15 10:31:44 +09:00
2019-12-11 18:21:09 +09:00
2019-12-11 18:21:09 +09:00