Received: by 10.213.65.68 with SMTP id h4csp36391imn; Mon, 19 Mar 2018 18:43:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELsuISDAvOW91uAwqiZxjuIil0G3pe43BjMDJLxTizxBzdX8ijqiG0gVSvk73BBQrS0nQHzd X-Received: by 2002:a17:902:9a05:: with SMTP id v5-v6mr14499939plp.69.1521510218613; Mon, 19 Mar 2018 18:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510218; cv=none; d=google.com; s=arc-20160816; b=h8mehRWaL2X4SvH+Bbivi0BuOVaYFeqL0RhKiyvR2lZfvgdw+EKR4n3lbc6bKpj+lD c7np6HeJcby1dgihV1jLe2Z7xvlVa+UnjrWYfMBO95qnSbIb4/kh77ndwOYfZMegBZoh fmYl6YVC+E1So/vGLr9hEv4CAOQpIvaajlfRjjcbNF2nESWG+ps9tdXsPo3b9/bsrPY0 0q93Un1b6uPxwdVB5B9JxKUViAzl+UqX/L/L7jQJxE1xnLturHrpFSe6EWcdNofLDH2j PgbVbpN7gLR4EmEWqyAKI+JKqr0wwfmp6k51eW8E+6vxnz6X07qxH4oje37VNJjpaU6x AO7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=RqH42LyGjO/+kmMY38nDdNRb9bWKIFlT8oFmftX+ZMU=; b=wAwNUuSkDCknLWPEPjx5gTrj+hi+SRn2P31jxaL3l88aciTMA/PIlHRyMsfbfWjhR+ SEbtxLl9H6YREwaKnhCnGyAVxSceRCxlaQICyFUvUilUgGkFRarmgVxR1WORopcbhebF M/lAsTOsF+k0IFeH15TjOTNY8HWRJuyBTPRU7u5MBh+VcuIw/PiNjrB4qf8xUaYWwymx IkL3Wz4H7/S8PDKJdDdYNKs56Cp2AmrChSs3wUlQYUYFf6qurgmwARJoPuT7lq//Y50L gR4Vg57i+9FJaLeUa2pq4lDIlVcpSrf3gdmGzMD94Bh7/fSSjxrZBNqbmrVJa58q2anD 5psA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j25si394163pgn.592.2018.03.19.18.43.24; Mon, 19 Mar 2018 18:43:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969157AbeCSSRe (ORCPT + 99 others); Mon, 19 Mar 2018 14:17:34 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45542 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969126AbeCSSR1 (ORCPT ); Mon, 19 Mar 2018 14:17:27 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6070E1229; Mon, 19 Mar 2018 18:17:26 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Stas Sergeev , Thomas Gleixner , bartoldeman@gmail.com, Ingo Molnar Subject: [PATCH 4.4 110/134] selftests/x86/entry_from_vm86: Exit with 1 if we fail Date: Mon, 19 Mar 2018 19:06:33 +0100 Message-Id: <20180319171905.147688634@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Lutomirski commit 327d53d005ca47b10eae940616ed11c569f75a9b upstream. Fix a logic error that caused the test to exit with 0 even if test cases failed. Signed-off-by: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Stas Sergeev Cc: Thomas Gleixner Cc: bartoldeman@gmail.com Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/b1cc37144038958a469c8f70a5f47a6a5638636a.1521003603.git.luto@kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/x86/entry_from_vm86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/x86/entry_from_vm86.c +++ b/tools/testing/selftests/x86/entry_from_vm86.c @@ -231,7 +231,7 @@ int main(void) clearhandler(SIGSEGV); /* Make sure nothing explodes if we fork. */ - if (fork() > 0) + if (fork() == 0) return 0; return (nerrs == 0 ? 0 : 1);