diff options
| author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2016-09-23 22:57:13 -0400 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:58:49 +0200 |
| commit | da3412a89aebc22ff23afb3a2920014dece7d022 (patch) | |
| tree | 504cadb11721156106d1855e2d73c4bc027a1cfd /virt | |
| parent | 3f3399ad838b04ef3f870afbdfddbdcb680f461d (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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions
