diff options
| author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-09-23 22:57:13 -0400 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2016-11-20 01:17:35 +0000 |
| commit | e044d0e8ca650435f1fc6133cff1b86441fe63d9 (patch) | |
| tree | a125eb93d0a9bc4b10dd288bb0f901a3d113b1c8 /include/linux | |
| parent | e071c8d1e0f95f8fde2effb0419ed2e9e5b4ea3d (diff) | |
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>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
