From: Jinseok Kim <always.starving0@gmail.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v1 1/2] fsx-linux: Fix reference buffer corruption in op_map_read()
Date: Tue, 18 Aug 2026 00:40:44 +0900 [thread overview]
Message-ID: <20260817154048.3854-1-always.starving0@gmail.com> (raw)
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
next reply other threads:[~2026-08-17 15:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 15:40 Jinseok Kim [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260817154048.3854-1-always.starving0@gmail.com \
--to=always.starving0@gmail.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.