]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/ioctl.c
vfs: ioctl: prevent double-fetch in dedupe ioctl
authorScott Bauer <sbauer@plzdonthack.me>
Thu, 28 Jul 2016 01:11:29 +0000 (19:11 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Jul 2016 22:23:12 +0000 (15:23 -0700)
commit10eec60ce79187686e052092e5383c99b4420a20
tree27093bca5e5208aa8e8e04e28b3cc5df4ecbf0af
parent884316deb4c9fdf9becfa31831a9e40717e3026c
vfs: ioctl: prevent double-fetch in dedupe ioctl

This prevents a double-fetch from user space that can lead to to an
undersized allocation and heap overflow.

Fixes: 54dbc1517237 ("vfs: hoist the btrfs deduplication ioctl to the vfs")
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ioctl.c