All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] sendfile09: skip on native 32-bit kernels
@ 2026-06-23 16:31 Avinesh Kumar via ltp
  2026-06-23 17:56 ` [LTP] " linuxtestproject.agent
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Avinesh Kumar via ltp @ 2026-06-23 16:31 UTC (permalink / raw)
  To: ltp

this test is already documented as 64-bit only, but
.skip_in_compat only covers 32-bit-on-64-bit. On a native 32-bit
kernel (e.g. i586) it still runs and setup's write() past 2GB fails
with EFBIG (TBROK).

sendfile09.c:49: TBROK: write(3,0x4a8011,1) failed: EFBIG (27)

TCONF on 32-bit kernels via tst_kernel_bits().

Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 testcases/kernel/syscalls/sendfile/sendfile09.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/kernel/syscalls/sendfile/sendfile09.c b/testcases/kernel/syscalls/sendfile/sendfile09.c
index 82feaeba0..50b9c1ca7 100644
--- a/testcases/kernel/syscalls/sendfile/sendfile09.c
+++ b/testcases/kernel/syscalls/sendfile/sendfile09.c
@@ -40,6 +40,9 @@ static void setup(void)
 {
 	int i, fd;
 
+	if (tst_kernel_bits() == 32)
+		tst_brk(TCONF, "Test is only supported on 64-bit kernels");
+
 	if (!tst_fs_has_free(".", 5, TST_GB))
 		tst_brk(TCONF, "Test on large file needs 5G free space");
 
-- 
2.54.0


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

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

end of thread, other threads:[~2026-06-24  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 16:31 [LTP] [PATCH] sendfile09: skip on native 32-bit kernels Avinesh Kumar via ltp
2026-06-23 17:56 ` [LTP] " linuxtestproject.agent
2026-06-23 19:46 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
2026-06-23 20:05   ` [LTP] " linuxtestproject.agent
2026-06-24  8:32 ` [LTP] [PATCH] " Andrea Cervesato via ltp
2026-06-24  8:41 ` Andrea Cervesato via ltp

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.