]> git.ipfire.org Git - people/ms/linux.git/commit
btrfs: don't stop searching after encountering the wrong item
authorGabriel de Perthuis <g2p.code@gmail.com>
Mon, 6 May 2013 17:40:18 +0000 (17:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 May 2013 18:09:24 +0000 (11:09 -0700)
commit3f9831881378bae530028b35a7a06c811441162d
treef492b80862263a96c7a0a3f75ccedd74632fec7f
parentae101a35196a14a8388b7db5f7ddd0b3cfdc5f99
btrfs: don't stop searching after encountering the wrong item

commit 03b71c6ca6286625d8f1ed44aabab9b5bf5dac10 upstream.

The search ioctl skips items that are too large for a result buffer, but
inline items of a certain size occuring before any search result is
found would trigger an overflow and stop the search entirely.

Bug: https://bugzilla.kernel.org/show_bug.cgi?id=57641

Signed-off-by: Gabriel de Perthuis <g2p.code+btrfs@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/ioctl.c