public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Martin Doucha <mdoucha@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] Blacklist vhangup() syscall in crash02 test
Date: Mon, 27 Jan 2020 10:39:35 +0100	[thread overview]
Message-ID: <20200127093935.8223-1-mdoucha@suse.cz> (raw)

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.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/misc/crash/crash02.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testcases/misc/crash/crash02.c b/testcases/misc/crash/crash02.c
index cddedc102..f69edf7e1 100644
--- a/testcases/misc/crash/crash02.c
+++ b/testcases/misc/crash/crash02.c
@@ -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
 	};
-- 
2.24.1


             reply	other threads:[~2020-01-27  9:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-27  9:39 Martin Doucha [this message]
2020-01-28 14:04 ` [LTP] [PATCH] Blacklist vhangup() syscall in crash02 test Cyril Hrubis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200127093935.8223-1-mdoucha@suse.cz \
    --to=mdoucha@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox