aboutsummaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2018-02-08 13:53:52 -0800
committerPablo Neira Ayuso <[email protected]>2018-02-14 21:05:32 +0100
commitdb93a3632b0f8773a3899e04a3a3e0aa7a26eb46 (patch)
tree326e1da2fc4b76761b74712758a4fa84d7aacdce /include/linux/timerqueue.h
parent57ebd808a97d7c5b1e1afb937c2db22beba3c1f8 (diff)
netfilter: ipt_CLUSTERIP: fix a refcount bug in clusterip_config_find_get()
In clusterip_config_find_get() we hold RCU read lock so it could run concurrently with clusterip_config_entry_put(), as a result, the refcnt could go back to 1 from 0, which leads to a double list_del()... Just replace refcount_inc() with refcount_inc_not_zero(), as for c->refcount. Fixes: d73f33b16883 ("netfilter: CLUSTERIP: RCU conversion") Cc: Eric Dumazet <[email protected]> Cc: Pablo Neira Ayuso <[email protected]> Cc: Florian Westphal <[email protected]> Signed-off-by: Cong Wang <[email protected]> Reviewed-by: Florian Westphal <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions