Files
linux/kernel
Steven Rostedt (Red Hat) 8b275b4522 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: d7350c3f45 ("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>
2016-09-30 10:18:38 +02:00
..
2016-06-24 10:18:17 -07:00
2016-09-15 08:27:53 +02:00
2016-09-24 10:07:46 +02:00
2015-11-04 08:23:51 -05:00
2016-08-10 11:49:27 +02:00
2016-09-30 10:18:33 +02:00
2016-09-24 10:07:36 +02:00
2015-11-23 09:44:58 +01:00
2015-11-05 19:34:48 -08:00