[LTP] [PATCH v2] sendfile09: skip on native 32-bit kernels
Avinesh Kumar
avinesh.kumar@suse.com
Tue Jun 23 21:46:09 CEST 2026
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
More information about the ltp
mailing list