Jay Vosburgh
3201e656ce
bonding: Fix use after free in unregister path
...
The following patch (based on a patch from Stephen Hemminger
<shemminger@linux-foundation.org>) removes use after free conditions in
the unregister path for the bonding master. Without this patch, an
operation of the form "echo -bond0 > /sys/class/net/bonding_masters"
would trigger a NULL pointer dereference in sysfs. I was not able to
induce the failure with the non-sysfs code path, but for consistency I
updated that code as well.
I also did some testing of the bonding /proc file being open
while the bond is being deleted, and didn't see any problems there.
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-06-20 19:12:41 -04:00
..
2007-05-24 16:36:51 -07:00
2007-05-11 17:19:02 +01:00
2007-06-03 11:44:20 -04:00
2007-06-20 19:12:41 -04:00
2007-06-03 11:44:20 -04:00
2007-06-03 11:44:20 -04:00
2007-06-03 11:44:20 -04:00
2007-06-09 18:25:35 -04:00
2007-06-01 08:18:28 -07:00
2007-05-09 23:01:43 -05:00
2007-05-09 07:18:01 +02:00
2007-05-17 20:43:15 -04:00
2007-05-10 23:46:13 -07:00
2007-05-17 20:43:15 -04:00
2007-06-18 08:15:02 -07:00
2007-06-12 18:58:58 -04:00
2007-06-12 18:58:58 -04:00
2007-05-11 17:53:23 -04:00
2007-06-09 18:25:35 -04:00
2007-04-28 11:00:57 -04:00
2007-06-01 08:18:27 -07:00
2007-05-24 16:36:52 -07:00
2007-05-09 08:57:56 +02:00
2007-06-09 19:01:15 -04:00
2007-05-11 17:53:26 -04:00
2007-06-12 14:07:54 -04:00
2007-05-09 08:58:18 +02:00
2007-05-09 08:58:18 +02:00
2007-05-04 17:59:08 -07:00
2007-06-03 11:44:20 -04:00
2007-05-04 17:59:08 -07:00
2007-06-03 11:44:20 -04:00
2007-06-03 11:44:20 -04:00
2007-06-03 11:44:20 -04:00
2007-06-01 08:18:27 -07:00
2007-05-04 17:59:07 -07:00
2007-05-09 08:58:18 +02:00
2007-05-02 19:02:35 -07:00
2007-05-02 20:04:32 +10:00
2007-05-03 13:21:48 -07:00
2007-05-03 13:21:13 -07:00
2007-06-07 13:38:40 -07:00
2007-06-07 13:38:38 -07:00
2007-05-31 01:23:22 -07:00
2007-05-21 19:41:19 -04:00
2007-05-30 09:52:48 -04:00
2007-05-08 01:41:56 -04:00
2007-06-12 18:52:31 -04:00
2007-05-09 08:58:18 +02:00
2007-05-09 08:57:56 +02:00
2007-04-28 11:05:43 -04:00
2007-05-09 08:58:18 +02:00
2007-06-03 11:44:20 -04:00
2007-06-03 11:44:20 -04:00
2007-06-01 08:18:30 -07:00
2007-06-09 18:25:34 -04:00
2007-05-04 17:59:08 -07:00
2007-06-01 08:18:27 -07:00
2007-05-27 12:03:36 -04:00
2007-05-04 17:59:06 -07:00
2007-05-04 17:59:07 -07:00
2007-05-02 20:04:32 +10:00
2007-05-04 17:59:07 -07:00
2007-05-04 17:59:08 -07:00
2007-05-09 19:40:09 -07:00
2007-05-24 17:20:49 -04:00
2007-05-09 08:57:56 +02:00
2007-04-28 11:01:05 -04:00
2007-06-20 22:27:10 +01:00
2007-04-28 11:01:02 -04:00
2007-04-28 11:01:02 -04:00
2007-05-09 08:58:18 +02:00
2007-05-09 08:58:18 +02:00
2007-05-08 01:23:09 -04:00
2007-06-03 11:44:20 -04:00
2007-05-15 17:44:39 -04:00
2007-05-15 17:44:39 -04:00
2007-04-28 11:00:58 -04:00
2007-05-08 11:15:07 -07:00
2007-06-12 14:16:59 -07:00
2007-04-30 00:21:02 -07:00
2007-06-03 11:44:19 -04:00
2007-04-28 11:01:02 -04:00
2007-06-03 11:44:20 -04:00
2007-04-28 11:01:01 -04:00
2007-06-03 11:44:20 -04:00
2007-05-11 17:53:11 -04:00
2007-04-28 11:01:07 -04:00
2007-05-11 17:00:29 +01:00
2007-05-11 17:53:36 -04:00
2007-04-28 11:01:00 -04:00
2007-06-03 11:44:19 -04:00
2007-05-30 09:54:32 -04:00
2007-06-11 17:44:14 +08:00
2007-05-15 17:44:39 -04:00
2007-05-04 17:59:08 -07:00
2007-05-04 17:59:07 -07:00
2007-06-20 19:09:33 -04:00
2007-06-20 19:09:33 -04:00
2007-06-20 19:09:33 -04:00
2007-05-04 17:59:08 -07:00
2007-05-09 08:58:18 +02:00
2007-05-02 20:04:32 +10:00
2007-05-02 20:04:32 +10:00
2007-05-08 01:41:56 -04:00
2007-06-03 18:08:41 -07:00
2007-05-09 12:30:51 -07:00
2007-05-08 11:54:20 +10:00
2007-05-08 11:54:20 +10:00
2007-06-03 11:44:20 -04:00
2007-05-24 17:20:48 -04:00
2007-05-15 17:44:40 -04:00
2007-05-24 17:20:48 -04:00
2007-04-28 11:01:04 -04:00
2007-06-09 18:25:34 -04:00
2007-05-09 08:58:18 +02:00