All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH v1 1/2] fsx-linux: Fix reference buffer corruption in op_map_read()
@ 2026-08-17 15:40 Jinseok Kim
  2026-08-17 15:40 ` [LTP] [PATCH v1 2/2] fsx-linux: Fix op_max_size handling in op_file_position() Jinseok Kim
  2026-08-17 16:29 ` [LTP] fsx-linux: Fix reference buffer corruption in op_map_read() linuxtestproject.agent
  0 siblings, 2 replies; 3+ messages in thread
From: Jinseok Kim @ 2026-08-17 15:40 UTC (permalink / raw)
  To: ltp

op_map_read() copied mmapped memory to file_buff before comparison,
overwriting the reference data. Drop the invalid memcpy().

Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
---
 testcases/kernel/fs/fsx-linux/fsx-linux.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/testcases/kernel/fs/fsx-linux/fsx-linux.c b/testcases/kernel/fs/fsx-linux/fsx-linux.c
index 2e0f17a5e..21390c58c 100644
--- a/testcases/kernel/fs/fsx-linux/fsx-linux.c
+++ b/testcases/kernel/fs/fsx-linux/fsx-linux.c
@@ -219,8 +219,6 @@ static int op_map_read(void)
 		file_desc,
 		(off_t)pos.offset);

-	memcpy(file_buff + pos.offset, addr, pos.size);
-
 	int ret = memory_compare(
 		addr,
 		file_buff + pos.offset,
--
2.43.0

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-17 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 15:40 [LTP] [PATCH v1 1/2] fsx-linux: Fix reference buffer corruption in op_map_read() Jinseok Kim
2026-08-17 15:40 ` [LTP] [PATCH v1 2/2] fsx-linux: Fix op_max_size handling in op_file_position() Jinseok Kim
2026-08-17 16:29 ` [LTP] fsx-linux: Fix reference buffer corruption in op_map_read() linuxtestproject.agent

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.