Re: [RFC PATCH 3/3] debugfs: make __debugfs_remove wait for dentry release

2016-02-07 Thread Greg Kroah-Hartman
On Thu, Dec 10, 2015 at 01:47:14PM +0100, Roman Pen wrote: > __debugfs_remove does not wait for dentry release, thus dentry can still be > alive and file operations can still be invoked after the function returns. > > >From debugfs point of view this behaviour is definitely ok, but that can be >

Re: [RFC PATCH 3/3] debugfs: make __debugfs_remove wait for dentry release

2016-02-07 Thread Greg Kroah-Hartman
On Thu, Dec 10, 2015 at 01:47:14PM +0100, Roman Pen wrote: > __debugfs_remove does not wait for dentry release, thus dentry can still be > alive and file operations can still be invoked after the function returns. > > >From debugfs point of view this behaviour is definitely ok, but that can be >

[RFC PATCH 3/3] debugfs: make __debugfs_remove wait for dentry release

2015-12-10 Thread Roman Pen
__debugfs_remove does not wait for dentry release, thus dentry can still be alive and file operations can still be invoked after the function returns. >From debugfs point of view this behaviour is definitely ok, but that can be critical for users of debugfs and lead to usage-after-free: file

[RFC PATCH 3/3] debugfs: make __debugfs_remove wait for dentry release

2015-12-10 Thread Roman Pen
__debugfs_remove does not wait for dentry release, thus dentry can still be alive and file operations can still be invoked after the function returns. >From debugfs point of view this behaviour is definitely ok, but that can be critical for users of debugfs and lead to usage-after-free: file