aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-07-01 18:51:15 +0200
committerJens Axboe <[email protected]>2024-07-05 00:53:15 -0600
commit73a768d5f95533574bb8ace34eb683a88c40509e (patch)
tree2847cd11af76c49f3f5f4af78151b99a6bcd4926 /lib/test_fortify/write_overflow-strncpy-src.c
parent2f20872ed43185780a5f30581472599342c86d4a (diff)
block: factor out a blk_write_zeroes_limit helper
Contrary to the comment in __blkdev_issue_write_zeroes, nothing here checks for a potential bi_size overflow. Add a helper mirroring the secure erase code for the check. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Martin K. Petersen <[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-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions