aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/filesystems/utils.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2025-08-12 12:07:54 +0000
committerMiklos Szeredi <[email protected]>2025-08-26 10:43:31 +0000
commite5203209b3935041dac541bc5b37efb44220cc0b (patch)
tree2bf07823ccc8ef0b9138501250fd9faa9f7da1a4 /tools/testing/selftests/filesystems/utils.c
parentfuse: do not allow mapping a non-regular backing file (diff)
downloadkernel-e5203209b3935041dac541bc5b37efb44220cc0b.tar.gz
kernel-e5203209b3935041dac541bc5b37efb44220cc0b.zip
fuse: check if copy_file_range() returns larger than requested size
Just like write(), copy_file_range() should check if the return value is less or equal to the requested number of bytes. Reported-by: Chunsheng Luo <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Fixes: 88bc7d5097a1 ("fuse: add support for copy_file_range()") Cc: <[email protected]> # v4.20 Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'tools/testing/selftests/filesystems/utils.c')
0 files changed, 0 insertions, 0 deletions