summaryrefslogtreecommitdiffstats
path: root/sys/netipsec/keysock.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2005-10-12 19:52:16 +0000
committerthompsa <thompsa@FreeBSD.org>2005-10-12 19:52:16 +0000
commitd6130a47038460d2093bdc0fcdadd546393cc823 (patch)
treee685414c2d4a9a0e96a99f9d18fa6ce3780a6fbe /sys/netipsec/keysock.c
parent1917bf7b66cadbb6cbcc022f50fb4252b6996ff7 (diff)
downloadFreeBSD-src-d6130a47038460d2093bdc0fcdadd546393cc823.zip
FreeBSD-src-d6130a47038460d2093bdc0fcdadd546393cc823.tar.gz
Change the reference counting to count the number of cloned interfaces for each
cloner. This ensures that ifc->ifc_units is not prematurely freed in if_clone_detach() before the clones are destroyed, resulting in memory modified after free. This could be triggered with if_vlan. Assert that all cloners have been destroyed when freeing the memory. Change all simple cloners to destroy their clones with ifc_simple_destroy() on module unload so the reference count is properly updated. This also cleans up the interface destroy routines and allows future optimisation. Discussed with: brooks, pjd, -current Reviewed by: brooks
Diffstat (limited to 'sys/netipsec/keysock.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud