aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJann Horn <jannh@google.com>2018-06-25 17:22:00 +0200
committerMoyster <oysterized@gmail.com>2019-05-03 19:24:03 +0200
commit1f56c88dd71fe705d108c44d5ec6cd9588217e5b (patch)
tree109c46fc5039836a76324e5a3c92fec0b488d708 /scripts
parent4c6d2512636e07aa97c5717bf02d2ee388124e0d (diff)
netfilter: nf_log: don't hold nf_log_mutex during user access
commit ce00bf07cc95a57cd20b208e02b3c2604e532ae8 upstream. 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[...]") Change-Id: Ie116e00b34b43a683dd3f423130293b90bc6b2a1 Signed-off-by: Jann Horn <jannh@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions