Revision 3201e656ce56ed02e9501906c18ffe16ae350a52 authored by Jay Vosburgh on 19 June 2007, 18:12:12 UTC, committed by Jeff Garzik on 20 June 2007, 23:12:41 UTC
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>
1 parent 3a2c892
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 22.9 KB |
Makefile | -rw-r--r-- | 1.0 KB |
calibrate.c | -rw-r--r-- | 4.7 KB |
do_mounts.c | -rw-r--r-- | 9.7 KB |
do_mounts.h | -rw-r--r-- | 1.4 KB |
do_mounts_initrd.c | -rw-r--r-- | 3.0 KB |
do_mounts_md.c | -rw-r--r-- | 7.3 KB |
do_mounts_rd.c | -rw-r--r-- | 10.0 KB |
initramfs.c | -rw-r--r-- | 11.8 KB |
main.c | -rw-r--r-- | 20.0 KB |
noinitramfs.c | -rw-r--r-- | 1.4 KB |
version.c | -rw-r--r-- | 1009 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...