aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2017-09-27 15:25:30 +0000
committerKees Cook <[email protected]>2017-09-28 05:51:12 +0000
commit66a733ea6b611aecf0119514d2dddab5f9d6c01e (patch)
tree0b1d31848a156eb1008a3adb65fc716fe446153f /net/unix/af_unix.c
parentLinux 4.14-rc2 (diff)
downloadkernel-66a733ea6b611aecf0119514d2dddab5f9d6c01e.tar.gz
kernel-66a733ea6b611aecf0119514d2dddab5f9d6c01e.zip
seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()
As Chris explains, get_seccomp_filter() and put_seccomp_filter() can end up using different filters. Once we drop ->siglock it is possible for task->seccomp.filter to have been replaced by SECCOMP_FILTER_FLAG_TSYNC. Fixes: f8e529ed941b ("seccomp, ptrace: add support for dumping seccomp filters") Reported-by: Chris Salls <[email protected]> Cc: [email protected] # needs s/refcount_/atomic_/ for v4.12 and earlier Signed-off-by: Oleg Nesterov <[email protected]> [tycho: add __get_seccomp_filter vs. open coding refcount_inc()] Signed-off-by: Tycho Andersen <[email protected]> [kees: tweak commit log] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions