diff options
author | 2017-04-01 20:55:44 +0800 | |
---|---|---|
committer | 2017-04-08 23:52:16 +0200 | |
commit | 3173d5b8c89e67fa3176292ff9af06f09f365348 (patch) | |
tree | 003c7716e5989830dfe5d1fff85718929d852a39 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | netfilter: helper: Add the rcu lock when call __nf_conntrack_helper_find (diff) | |
download | linux-dev-3173d5b8c89e67fa3176292ff9af06f09f365348.tar.xz linux-dev-3173d5b8c89e67fa3176292ff9af06f09f365348.zip |
netfilter: ctnetlink: make it safer when checking the ct helper name
One CPU is doing ctnetlink_change_helper(), while another CPU is doing
unhelp() at the same time. So even if help->helper is not NULL at first,
the later statement strcmp(help->helper->name, ...) may still access
the NULL pointer.
So we must use rcu_read_lock and rcu_dereference to avoid such _bad_
thing happen.
Fixes: f95d7a46bc57 ("netfilter: ctnetlink: Fix regression in CTA_HELP processing")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions