summaryrefslogtreecommitdiffstats
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2016-09-23 22:57:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-30 10:12:45 +0200
commit9092c241e15bdb8eec52354e2c04fbc13b7ca675 (patch)
treeb8848c8442a27bdd4e060b7bf93914b599c90300 /mm/vmscan.c
parent09ae540c5e0aa7ea1f0c5573939a02e1d7e2a378 (diff)
downloadlinux-stable-9092c241e15bdb8eec52354e2c04fbc13b7ca675.tar.gz
linux-stable-9092c241e15bdb8eec52354e2c04fbc13b7ca675.tar.bz2
linux-stable-9092c241e15bdb8eec52354e2c04fbc13b7ca675.zip
tracing: Move mutex to protect against resetting of seq data
commit 1245800c0f96eb6ebb368593e251d66c01e61022 upstream. The iter->seq can be reset outside the protection of the mutex. So can reading of user data. Move the mutex up to the beginning of the function. Fixes: d7350c3f45694 ("tracing/core: make the read callbacks reentrants") Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/vmscan.c')
0 files changed, 0 insertions, 0 deletions