Patch "vfs: ioctl: prevent double-fetch in dedupe ioctl" has been added to the 4.7-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
vfs: ioctl: prevent double-fetch in dedupe ioctl
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
vfs-ioctl-prevent-double-fetch-in-dedupe-ioctl.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
10eec60ce79187686e052092e5383c99b4420a20Mon Sep 17 00:00:00 2001
From: Scott Bauer <[email protected]>
Date: Wed, 27 Jul 2016 19:11:29 -0600
Subject: vfs: ioctl: prevent double-fetch in dedupe ioctl
From: Scott Bauer <[email protected]>
commit 10eec60ce79187686e052092e5383c99b4420a20 upstream.
This prevents a double-fetch from user space that can lead to to an undersized allocation and heap overflow.
--- fs/ioctl.c | 1 + 1 file changed, 1 insertion(+)
fs/ioctl.c +1 -0
@@ -590,6 +590,7 @@ static long ioctl_file_dedupe_range(stru goto out; } + same->dest_count = count; ret =vfs_dedupe_file_range (file, same);if (ret) goto out;
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/vfs-ioctl-prevent-double-fetch-in-dedupe-ioctl.patch