From: Mathieu Desnoyers Date: Tue, 17 Nov 2009 22:40:26 +0000 (-0800) Subject: debugfs: fix create mutex racy fops and private data X-Git-Tag: v2.6.33-rc1~314^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a3b0adad0865c12e39b712ca89efbd0a3a0dbc;p=pandora-kernel.git debugfs: fix create mutex racy fops and private data Setting fops and private data outside of the mutex at debugfs file creation introduces a race where the files can be opened with the wrong file operations and private data. It is easy to trigger with a process waiting on file creation notification. Signed-off-by: Mathieu Desnoyers Signed-off-by: Andrew Morton Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed