diff options
| author | Jeff Mahoney <jeffm@suse.com> | 2016-09-21 08:31:29 -0400 |
|---|---|---|
| committer | Ben Hutchings <ben@decadent.org.uk> | 2016-11-20 01:17:34 +0000 |
| commit | d1adfc596bc2de305bd9cd693d7d9fdb26449305 (patch) | |
| tree | ea82e8d46329bf7d097278255a158b73fc9958a1 /include/linux/reset.h | |
| parent | 77d74c0a67c73002b379d14969a7cd6ebc2c61ff (diff) | |
btrfs: ensure that file descriptor used with subvol ioctls is a dir
commit 325c50e3cebb9208009083e841550f98a863bfa0 upstream.
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: Fix subvolume creation locking rules)
Fixes: 76dda93c6a (Btrfs: add snapshot/subvolume destroy ioctl)
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/reset.h')
0 files changed, 0 insertions, 0 deletions
