Jay Vosburgh wrote:
The following patch (based on a patch from Stephen Hemminger <[email protected]>) 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 <[email protected]>
applied to #upstream-fixes - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] bonding: Fix use after free in unregister path
- From: Chris Wright <[email protected]>
- Re: [PATCH] bonding: Fix use after free in unregister path
- References:
- [BUG][PATCH] Fix race condition about network device name allocation
- From: Kenji Kaneshige <[email protected]>
- Re: [BUG][PATCH] Fix race condition about network device name allocation
- From: Stephen Hemminger <[email protected]>
- Re: [BUG][PATCH] Fix race condition about network device name allocation
- From: Kenji Kaneshige <[email protected]>
- [PATCH] Fix race condition about network device name allocation
- From: Stephen Hemminger <[email protected]>
- Re: [PATCH] Fix race condition about network device name allocation
- From: Dan Aloni <[email protected]>
- Re: [PATCH] Fix race condition about network device name allocation
- From: Stephen Hemminger <[email protected]>
- Re: [PATCH] Fix race condition about network device name allocation
- From: Jay Vosburgh <[email protected]>
- Why is this patch not in 2.6.22-rc5?
- From: Stephen Hemminger <[email protected]>
- Re: Why is this patch not in 2.6.22-rc5?
- From: Jeff Garzik <[email protected]>
- [PATCH] bonding: Fix use after free in unregister path
- From: Jay Vosburgh <[email protected]>
- [BUG][PATCH] Fix race condition about network device name allocation
- Prev by Date: Re: oops with USB serial irda adapter
- Next by Date: Re: [PATCH] natsemi irq flags
- Previous by thread: [PATCH] bonding: Fix use after free in unregister path
- Next by thread: Re: [PATCH] bonding: Fix use after free in unregister path
- Index(es):