aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strscpy.c
diff options
context:
space:
mode:
authorMartin K. Petersen <[email protected]>2023-02-15 12:18:01 -0500
committerJens Axboe <[email protected]>2023-02-16 11:05:41 -0700
commitb6a4bdcda430e3ca43bbb9cb1d4d4d34ebe15c40 (patch)
treea076570c9b18d688fc915bed8ca2b2844ba4e86f /lib/test_fortify/write_overflow-strscpy.c
parent0f7c8f0f7934c389b0f9fa1f151e753d8de6348f (diff)
block: bio-integrity: Copy flags when bio_integrity_payload is cloned
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 <[email protected]> Tested-by: Saurav Kashyap <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions