Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable

* git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-unstable:
Btrfs: check for read permission on src file in the clone ioctl

+5
+5
fs/btrfs/ioctl.c
··· 1481 1481 ret = -EBADF; 1482 1482 goto out_drop_write; 1483 1483 } 1484 + 1484 1485 src = src_file->f_dentry->d_inode; 1485 1486 1486 1487 ret = -EINVAL; 1487 1488 if (src == inode) 1489 + goto out_fput; 1490 + 1491 + /* the src must be open for reading */ 1492 + if (!(src_file->f_mode & FMODE_READ)) 1488 1493 goto out_fput; 1489 1494 1490 1495 ret = -EISDIR;