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 tag 'for-6.7-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux

Pull btrfs fix from David Sterba:
"One more fix that verifies that the snapshot source is a root, same
check is also done in user space but should be done by the ioctl as
well"

* tag 'for-6.7-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: do not allow non subvolume root targets for snapshot

+9
+9
fs/btrfs/ioctl.c
··· 1290 1290 * are limited to own subvolumes only 1291 1291 */ 1292 1292 ret = -EPERM; 1293 + } else if (btrfs_ino(BTRFS_I(src_inode)) != BTRFS_FIRST_FREE_OBJECTID) { 1294 + /* 1295 + * Snapshots must be made with the src_inode referring 1296 + * to the subvolume inode, otherwise the permission 1297 + * checking above is useless because we may have 1298 + * permission on a lower directory but not the subvol 1299 + * itself. 1300 + */ 1301 + ret = -EINVAL; 1293 1302 } else { 1294 1303 ret = btrfs_mksnapshot(&file->f_path, idmap, 1295 1304 name, namelen,