Re: [PATCH] blk-lib: fix blkdev_issue_secure_erase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 14 Sep 2022 16:55:51 -0400 (EDT), Mikulas Patocka wrote:
> There's a bug in blkdev_issue_secure_erase. The statement
> "unsigned int len = min_t(sector_t, nr_sects, max_sectors);"
> sets the variable "len" to the length in sectors, but the statement
> "bio->bi_iter.bi_size = len" treats it as if it were in bytes.
> The statements "sector += len << SECTOR_SHIFT" and "nr_sects -= len <<
> SECTOR_SHIFT" are thinko.
> 
> [...]

Applied, thanks!

[1/1] blk-lib: fix blkdev_issue_secure_erase
      commit: c4fa368466cc1b60bb92f867741488930ddd6034

Best regards,
-- 
Jens Axboe


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux