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

2016-10-17 Thread Jiri Slaby
From: Jeff Mahoney 3.12-stable review patch. If anyone has any objections, please let me know. === commit 325c50e3cebb9208009083e841550f98a863bfa0 upstream. If the subvol/snapshot create/destroy ioctls are passed a regular file with execute permissions set, we'll

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

2016-10-17 Thread Jiri Slaby
From: Jeff Mahoney 3.12-stable review patch. If anyone has any objections, please let me know. === commit 325c50e3cebb9208009083e841550f98a863bfa0 upstream. If the subvol/snapshot create/destroy ioctls are passed a regular file with execute permissions set, we'll eventually Oops