]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
target: Check for LBA + sectors wrap-around in sbc_parse_cdb
authorNicholas Bellinger <nab@linux-iscsi.org>
Fri, 13 Feb 2015 22:27:40 +0000 (22:27 +0000)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 10:10:04 +0000 (11:10 +0100)
commit14ee62dd93f3dd27d8c9d300ba59a91708ba9f33
tree037a99fe2cdd49030f64d853965c1f80194ff7a2
parentdffc0bca5ea9b1ae646fb8fc7c82ca179a866b09
target: Check for LBA + sectors wrap-around in sbc_parse_cdb

commit aa179935edea9a64dec4b757090c8106a3907ffa upstream.

This patch adds a check to sbc_parse_cdb() in order to detect when
an LBA + sector vs. end-of-device calculation wraps when the LBA is
sufficently large enough (eg: 0xFFFFFFFFFFFFFFFF).

Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/target/target_core_sbc.c