public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/statmount07: drop "invalid buffer size" test
@ 2024-10-15  7:57 Jan Stancek
  2024-10-15  9:50 ` Cyril Hrubis
  2024-10-15 11:48 ` [LTP] [PATCH v2] syscalls/statmount07: change " Jan Stancek
  0 siblings, 2 replies; 13+ messages in thread
From: Jan Stancek @ 2024-10-15  7:57 UTC (permalink / raw)
  To: ltp, andrea.cervesato

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


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

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

end of thread, other threads:[~2024-10-18 10:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-15  7:57 [LTP] [PATCH] syscalls/statmount07: drop "invalid buffer size" test Jan Stancek
2024-10-15  9:50 ` Cyril Hrubis
2024-10-15 10:10   ` Jan Stancek
2024-10-15 10:59     ` Cyril Hrubis
2024-10-15 11:51       ` Jan Stancek
2024-10-15 11:48 ` [LTP] [PATCH v2] syscalls/statmount07: change " Jan Stancek
2024-10-15 12:07   ` Cyril Hrubis
2024-10-15 12:41     ` Jan Stancek
2024-10-15 13:43       ` Cyril Hrubis
2024-10-15 13:54         ` Jan Stancek
2024-10-18 10:23           ` Petr Vorel
2024-10-18 10:25             ` Jan Stancek
2024-10-15 13:45   ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox