Re: [PATCH] namei: free new_dentry late

2018-11-24 Thread Al Viro
On Sat, Nov 24, 2018 at 05:23:24PM +0800, Pan Bian wrote: > After calling dput(new_dentry), new_dentry is passed to fsnotify_move. > This may result in a use-after-free bug. This patch moves the put > operation late. > > Fixes: 49d31c2f389a("dentry name snapshots") What does that commit have to

Re: [PATCH] namei: free new_dentry late

2018-11-24 Thread Al Viro
On Sat, Nov 24, 2018 at 05:23:24PM +0800, Pan Bian wrote: > After calling dput(new_dentry), new_dentry is passed to fsnotify_move. > This may result in a use-after-free bug. This patch moves the put > operation late. > > Fixes: 49d31c2f389a("dentry name snapshots") What does that commit have to