]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: t_start: reset FTRACE_ITER_HASH in case of seek/pread
authorChris Wright <chrisw@sous-sol.org>
Thu, 9 Sep 2010 23:34:59 +0000 (16:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:17:52 +0000 (13:17 -0700)
commit97c63b87be9bdfa8b1f0fb1d000937df0e5c28a8
tree4a43fd3e68deec971e12557398a4c50ffc75421b
parent577fd36b74a2ae18d9c61e65dc5dc6238a6a38c4
tracing: t_start: reset FTRACE_ITER_HASH in case of seek/pread

commit df09162550fbb53354f0c88e85b5d0e6129ee9cc upstream.

Be sure to avoid entering t_show() with FTRACE_ITER_HASH set without
having properly started the iterator to iterate the hash.  This case is
degenerate and, as discovered by Robert Swiecki, can cause t_hash_show()
to misuse a pointer.  This causes a NULL ptr deref with possible security
implications.  Tracked as CVE-2010-3079.

Cc: Robert Swiecki <swiecki@google.com>
Cc: Eugene Teo <eugene@redhat.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/trace/ftrace.c