Files
rockchip-kernel/kernel
Steven Rostedt (Red Hat) 8b275b4522 tracing: Move mutex to protect against resetting of seq data
commit 1245800c0f 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
2015-06-30 19:44:57 -07:00
2016-09-24 10:07:46 +02:00
2015-04-11 22:27:55 -04: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
2015-04-12 21:03:31 +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