commit | 10eec60ce79187686e052092e5383c99b4420a20 | [log] [tgz] |
---|---|---|
author | Scott Bauer <sbauer@plzdonthack.me> | Wed Jul 27 19:11:29 2016 -0600 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Jul 28 15:23:12 2016 -0700 |
tree | 27093bca5e5208aa8e8e04e28b3cc5df4ecbf0af | |
parent | 884316deb4c9fdf9becfa31831a9e40717e3026c [diff] |
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>