Re: [PATCH vfs/for-next] vfs: fix vfs_get_single_reconf_super error handling

2019-09-05 Thread Eric Biggers
On Fri, Aug 30, 2019 at 10:10:24PM -0500, Eric Biggers wrote: > From: Eric Biggers > > syzbot reported an invalid free in debugfs_release_dentry(). The > reproducer tries to mount debugfs with the 'dirsync' option, which is > not allowed. The bug is that if reconfigure_super() fails in >

[PATCH vfs/for-next] vfs: fix vfs_get_single_reconf_super error handling

2019-08-30 Thread Eric Biggers
From: Eric Biggers syzbot reported an invalid free in debugfs_release_dentry(). The reproducer tries to mount debugfs with the 'dirsync' option, which is not allowed. The bug is that if reconfigure_super() fails in vfs_get_super(), deactivate_locked_super() is called, but also fs_context::root