]> git.hungrycats.org Git - linux/commit
Btrfs: fix memory leak in the extent_same ioctl
authorFilipe Manana <fdmanana@suse.com>
Fri, 3 Jul 2015 10:36:49 +0000 (11:36 +0100)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Fri, 3 Jul 2015 18:04:45 +0000 (14:04 -0400)
commit170ba18a41b3d8a8d6adb7345b53829f204fd37d
treebfc2f98e671d4c98d9a23e84f9c9371406e1338f
parent1b4e94592832793cea63d26123c606b87a4bdf4f
Btrfs: fix memory leak in the extent_same ioctl

We were allocating memory with memdup_user() but we were never releasing
that memory. This affected pretty much every call to the ioctl, whether
it deduplicated extents or not.

This issue was reported on IRC by Julian Taylor and on the mailing list
by Marcel Ritter, credit goes to them for finding the issue.

Reported-by: Julian Taylor <jtaylor.debian@googlemail.com>
Reported-by: Marcel Ritter <ritter.marcel@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Filipe Manana <fdmanana@suse.com>
fs/btrfs/ioctl.c