Message ID | 20231030-selftest-v1-1-743df68bb996@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EC23C4332F for <linux-mm@archiver.kernel.org>; Mon, 30 Oct 2023 08:54:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2C4936B0196; Mon, 30 Oct 2023 04:54:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 24D876B0198; Mon, 30 Oct 2023 04:54:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EF816B0199; Mon, 30 Oct 2023 04:54:54 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id EE5E56B0196 for <linux-mm@kvack.org>; Mon, 30 Oct 2023 04:54:53 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id C38EC16053C for <linux-mm@kvack.org>; Mon, 30 Oct 2023 08:54:53 +0000 (UTC) X-FDA: 81401517666.08.0F9849A Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf25.hostedemail.com (Postfix) with ESMTP id 5D8AEA0004 for <linux-mm@kvack.org>; Mon, 30 Oct 2023 08:54:50 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=linux.dev header.s=korg header.b=cn+rmzhl; spf=pass (imf25.hostedemail.com: domain of itaru.kitayama@linux.dev designates 145.40.73.55 as permitted sender) smtp.mailfrom=itaru.kitayama@linux.dev; dmarc=pass (policy=none) header.from=linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698656092; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=BJRzdFx9wrWlCa+OkPx4gynROJoS7IAt0rXCos2lNNc=; b=sWaMmKnKo+4BRIrgx3A+FvCT/9UYXkbNDKvL0IG/u4LMaQsObsKJAmRSZI8QbhUwusI1gm cp0PZ+TQGou6vTOkEhlLqroEMt0pM3E0dTDGa7lujYHyZPKBf3DXWR4UgtGUPq9xZ4jld6 g6eoTbbaejhI1fYbaNBDjnuVv99zll0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698656092; a=rsa-sha256; cv=none; b=wuU/ptFl7Yy7kDW2qX12a6rMxpSXCbY86JO2PltOEToOItNJKiB9au8pRdnYQO0N25OCcV xopYurkv2C6e4y5J7oG59A01+mnurpHzR08sPW1bXwgqgwgdXoFoHW5XTgM/dz4O+xPPpt GwOF2mHLBfYsx6mN4hrg0ZobRMevd3I= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=linux.dev header.s=korg header.b=cn+rmzhl; spf=pass (imf25.hostedemail.com: domain of itaru.kitayama@linux.dev designates 145.40.73.55 as permitted sender) smtp.mailfrom=itaru.kitayama@linux.dev; dmarc=pass (policy=none) header.from=linux.dev Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0AD4FCE02C6; Mon, 30 Oct 2023 08:54:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 3F9DEC433C7; Mon, 30 Oct 2023 08:54:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.dev; s=korg; t=1698656086; bh=Y6RkweAiaJcVTeeS6WX5S7GACsI1tkgdNxGrycq560I=; h=From:Date:Subject:To:Cc:From; b=cn+rmzhle65x84iyJBGFRYCM2SAQk6RZcrLyMpA0vG4eQkzCnT94mAodYULDbIJHP kTk1MQvNbEo7Y+DyDz3wOOafQ8FCAN5+0dg0GMXigbyOxhBNoXvfNcWPyjEW0bL88P Crlsmg8Y44fGHA6XivePoPKWiIhN/LW3EyfSEkoU= Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15061C4332F; Mon, 30 Oct 2023 08:54:46 +0000 (UTC) From: Itaru Kitayama <itaru.kitayama@linux.dev> Date: Mon, 30 Oct 2023 17:54:45 +0900 Subject: [PATCH] Lower the ptrace permissions so that the memfd_secrect test program runs without an issue. MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231030-selftest-v1-1-743df68bb996@linux.dev> X-B4-Tracking: v=1; b=H4sIAFRvP2UC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2NDA2MD3eLUnLSS1OIS3WRz0yTDJBMzAwtDcyWg8oKi1LTMCrBR0bG1tQB ajs+YWgAAAA== To: Andrew Morton <akpm@linux-foundation.org>, Shuah Khan <shuah@kernel.org> Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Itaru Kitayama <itaru.kitayama@linux.dev> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1698656085; l=1171; i=itaru.kitayama@linux.dev; s=20231030; h=from:subject:message-id; bh=0yXLvAw3hkhizEEQX735jRdYWkFus1UusgKEaYjOuWM=; b=89ytidZI13PJru53wdET0bYxdvD3UHcUSfWSvoeULHl5lYVnnUAZXTBUz7i3iDUa7HYr/SDzo 9SsAc+E87oFCrEQEpJS+9zCDSPF8qhi3AinWq3wst4TTeAt6gA+9RPt X-Developer-Key: i=itaru.kitayama@linux.dev; a=ed25519; pk=4yYhz2CbKL7F2qR5IzP7QvqM9B6c+dfWJRHWez+rMDw= X-Endpoint-Received: by B4 Relay for itaru.kitayama@linux.dev/20231030 with auth_id=92 X-Rspamd-Queue-Id: 5D8AEA0004 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: en98opbbp3rg6fwenztdsuxofy4mjzh5 X-HE-Tag: 1698656090-957046 X-HE-Meta: U2FsdGVkX1/svP7luRkmOo8M6dCLft9juiQWWVbGudI97aEJoRngsfm9P0b5S2bU3VboOaHx0APiPeOuozBsx9GGTZlusGTA9KX4nK/+8KovtukWLvF3IkvZq+gPOXJ+Txxk1bmuzUTpjJ5ppkat7i7XJXUjBa0MJwV2HUOQ8LqGNiLGpXJ1qCxLfxTgLL9REe0Xz10Dwf6Erh+mPmQROCd4YRf/5Yyv4a/8LRxm4Tk5I2wCL7CKkGB6k0oZmaO8F9d6vWpNyQqT9C1uaAjq3nndA+7lV2FPests9qn5VdNnUm43xr2DjpQB1/kZ+FGbalJajABJaQGwUFQGCSroT7m8WwqwuB6OtkDUGRURFtdi5WTQTF95dPW4nI4UIIhxziFcj9l5yqtKCU/z5vZuU5vqteh//rTwgi+XgcbaB9Yekyh0Lhsaae8NhGhc7GgFePNw6aXLmFAENOuiShbAghO0MR6Xt3pbeWfqAOucZgNN+AglJHuc82VkkLU3gnWQddyBaTheLhCengsY90+6JGOnNiPwstzGhuYYZGXde67qpGuRa4uT5UnipRD43iCcClIqbe8z44RkvDX+EFKi7Pk8Dgq67+S88EuAPQRa7M6JYp2zLBdiyHi1lCdwhkj8n3Y1J0xctS0JZ3Q7cQYTX7QsrmikbrTIbWB2DZmczKpO1lLrwHS0bjV4hkj2bfsYhyzCkO3KwdMkFYy1HymAkbbduVd2xF5oZc1JdXnGaEkhJ6yLWL6Q+0QahC/veCl1r4fHP8hhEPQ1Xk8+mPGTrbY27WVThyF2X4bL6AYLSFCe5K4xvVm0gp3Czp5P3kzZNiS2aZWMYw9tdCcNiY/Ocf4TC1gUya6w/e++wg58FDPLkMYDIE5JUg3PHzgJ4yXpbHTsFmGRkVyfMDsRV6UqwdxWDZ6YpcPpnxRhRVKlZS5N7vxhBUY3gIHs8ZIjkcbn1LhGp04yLcxJm7H4B+d 0ToajX6w rsKOKmClt21Y2d232VPFCOZbmpcxl5buaEKfiFtGfRyA7z8e+pXquJEQkPlenkAmyJ4eE8+gJ0D8aapBG+X6qFBf076Z3qA4FTD4S3rjarXOPxmq1OkL+gNWLT5LV1fE33Swq+qQioYT8VBhc8alEHyLivWK6y4gbrVrLSUHFwJYLv5/XhEuVgh0EzQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Lower the ptrace permissions so that the memfd_secrect test program runs without an issue.
|
expand
|
diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 3e2bc818d566..7d31718ce834 100755 --- a/tools/testing/selftests/mm/run_vmtests.sh +++ b/tools/testing/selftests/mm/run_vmtests.sh @@ -303,6 +303,7 @@ CATEGORY="hmm" run_test bash ./test_hmm.sh smoke # MADV_POPULATE_READ and MADV_POPULATE_WRITE tests CATEGORY="madv_populate" run_test ./madv_populate +echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope CATEGORY="memfd_secret" run_test ./memfd_secret # KSM KSM_MERGE_TIME_HUGE_PAGES test with size of 100
--- On Ubuntu and probably other distros, ptrace permissions are tightend a bit by default; i.e., /proc/sys/kernel/yama/ptrace_score is set to 1. This cases memfd_secret's ptrace attach test fails with a permission error. Set it to 0 piror to running the program. Signed-off-by: Itaru Kitayama <itaru.kitayama@linux.dev> --- tools/testing/selftests/mm/run_vmtests.sh | 1 + 1 file changed, 1 insertion(+) --- base-commit: ffc253263a1375a65fa6c9f62a893e9767fbebfa change-id: 20231030-selftest-c75b1b460817 Best regards,