Received: by 10.213.65.68 with SMTP id h4csp1726965imn; Mon, 19 Mar 2018 11:33:47 -0700 (PDT) X-Google-Smtp-Source: AG47ELshZ1varj+yFC1Bv3c50cFQR6Yx2aN9lJOMjAKE/5AfJYzmJnmL4lKGCvfs78kSA+rUjAht X-Received: by 10.99.96.130 with SMTP id u124mr9942164pgb.252.1521484427526; Mon, 19 Mar 2018 11:33:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484427; cv=none; d=google.com; s=arc-20160816; b=PSNPapElaPc9VgEbhnkeAbAEqo7yWbNrxSs2/r9+y/+QMyLIxiE+QJ9jQtQR6dRIKe lEqdFf95Lrp1bpTmdf/dZPFDho3/bLjw5EY74GCzct2ulqkwUD+HmSOLeWfn0uliSJoj F9+NhHUWw6cnR2bAXjLYMWXDKAccisBnpaijkQaHtQlik0djyUx1/A+nkLU/T/up9Xft g3FclNKVfKUtWSHeRJsOxuYhcXI7HUezsz1lTFgjkpuvoyfS+rjyjnaZiGBdBF1RjTAK samr9D7LNfD/vP8QQW9AZYWchpKvvPg9Y+5eSzMkc8HfwVN/8J+yul6pBdSUZUu0PStJ kwzQ== 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=7CFB5wOMTBBLKa4eddm46vM+jaWky/yqT8qE9AAhnXo=; b=OBOIre80g5ojFLv50R2kz2ccWo2egFLRAFOYzh9vbMYtMZ4ZhOPbmDNwcf/I6eytZU E+IyZILlDl0CwTeefpgk15XBQVDgqZDHiNPWPQX68ZYE5kKhQNKpJGHK7wOc9suBTHoi YABjq2317BFXu7kd29vyqTyg83LBsPYnK0n0GI2zDXU9B+Qn8gbqKyk//p/bcwYlVD8+ AcW63wnN7rwaK8bQFJ+POYQpUn5us4yN0s0LSvsYMaBFl7zgoVnbkNyW7+vqW8YjoXTR MOVKw4e1GWy3yTpWk4IcaqJG+z/53VMB9G0WoYiNSVYhR15yDNo8H8shfHoxRxvBrFdU KHzg== 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 s8-v6si456246plk.550.2018.03.19.11.33.33; Mon, 19 Mar 2018 11:33:47 -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 S970204AbeCSScB (ORCPT + 99 others); Mon, 19 Mar 2018 14:32:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53712 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S970196AbeCSSby (ORCPT ); Mon, 19 Mar 2018 14:31:54 -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 ECB7D1292; Mon, 19 Mar 2018 18:31:53 +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.15 03/52] selftests/x86/entry_from_vm86: Exit with 1 if we fail Date: Mon, 19 Mar 2018 19:08:01 +0100 Message-Id: <20180319180735.210360321@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180734.976730813@linuxfoundation.org> References: <20180319180734.976730813@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.15-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 @@ -318,7 +318,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);