aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorKlaus Jensen <[email protected]>2021-11-10 10:19:06 +0100
committerChristoph Hellwig <[email protected]>2021-11-23 17:22:41 +0100
commit00b33cf3da726757aef636365bb52e9536434e9a (patch)
tree07f2f8b1eb2b571e699e45771c3540d83cbeb6a7 /lib/test_fortify/write_overflow-strncpy.c
parent8e8aaf512a91ae44d40647a88b51326c7b0a70a8 (diff)
nvme: fix write zeroes pi
Write Zeroes sets PRACT when block integrity is enabled (as it should), but neglects to also set the reftag which is expected by reads. This causes protection errors on reads. Fix this by setting the reftag for type 1 and 2 (for type 3, reads will not check the reftag). Signed-off-by: Klaus Jensen <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions