summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorVineet Agarwal <agarwal.vineet2006@gmail.com>2026-05-12 10:49:24 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-06-03 01:22:12 +0300
commit6d544529f97167162486e93bea035e08daa4d053 (patch)
tree0fbe1c7f4feab919c049f0fdf43adf6221effb82 /include/linux
parent14d1948fa2384d0208f32be4a046d6edbf9fcc43 (diff)
downloadlinux-6d544529f97167162486e93bea035e08daa4d053.tar.xz
selftests/mm: check file initialization writes in split_huge_page_test
create_pagecache_thp_and_fd() fills the backing file for the pagecache THP tests using repeated write() calls, but the return value is never checked. If a write fails or completes only partially, the test may continue with an incompletely initialized file and produce misleading results. Check the result of write() and fail the test if the expected number of bytes was not written. [akpm@linux-foundation.org: remove unneeded local, per David] Link: https://lore.kernel.org/da82de92-29d8-457c-9f65-40fc4900b922@kernel.org Link: https://lore.kernel.org/20260512074924.27721-1-agarwal.vineet2006@gmail.com Signed-off-by: Vineet Agarwal <agarwal.vineet2006@gmail.com> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Vineet Agarwal <agarwal.vineet2006@gmail.com> Cc: Lorenzo Stoakes <ljs@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions