android_kernel_xiaomi_sdm845/drivers
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
..
acorn
acpi toshiba_acpi: fix section mismatch in allyesconfig 2007-06-16 13:16:15 -07:00
amba
ata libata: limit post SRST nsect/lbal wait to ~100ms 2007-06-11 00:52:53 -04:00
atm
auxdisplay
base firmware: remove orphaned Email 2007-06-08 12:41:08 -07:00
block loop: preallocate eight loop devices 2007-06-08 17:23:32 -07:00
bluetooth
cdrom potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
char random: fix output buffer folding 2007-06-16 13:16:16 -07:00
clocksource
connector
cpufreq
crypto
dio
dma
edac
eisa
fc4
firewire firewire: Only set client->iso_context if allocation was successful. 2007-06-21 00:09:41 +02:00
firmware
hid
hwmon
i2c
ide Resume from RAM on HPC nx6325 broken 2007-06-16 02:24:43 +02:00
ieee1394 ieee1394: fix to ether1394_tx in ether1394.c 2007-06-16 12:43:20 +02:00
infiniband IB/mlx4: Make sure inline data segments don't cross a 64 byte boundary 2007-06-18 09:23:47 -07:00
input x86_64: Quieten Atari keyboard warnings in Kconfig 2007-06-20 14:27:26 -07:00
isdn isdn/diva: fix section mismatch 2007-06-08 17:23:33 -07:00
kvm KVM: Prevent guest fpu state from leaking into the host 2007-06-15 12:30:59 +03:00
leds
macintosh x86: Only make Macintosh drivers default on Macs 2007-06-20 14:27:26 -07:00
mca
md md: fix bug in error handling during raid1 repair 2007-06-16 13:16:15 -07:00
media
message
mfd
misc
mmc mmc: get back read-only switch function 2007-06-13 19:11:20 +02:00
mtd
net bonding: Fix use after free in unregister path 2007-06-20 19:12:41 -04:00
nubus
oprofile
parisc
parport
pci
pcmcia
pnp
ps3
rapidio
rtc
s390 [S390] Fix zfcpdump header 2007-06-19 13:10:18 +02:00
sbus
scsi Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2007-06-18 10:38:09 -07:00
serial Blackfin serial driver: decouple PARODD and CMSPAR checking from PARENB 2007-06-11 16:16:45 +08:00
sh
sn
spi Blackfin SPI driver: fix bug SPI DMA incomplete transmission 2007-06-11 17:34:17 +08:00
tc potential parse error in ifdef part 3 2007-06-08 17:23:33 -07:00
telephony
usb OHCI: Fix machine check in ohci_hub_status_data 2007-06-08 16:24:31 -07:00
video Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6 2007-06-14 18:36:21 -07:00
w1
zorro
Kconfig
Makefile