* [LTP] [PATCH] misc/crash02: Update syscall blacklist
@ 2021-09-15 15:46 ` Martin Doucha
2021-09-16 13:04 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Martin Doucha @ 2021-09-15 15:46 UTC (permalink / raw)
To: ltp
- fork() and vfork() are not mutually exclusive, blacklist both
- read() will sleep indefinitely if the first argument is 0
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/misc/crash/crash02.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/testcases/misc/crash/crash02.c b/testcases/misc/crash/crash02.c
index 66f308b70..c68f580ef 100644
--- a/testcases/misc/crash/crash02.c
+++ b/testcases/misc/crash/crash02.c
@@ -464,7 +464,8 @@ int in_blacklist(int sysno)
*/
#if defined(__NR_vfork) && __NR_vfork
SYS_vfork,
-#elif defined(__NR_fork) && __NR_fork
+#endif
+#if defined(__NR_fork) && __NR_fork
SYS_fork,
#endif
#endif /* __ia64__ */
@@ -476,6 +477,13 @@ int in_blacklist(int sysno)
#endif
#if defined(__NR_pause) && __NR_pause
__NR_pause, /* int pause(void); - sleep indefinitely */
+#endif
+#if defined(__NR_read) && __NR_read
+ /*
+ * ssize_t read(int fd, void *buf, size_t count); - will sleep
+ * indefinitely if the first argument is 0
+ */
+ __NR_read,
#endif
-1
};
--
2.33.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] misc/crash02: Update syscall blacklist
@ 2021-09-16 13:04 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2021-09-16 13:04 UTC (permalink / raw)
To: Martin Doucha; +Cc: ltp
Hi!
Applied, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-09-16 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-15 15:46 [LTP] [PATCH] misc/crash02: Update syscall blacklist Martin Doucha
2021-09-15 15:46 ` Martin Doucha
2021-09-16 13:04 ` Cyril Hrubis
2021-09-16 13:04 ` Cyril Hrubis
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.