* [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
2026-06-23 19:46 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
0 siblings, 2 replies; 4+ 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] 4+ messages in thread
* Re: [LTP] sendfile09: skip on native 32-bit kernels
2026-06-23 16:31 [LTP] [PATCH] sendfile09: skip on native 32-bit kernels Avinesh Kumar via ltp
@ 2026-06-23 17:56 ` linuxtestproject.agent
2026-06-23 19:46 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
1 sibling, 0 replies; 4+ messages in thread
From: linuxtestproject.agent @ 2026-06-23 17:56 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
On Tue, 23 Jun 2026, Avinesh Kumar wrote:
> sendfile09: skip on native 32-bit kernels
Verdict - Reviewed
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LTP] [PATCH v2] sendfile09: skip on native 32-bit kernels
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 ` Avinesh Kumar via ltp
2026-06-23 20:05 ` [LTP] " linuxtestproject.agent
1 sibling, 1 reply; 4+ messages in thread
From: Avinesh Kumar via ltp @ 2026-06-23 19:46 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)
switch to ".needs_abi_bits = 64" to cover both scenarios.
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
Changes in v2:
- Use .needs_abi_bits field
---
testcases/kernel/syscalls/sendfile/sendfile09.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/sendfile/sendfile09.c b/testcases/kernel/syscalls/sendfile/sendfile09.c
index 82feaeba0..7e030db4a 100644
--- a/testcases/kernel/syscalls/sendfile/sendfile09.c
+++ b/testcases/kernel/syscalls/sendfile/sendfile09.c
@@ -92,7 +92,7 @@ static struct tst_test test = {
.test = run,
.tcnt = ARRAY_SIZE(tc),
.timeout = 120,
- .skip_in_compat = 1,
+ .needs_abi_bits = 64,
.tags = (const struct tst_tag[]) {
{"linux-git", "5d73320a96fcc"},
{}
--
2.54.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] sendfile09: skip on native 32-bit kernels
2026-06-23 19:46 ` [LTP] [PATCH v2] " Avinesh Kumar via ltp
@ 2026-06-23 20:05 ` linuxtestproject.agent
0 siblings, 0 replies; 4+ messages in thread
From: linuxtestproject.agent @ 2026-06-23 20:05 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
On Tue, 23 Jun 2026 21:46:09 +0200, Avinesh Kumar wrote:
> sendfile09: skip on native 32-bit kernels
Verdict - Reviewed
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-23 20:06 UTC | newest]
Thread overview: 4+ 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
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.