From patchwork Mon Jan 27 09:39:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Doucha X-Patchwork-Id: 1229640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 485l8S0QVSz9sQp for ; Mon, 27 Jan 2020 20:39:50 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 4AEC43C23BB for ; Mon, 27 Jan 2020 10:39:47 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) by picard.linux.it (Postfix) with ESMTP id EFE9C3C229C for ; Mon, 27 Jan 2020 10:39:43 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 502CC1400972 for ; Mon, 27 Jan 2020 10:39:43 +0100 (CET) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5991BAD39 for ; Mon, 27 Jan 2020 09:39:42 +0000 (UTC) From: Martin Doucha To: ltp@lists.linux.it Date: Mon, 27 Jan 2020 10:39:35 +0100 Message-Id: <20200127093935.8223-1-mdoucha@suse.cz> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH] Blacklist vhangup() syscall in crash02 test X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" 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 --- 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 };