mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
[NETFILTER]: Wait for untracked references in nf_conntrack module unload
Noticed by Pablo Neira <pablo@eurodev.net>. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a795756333
commit
6636568cf8
@ -1383,6 +1383,9 @@ void nf_conntrack_cleanup(void)
|
|||||||
schedule();
|
schedule();
|
||||||
goto i_see_dead_people;
|
goto i_see_dead_people;
|
||||||
}
|
}
|
||||||
|
/* wait until all references to nf_conntrack_untracked are dropped */
|
||||||
|
while (atomic_read(&nf_conntrack_untracked.ct_general.use) > 1)
|
||||||
|
schedule();
|
||||||
|
|
||||||
for (i = 0; i < NF_CT_F_NUM; i++) {
|
for (i = 0; i < NF_CT_F_NUM; i++) {
|
||||||
if (nf_ct_cache[i].use == 0)
|
if (nf_ct_cache[i].use == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user