[LTP] [PATCH] syscalls/statmount07: drop "invalid buffer size" test
Jan Stancek
jstancek@redhat.com
Tue Oct 15 09:57:11 CEST 2024
The manpage doesn't say that 'smbuf' needs to be valid
for entire range of 'bufsize'.
This check relies on access_ok() check, which can be skipped
on some arches/configs, for example on s390x with
CONFIG_ALTERNATE_USER_ADDRESS_SPACE=y. Test then fails with:
statmount07.c:117: TFAIL: invalid buffer size succeeded
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
testcases/kernel/syscalls/statmount/statmount07.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/testcases/kernel/syscalls/statmount/statmount07.c b/testcases/kernel/syscalls/statmount/statmount07.c
index 0cc83429872f..334c287b791c 100644
--- a/testcases/kernel/syscalls/statmount/statmount07.c
+++ b/testcases/kernel/syscalls/statmount/statmount07.c
@@ -88,15 +88,6 @@ struct tcase {
&buff_size,
&st_mount
},
- {
- EFAULT,
- "invalid buffer size",
- &mnt_id,
- 0,
- 0,
- &buff_size_invalid,
- &st_mount
- },
{
EFAULT,
"invalid buffer pointer",
--
2.43.0
More information about the ltp
mailing list