From: Oleg Nesterov Date: Mon, 28 Jan 2013 16:08:47 +0000 (+0100) Subject: uprobes/tracing: Ensure inode != NULL in create_trace_uprobe() X-Git-Tag: v3.9-rc1~173^2~2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e4e28c53963e6cfa94d8109bb8f5233c5659048;p=pandora-kernel.git uprobes/tracing: Ensure inode != NULL in create_trace_uprobe() probe_event_enable/disable() check tu->inode != NULL at the start. This is ugly, if igrab() can fail create_trace_uprobe() should not succeed and "postpone" the failure. And S_ISREG(inode->i_mode) check added by d24d7dbf is not safe. Note: alloc_uprobe() should probably check igrab() != NULL as well. Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed