linux-stable/fs/debugfs
Mathieu Desnoyers 7a3390e419 debugfs: fix create mutex racy fops and private data
commit d3a3b0adad upstream.

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 <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-18 13:30:41 -08:00
..
file.c DEBUGFS: Correct location of debugfs API documentation. 2008-04-30 16:52:47 -07:00
inode.c debugfs: fix create mutex racy fops and private data 2009-12-18 13:30:41 -08:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00