Files
Linux/block
Martin K. Petersen b13e0c7185 block: bio-integrity: Advance seed correctly for larger interval sizes
Commit 309a62fa3a ("bio-integrity: bio_integrity_advance must update
integrity seed") added code to update the integrity seed value when
advancing a bio. However, it failed to take into account that the
integrity interval might be larger than the 512-byte block layer
sector size. This broke bio splitting on PI devices with 4KB logical
blocks.

The seed value should be advanced by bio_integrity_intervals() and not
the number of sectors.

Cc: Dmitry Monakhov <[email protected]>
Cc: [email protected]
Fixes: 309a62fa3a ("bio-integrity: bio_integrity_advance must update integrity seed")
Tested-by: Dmitry Ivanov <[email protected]>
Reported-by: Alexey Lyashkov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
2022-02-03 21:09:24 -07:00
..
2022-01-22 08:33:38 +02:00
2021-11-29 06:41:29 -07:00
2021-08-18 07:21:12 -06:00
…
2021-12-06 13:18:47 -07:00
…
2022-01-17 07:24:45 -07:00
2021-09-14 00:22:15 -04:00
2021-10-18 06:17:01 -06:00
2021-11-29 06:34:50 -07:00