Re: [PATCH] btrfs: ensure that file descriptor used with subvol ioctls is a dir

2016-09-22 Thread David Sterba
On Wed, Sep 21, 2016 at 08:31:29AM -0400, je...@suse.com wrote: > From: Jeff Mahoney > > If the subvol/snapshot create/destroy ioctls are passed a regular file > with execute permissions set, we'll eventually Oops while trying to do > inode->i_op->lookup via lookup_one_len. > > This patch ensure

[PATCH] btrfs: ensure that file descriptor used with subvol ioctls is a dir

2016-09-21 Thread jeffm
From: Jeff Mahoney If the subvol/snapshot create/destroy ioctls are passed a regular file with execute permissions set, we'll eventually Oops while trying to do inode->i_op->lookup via lookup_one_len. This patch ensures that the file descriptor refers to a directory. Fixes: cb8e70901d (Btrfs: F