Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp633779pxx; Mon, 26 Oct 2020 17:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYryBhRfK9H5RZdkLU+2PM55ksAsGVaIqCUzFFQtZI+zWk5IsCcWFjmaZmqwf9haDh2W5/ X-Received: by 2002:aa7:d790:: with SMTP id s16mr10902736edq.63.1603758890454; Mon, 26 Oct 2020 17:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603758890; cv=none; d=google.com; s=arc-20160816; b=jFG2Jx5l9ukkG2zppwcANhBqoGj7AKIH+bDeOKpQQs7qqiDC6AGcnJUndiMXpNh1QO VES8tik8BLiX2wIejtDn2OSnd6Hj3KRQmzkDe0rvnjZvHuGcbQR/jnRNCPc+y5IPJ04N 6wuEqpkmwNNVf4qgQXQkorC7jj73GggtUMM1puJrPf47/IRhRlqIVRlH8fmRclDRRsF/ 50zYZGwIPWvk6bnRXYtty1ZxZjkAL+dBj6X1oJskZ1EphA5/8x1c6geMeVdywPcSG+re lpVQAeGQICq2t9ZolV2uIodyLnUdeuL/rZTV0jXBhLk1svQ0trfhOgUB+3NvqF5ZlMdh e/ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tEHJwp6kV3PVFEExMHk2bT1v1lOQ9VAs9lZpV+vnEg0=; b=I5zPW01FHixOk4OrOv2ArxBZCH3uZSrmxy1Xhv1WwgXbepI41UeKMa1Hcy/xBhEMZ5 /kqzZIsed5zNFblVlHZLzEUX4LqsqQa5bbvfDxgUashNDUaXvP6STp8aV6XhYawBv3DN C2QpIb9fVrjqn47wRuyBOaOZYr6jXOmuiFWQASjCcq2JbDRvj8MzINOVHjSeW6rqCpTx IJ/mGvXskiYmTkUc6r1rFxlvzVx25QeCF51oK4hcN2fetdLeAge03TA2XYd67HKK5m1v ozBZWCTAPz+Cf+LwcS0tw9fjb8/BM3gP7NeTD2OBn4J/8QVnoyYla2iByOytNohxf5GP VmDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1rnEMC28; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si4761558eds.561.2020.10.26.17.34.28; Mon, 26 Oct 2020 17:34:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1rnEMC28; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2441329AbgJ0AWh (ORCPT + 99 others); Mon, 26 Oct 2020 20:22:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:34364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410931AbgJZXzl (ORCPT ); Mon, 26 Oct 2020 19:55:41 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB45F2224A; Mon, 26 Oct 2020 23:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756541; bh=s7HO3kJ3IJ3+Hgbu3ZKKnFqr4ZVc22GMfUCDuqNgJzk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1rnEMC28ult+gEOKO84CQWIAkVo6wq1NKGuoMwZC+q6ss1ixHjRIjIZaCpGN+QMAu OpD0IWgKj0iKnxHxDhoGZvSY5Wv2KBVjyeYkcSp1TBxlelmxEHPJX0Ysgj3iygQXAb h+D86cxw/heeHveAASl4RAea+X5ahB1FeKryhbI4= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andy Lutomirski , Ingo Molnar , Sasha Levin , linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 5.4 20/80] selftests/x86/fsgsbase: Reap a forgotten child Date: Mon, 26 Oct 2020 19:54:16 -0400 Message-Id: <20201026235516.1025100-20-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Lutomirski [ Upstream commit ab2dd173330a3f07142e68cd65682205036cd00f ] The ptrace() test forgot to reap its child. Reap it. Signed-off-by: Andy Lutomirski Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/e7700a503f30e79ab35a63103938a19893dbeff2.1598461151.git.luto@kernel.org Signed-off-by: Sasha Levin --- tools/testing/selftests/x86/fsgsbase.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/x86/fsgsbase.c b/tools/testing/selftests/x86/fsgsbase.c index 15a329da59fa3..5f3aea210e018 100644 --- a/tools/testing/selftests/x86/fsgsbase.c +++ b/tools/testing/selftests/x86/fsgsbase.c @@ -499,6 +499,9 @@ static void test_ptrace_write_gsbase(void) END: ptrace(PTRACE_CONT, child, NULL, NULL); + wait(&status); + if (!WIFEXITED(status)) + printf("[WARN]\tChild didn't exit cleanly.\n"); } int main() -- 2.25.1