Skip to contentSkip to conversation

crash02: Blacklist the pause() syscall

PATCH New Martin Doucha 2 participants 2 messages May 21, 2020 – May 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crash02: Blacklist the pause() syscall

pause() causes the calling process/thread to sleep indefinitely until waken up by a signal. This will cause test timeouts.

---
 testcases/misc/crash/crash02.c | 3 +++
 1 file changed, 3 insertions(+)
testcases/misc/crash/crash02.c +3 -0
index f69edf7e1..e46c2aa66 100644
@@ -473,6 +473,9 @@ int in_blacklist(int sysno)
 #endif
 #if defined(__NR_vhangup) && __NR_vhangup
 		__NR_vhangup,	/* int vhangup(void); - terminal logout */
+#endif
+#if defined(__NR_pause) && __NR_pause
+		__NR_pause,	/* int pause(void); - sleep indefinitely */
 #endif
 		-1
 	};
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 crash02: Blacklist the pause() syscall

Hi Martin,

Quoted 2 lines

pause() causes the calling process/thread to sleep indefinitely until waken up by a signal. This will cause test timeouts.

Thanks, pushed!

Kind regards,
Petr