Skip to contentSkip to conversation

Blacklist vhangup() syscall in crash02 test

PATCH New Martin Doucha 2 participants 2 messages Jan 27, 2020 – Jan 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Blacklist vhangup() syscall in crash02 test

The vhangup() syscall logs the current terminal out which some external testing tools interpret as a failure. Blacklist the syscall in crash02 test since there's no combination of arguments that could cause a kernel crash.

---
 testcases/misc/crash/crash02.c | 3 +++
 1 file changed, 3 insertions(+)
testcases/misc/crash/crash02.c +3 -0
index cddedc102..f69edf7e1 100644
@@ -470,6 +470,9 @@ int in_blacklist(int sysno)
 #endif /* __ia64__ */
 #if defined(__NR_clone) && __NR_clone
 		SYS_clone,
+#endif
+#if defined(__NR_vhangup) && __NR_vhangup
+		__NR_vhangup,	/* int vhangup(void); - terminal logout */
 #endif
 		-1
 	};
Signature · 1 line
2.24.1