summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2018-06-25 18:22:00 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-06-26 17:48:40 +0300
commitce00bf07cc95a57cd20b208e02b3c2604e532ae8 (patch)
tree84e98d9b5c39e5655d98abd3fc4e419f89e4969f /tools/perf/scripts/python/export-to-postgresql.py
parentdffd22aed2aa1e804bccf19b30a421e89ee2ae61 (diff)
downloadlinux-ce00bf07cc95a57cd20b208e02b3c2604e532ae8.tar.xz
netfilter: nf_log: don't hold nf_log_mutex during user access
The old code would indefinitely block other users of nf_log_mutex if a userspace access in proc_dostring() blocked e.g. due to a userfaultfd region. Fix it by moving proc_dostring() out of the locked region. This is a followup to commit 266d07cb1c9a ("netfilter: nf_log: fix sleeping function called from invalid context"), which changed this code from using rcu_read_lock() to taking nf_log_mutex. Fixes: 266d07cb1c9a ("netfilter: nf_log: fix sleeping function calle[...]") Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions