aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2021-09-17 21:23:14 +0000
committerMartin K. Petersen <[email protected]>2021-09-22 03:52:55 +0000
commit1d479e6c9cb2b40abfb455863a4e9335db882e33 (patch)
tree259a407bfe3ed68557c83bbd554898164a2e3cd2 /lib/test_stackinit.c
parentscsi: ufs: core: Revert "scsi: ufs: Synchronize SCSI and UFS error handling" (diff)
downloadkernel-1d479e6c9cb2b40abfb455863a4e9335db882e33.tar.gz
kernel-1d479e6c9cb2b40abfb455863a4e9335db882e33.zip
scsi: sd_zbc: Support disks with more than 2**32 logical blocks
This patch addresses the following Coverity report about the zno * sdkp->zone_blocks expression: CID 1475514 (#1 of 1): Unintentional integer overflow (OVERFLOW_BEFORE_WIDEN) overflow_before_widen: Potentially overflowing expression zno * sdkp->zone_blocks with type unsigned int (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type sector_t (64 bits, unsigned). Link: https://lore.kernel.org/r/[email protected] Fixes: 5795eb443060 ("scsi: sd_zbc: emulate ZONE_APPEND commands") Cc: Johannes Thumshirn <[email protected]> Cc: Damien Le Moal <[email protected]> Cc: Hannes Reinecke <[email protected]> Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions