On 2/15/23 09:18, Martin K. Petersen wrote: > Make sure to copy the flags when a bio_integrity_payload is cloned. > Otherwise per-I/O properties such as IP checksum flag will not be > passed down to the HBA driver. Since the integrity buffer is owned by > the original bio, the BIP_BLOCK_INTEGRITY flag needs to be masked off > to avoid a double free in the completion path. > > Fixes: aae7df50190a ("block: Integrity checksum flag") > Fixes: b1f01388574c ("block: Relocate bio integrity flags") > Reported-by: Saurav Kashyap <skashyap@xxxxxxxxxxx> > Tested-by: Saurav Kashyap <skashyap@xxxxxxxxxxx> > Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> > --- Looks good. Reviewed-by: Chaitanya Kulkarni <kch@xxxxxxxxxx> -ck