Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp319276rwd; Mon, 12 Jun 2023 14:09:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6cS691suSiW+Ws/FTpzjINgN4ZDpNIW3620rJb+6nR8t2udVeReTgRIj0oiEr9G9jZs+NX X-Received: by 2002:aa7:d312:0:b0:514:9552:4bf6 with SMTP id p18-20020aa7d312000000b0051495524bf6mr6222334edq.3.1686604166745; Mon, 12 Jun 2023 14:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686604166; cv=none; d=google.com; s=arc-20160816; b=auLwX7gL79uzBL3B4XvUNGgmOYxxKEYZ6OhjThn5Hl/1IKPddbfQP6E8pQ3SNqh/6+ szR18yX0BT7Y3IsW+wD5hPXr2zKeGKjnQ4K6cOmRmKD12h/VC2OrV4YL36T6SF+D2z4m OvGNO+qJbqJ4+kt11lAzQmnzLAfRWcx7xpi86Hx7dpQ56h8m/rNT8cJGYRQeOg8UAsbM 7Q9UtKULa8ZcRFOzQ6L/RrtrJmsZcL4cuJuKPezE2v+Lndh16fmSjuOM+ab3nwJYGr9e OpjKmOMTFAeeFWrk/DThV9cVyIfxOOau2j7A1GQCU083797q/OeNPZZpyfe8kGYLlzSN 0zvw== 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=m8jaKRUw7wPV0JcA1JrchxHPBPmx1j+oSv0/+XLxllI=; b=jQWga18RKZHSgIF0A7lDBVMssfTM954/ZB9RTR2iTsk/5pHGO9W2RuT+xA6GnWDeNM r+Yt8r4MzpqIuxK43oVYF5I4WwAD64nDzOFeQVGkYNTOdHrl/e4X2ZY7KNI7xRNgb5QB n31LGsqsoxf+VYNWuRX/23pt66XNgXCeL7wMbEUpv3tPTPgRRKrOtmOy0LR+UzgFlu8T /X/H3toMJEbU4fTQnqtNm/yn9096sWQgyaD+HOxmPmM/TC+aEH3RMkwVwM5lr83LoLM1 3G7tKRFnIp9dIM4CUvf3kAVVTe8z1dTZdMsv1wZ59mak1ckWVjucp1IwCV/zxOgjc9og 9W3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jqPbOGEx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020a056402070700b0051498bf2b48si2155216edx.273.2023.06.12.14.09.01; Mon, 12 Jun 2023 14:09:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jqPbOGEx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235651AbjFLUvv (ORCPT + 99 others); Mon, 12 Jun 2023 16:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238368AbjFLUtu (ORCPT ); Mon, 12 Jun 2023 16:49:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 500482106 for ; Mon, 12 Jun 2023 13:47:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1E5E262BED for ; Mon, 12 Jun 2023 20:45:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E690C43323; Mon, 12 Jun 2023 20:45:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686602717; bh=YSnDd8eIZWAVVkXrAR2iFLMVAjImLZBexFy3GV2smU4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jqPbOGExUPnvOck2RN1WO9wxecIiO7nVEipYAmWrLM6powvhfty5dd2arfDL8o8MK +rnU6nV/FKY19zKCzDsWkSXE6UYVNpsn6S7qpgOF8tmC2zYLG1iainbN3FyMQm2+GQ swvICHPmRQp/6/PWmXyRORqLAO/z97YwdosPE6+0ippOcXn3wfmL/2RniVpZurM0Yk GUzVjbI/A5s6waLiD7OXvNYdy8Fdh9dSRtJSyaqU5Q7pVkFfB03vmEETUyG8GzYxEK 3pC5b7u8lReTcOx2+b0rqrvkoFUDwip9ZwcxnDGnC9eWQYQq8O5dvmejxGTmVW5X6I meIOnIg89Zmrw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0423DCE3A7E; Mon, 12 Jun 2023 13:45:16 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH v2 nolibc 35/53] selftests/nolibc: prevent coredumps during test execution Date: Mon, 12 Jun 2023 13:44:56 -0700 Message-Id: <20230612204514.292087-35-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> References: <8b757cc0-3719-4e63-a755-9710384137bc@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Weißschuh The child process forked during stackprotector tests intentionally gets killed with SIGABRT. By default this will trigger writing a coredump. The writing of the coredump can spam the systems coredump machinery and take some time. Timings for the full run of nolibc-test: Before: 200ms After: 20ms This is on a desktop x86 system with systemd-coredumpd enabled. Signed-off-by: Thomas Weißschuh Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/testing/selftests/nolibc/nolibc-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 6db788603a34..84a1b02eb6f9 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -831,6 +831,7 @@ static int run_protection(int min, int max) close(STDOUT_FILENO); close(STDERR_FILENO); + prctl(PR_SET_DUMPABLE, 0, 0, 0, 0); smash_stack(); return 1; -- 2.40.1