Rusty Russell
4acdbdbe50
[NETFILTER]: ip_conntrack_expect_related must not free expectation
...
If a connection tracking helper tells us to expect a connection, and
we're already expecting that connection, we simply free the one they
gave us and return success.
The problem is that NAT helpers (eg. FTP) have to allocate the
expectation first (to see what port is available) then rewrite the
packet. If that rewrite fails, they try to remove the expectation,
but it was freed in ip_conntrack_expect_related.
This is one example of a larger problem: having registered the
expectation, the pointer is no longer ours to use. Reference counting
is needed for ctnetlink anyway, so introduce it now.
To have a single "put" path, we need to grab the reference to the
connection on creation, rather than open-coding it in the caller.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-07-21 13:14:46 -07:00
..
acpi
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-alpha
Merge master.kernel.org:/pub/scm/linux/kernel/git/lenb/linux-2.6
2005-07-12 16:04:50 -07:00
asm-arm
Merge /home/torvalds/linux-2.6-arm
2005-07-13 10:12:50 -07:00
asm-arm26
[PATCH] Serial: Split 8250 port table (part 2)
2005-06-29 18:45:19 +01:00
asm-cris
[PATCH] streamline preempt_count type across archs
2005-06-23 09:45:19 -07:00
asm-frv
[PATCH] PCI: fix up errors after dma bursting patch and CONFIG_PCI=n
2005-06-27 21:52:46 -07:00
asm-generic
[PATCH] kexec: vmlinux: fix physical addresses
2005-06-25 16:24:47 -07:00
asm-h8300
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-i386
[PATCH] inotify
2005-07-12 20:38:38 -07:00
asm-ia64
Auto merge with /home/aegl/GIT/linus
2005-07-13 12:15:43 -07:00
asm-m32r
[PATCH] m32r: framebuffer device support
2005-07-07 18:24:11 -07:00
asm-m68k
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-m68knommu
[PATCH] streamline preempt_count type across archs
2005-06-23 09:45:19 -07:00
asm-mips
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-parisc
[PATCH] Serial: Split 8250 port table (part 2)
2005-06-29 18:45:19 +01:00
asm-ppc
[PATCH] ppc32: fix destroy_context() race condition
2005-07-13 11:25:24 -07:00
asm-ppc64
[PATCH] ppc64: kill bitfields in ppc64 hash code
2005-07-13 11:25:25 -07:00
asm-s390
[PATCH] s390: fix finish_arch_switch
2005-06-30 08:45:08 -07:00
asm-sh
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-sh64
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-sparc
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-sparc64
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-um
[PATCH] uml: consolidate modify_ldt
2005-07-14 09:00:24 -07:00
asm-v850
[PATCH] v850: Update mmu.h header to match implementation changes
2005-07-11 10:22:39 -07:00
asm-x86_64
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
2005-07-12 17:21:56 -04:00
asm-xtensa
[PATCH] remove asm-xtensa/ipc.h
2005-07-10 12:23:24 -07:00
linux
[NETFILTER]: ip_conntrack_expect_related must not free expectation
2005-07-21 13:14:46 -07:00
math-emu
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
media
[PATCH] v4l: I2C Tuner
2005-07-12 16:01:06 -07:00
mtd
[MTD] NAND: Honour autoplacement schemes supplied by the caller
2005-05-23 13:20:45 +02:00
net
[NET]: Make ipip/ip6_tunnel independant of XFRM
2005-07-19 14:03:34 -07:00
pcmcia
[PATCH] pcmcia: fix pcmcia-cs compilation
2005-07-12 16:00:59 -07:00
rxrpc
Linux-2.6.12-rc2
2005-04-16 15:20:36 -07:00
scsi
[PATCH] I2O: Adaptec specific SG_IO access, firmware access through sysfs and 2400A workaround
2005-06-24 00:05:28 -07:00
sound
[PATCH] create a kstrdup library function
2005-06-23 09:45:18 -07:00
video
[PATCH] Clean-up and bug fix for tdfxfb framebuffer size detection
2005-05-01 08:59:25 -07:00