Received: by 10.213.65.68 with SMTP id h4csp1750449imn; Mon, 19 Mar 2018 12:13:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELtLlwiSGpe5mdk9v5gfGPaeK3JcEAP01Hmk4Px18/FUi4TxX66lJSiSRhbCf5cajrsZUp4f X-Received: by 10.101.81.133 with SMTP id h5mr3959497pgq.83.1521486839592; Mon, 19 Mar 2018 12:13:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521486839; cv=none; d=google.com; s=arc-20160816; b=v9psOPDCVtI0hycJlNmQlKuFXKCBpVL/d4WfVhd7swJNt0pcpHqvIAfI+v3yHnSS32 TuHnwulCMaMtg4+g3IIDzSpq/G767xqBW9SPlN9/IjllfnvvCP+IgIJrs3n3vU5Hk3Fr eSr2YsHDDXW+6X7M2k9GLXqqSWQTGn8c1z/QugCiNP1xA9XGx9SKzjbf/ThALJsGlpyH CJW7b8Y0xPEZsWQvD4R0Rhh+F+CWsvi4MERnSG6rJQ8Rq22fBGG67dz6h3UmwHcP4u1N T71bljb4MQrSqqN8jAYM20Ixdu9NmpAMM1xmYRKC5pOjjkA+ijl7a8RbNCKtyFKVewj2 a8wA== 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=oWozJH3EZidN1vz80HTcu5JOPiCzQ5n2uSq9Dn2T9sg=; b=lcHVy0bPNnLZE6rOyMCMskqg3sAsZ6Osu47K4woV4PIMfOPmowDdKPhSXZ1/z09uPe YqDOaV7abVN1Gu4xIZ41sGF1icdt1XlZb55tim49nUetrvR6Hlu3fjfeBssVjZdXbgQr Aoqb0sffaYZrhgs7iSAfzXmN0J1nZsdEbbbZ6D1iq1BRafGFHJJ20eDs8q/9xcFhHJyf h9GN9oeSb443GEwazoSzkIX08JcRLTxD2a7z89PgFzQRSpp69xkg/MZUkhjIELVqa/CV Hs1QTaAy3IFdy5L9vlzB4mqsSuMu7QIUpsLP/vt5S3J9pkgc9wiq+nUrZKtEXxMh8nPu W5VQ== 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 m10si365424pgt.292.2018.03.19.12.13.45; Mon, 19 Mar 2018 12:13:59 -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 S970135AbeCSTLJ (ORCPT + 99 others); Mon, 19 Mar 2018 15:11:09 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51286 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970029AbeCSS1d (ORCPT ); Mon, 19 Mar 2018 14:27:33 -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 6C954127C; Mon, 19 Mar 2018 18:27:32 +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.9 213/241] selftests/x86/entry_from_vm86: Exit with 1 if we fail Date: Mon, 19 Mar 2018 19:07:58 +0100 Message-Id: <20180319180759.990889173@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@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.9-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);