summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2014-04-08 22:43:43 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-06 07:59:36 -0700
commitb4140e2b766bb20f0eb9d363be9072905977c5e0 (patch)
tree13ce020489be8aa3850423f993720ed208239e69 /fs/ext4
parentfc7b1646bf29f722277bdd19551e01420ce9da8f (diff)
block: Fix for_each_bvec()
commit b7aa84d9cb9f26da1a9312c3e39dbd1a3c25a426 upstream. Commit 4550dd6c6b062 introduced for_each_bvec() which iterates over each bvec attached to a bio or bip. However, the macro fails to check bi_size before dereferencing which can lead to crashes while counting/mapping integrity scatterlist segments. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Cc: Kent Overstreet <kmo@daterainc.com> Cc: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions