diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-25 15:11:53 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-25 15:11:53 -0500 |
commit | 74bf4076f2ed79b5510440b72a561823a8852ec0 (patch) | |
tree | d992d49f992cd77e20c9833876c021ad9b265f57 /kernel/panic.c | |
parent | f6760aa024199cfbce564311dc4bc4d47b6fb349 (diff) | |
download | op-kernel-dev-74bf4076f2ed79b5510440b72a561823a8852ec0.zip op-kernel-dev-74bf4076f2ed79b5510440b72a561823a8852ec0.tar.gz |
tracing: Prevent kernel oops with corrupted buffer
If the contents of the ftrace ring buffer gets corrupted and the trace
file is read, it could create a kernel oops (usualy just killing the user
task thread). This is caused by the checking of the pid in the buffer.
If the pid is negative, it still references the cmdline cache array,
which could point to an invalid address.
The simple fix is to test for negative PIDs.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/panic.c')
0 files changed, 0 insertions, 0 deletions