]> git.baikalelectronics.ru Git - kernel.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)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:10 +0000 (21:40 -0400)
commit0a5d37418b90754d30f64c3097519cfbc7097b9c
tree5b5b9c8b566c2e4853f8c43dc46e9a9313c6c442
parentcb9fd4c21cd33ef7738c33f5b1e9f7059611b62a
btrfs: don't stop searching after encountering the wrong item

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

Cc: stable@vger.kernel.org
Signed-off-by: Gabriel de Perthuis <g2p.code+btrfs@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ioctl.c