Received: by 10.213.65.68 with SMTP id h4csp1739664imn; Mon, 19 Mar 2018 11:57:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELvdfQeZkn6a4WdbATGGIkjapni5VbYNs0wk61iyqkaSv+QPvHBu9EiW+2o76BQXdAONGxkN X-Received: by 10.98.89.23 with SMTP id n23mr2184365pfb.211.1521485872211; Mon, 19 Mar 2018 11:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521485872; cv=none; d=google.com; s=arc-20160816; b=PUOKkuia6VCKZsm8rulRum6TlyPRIh+ULKgNxrOmbxITShA6GIEukkny+Dwoz6nd3A FlM8SlMsSQIVuZ0O04PR4H8Z0d9BbfT8IB5vEO9ge5QI57SzrHtZ5TYhqCGDqAjT+eqd 4FULlZnN23qvg7XnC8ZlCfgZwIK6c1XVqAnY/sSvIfQdY0JOYqK3t+7OkNm1GFGKCGeQ p6z3Q1P/+CrZ9/ceFaxhQRQNQ9O/qbTstGOtru00xKe9kULuPcdTRF2hB5WwWmrDLF8P SPZKjYvXdnHUOVBuzZlumP4T/LyEmHx4/nUp6/3vAzZMPQipkDMUj9Ra4x8PcRm+iZkN XHKg== 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=kDxqEYrGHnwGPPwUBBkJedebHBIPio8US+5yDKuATUg=; b=WxMWKbxLrKC3T5zmbYI3vXUEPZiXNFFRUdbHfCltmR0XE+VS6zXwR3+zQwJ762X/rg wyNdE6YBx0z0E0xx5BLFEN/k8sugA3vIzwuJD8nsea3C43VVXFP9CPszMkFAyGvmGuNb JEaRpqtHRh8jv/WwnA9u9pmSo+dImY1DjuBCMEwLocZbF2g/lulGHsZLsrqYG7h7uTxd mx64KDbzI7FqO1YGz66x0FiIZBKPPUQOLlTTmpAFX7zYSj9TfH4GonPKbN0rY/gToICo utnNtGoP+Odctis44tX24OPJ9giAX33Ee47rSLHBmJk/+A8/dWNqFiwbJyVeyb14hiIC yhBQ== 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 d187si382204pfc.348.2018.03.19.11.57.37; Mon, 19 Mar 2018 11:57:52 -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 S1031903AbeCSS37 (ORCPT + 99 others); Mon, 19 Mar 2018 14:29:59 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52890 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031874AbeCSS3r (ORCPT ); Mon, 19 Mar 2018 14:29:47 -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 175A211BE; Mon, 19 Mar 2018 18:29:46 +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.14 03/41] selftests/x86/entry_from_vm86: Exit with 1 if we fail Date: Mon, 19 Mar 2018 19:08:03 +0100 Message-Id: <20180319180732.419900100@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180732.195217948@linuxfoundation.org> References: <20180319180732.195217948@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.14-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);