lkml.org 
[lkml]   [2013]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3.0-stable 1/2] tracing: Fix possible NULL pointer dereferences
On Fri, Jun 07, 2013 at 05:00:33PM +0800, Li Zefan wrote:
> commit 6a76f8c0ab19f215af2a3442870eeb5f0e81998d upstream.
>
> Currently set_ftrace_pid and set_graph_function files use seq_lseek
> for their fops. However seq_open() is called only for FMODE_READ in
> the fops->open() so that if an user tries to seek one of those file
> when she open it for writing, it sees NULL seq_file and then panic.

You lost the original authorship of this patch, which is a very bad
thing to do.

Ugh, time to edit emails by hand, not my favorite pasttime, someone owes
me a drink...

greg k-h


\
 
 \ /
  Last update: 2013-06-11 08:41    [W:0.045 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site