From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796322707; b=B+Ua3gmWYsUlzUBBJV7CwCSxTNsRGp8zuZCCiAITFniGZ80cUCXXogEf+JUJw8nBVVP/ mG0OiWetcZ7V02qJEwpvltB2YUXZf0kibCcZgN5rarf/gjniOa4INwfefB5PqcejczGKh DTGmisPlFPKYuNcLw0RrIGP3ckD1NUGLpuIWdM1G+uIhhritzZfYBecTDEkv2Pt8aYVHE gtHwmzJVfwO7AHfUJmFOdNXy+yotkR/yPbRUjQUYgKdZucC1JjmnWVvxCHjVJuqJFKQSj bIdQEG5D/jbkzeOTdDJgYqAxYNzlKwZs/3U9OFbQb1jje8bh9MYAYxXLI/XMasDYYQA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796322707; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=CnLdA0NBEqQ7292AFSnkCscacwv6ocUsX4l2xeRnoCE=; b=FgiSKUN84e1cKmgzGpJE7SHIm0g03S9VgCo0alDAb38mi5Hp1ocKL6usN0xezELyvOJe S9wKXyuBQpLccHvzpYdMToqY/6zSSK3XVQRcsvQ3gR8kHr+00ddeVlOh5hCLhE9ApNF3N Sxs4z6IXn4FaG/ZmgYzBvH4F+2HsP+d3D8Dajy3MlQdJk4MbzzRPdo/RhxMEoZNm1g8ik RXN+sFpvRlh4s7V9mgPe4UldezqBFPdH8Qf7akXXqNBk5AYc3SGZFiB0kJdWJn4T2ynNm gYPyG77AskDU2DxjjneQxCWjy8JgTY9WWzg+B/iNb3MnEs5TF/hEltYOl3gNKdjL01Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=YaVh4OMO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87EF3606A32C for ; Thu, 3 Dec 2026 18:31:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=YaVh4OMO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2770F1F000C1; Thu, 3 Dec 2026 18:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796322707; bh=CnLdA0NBEqQ7292AFSnkCscacwv6ocUsX4l2xeRnoCE=; h=Date:To:From:In-Reply-To:References:Subject; b=YaVh4OMOFWL8GXGaDOd/LT4mfmZxRv0cul7ofwtH8hJKt1bRtU7IMQkyxjiMZ1xcf +88EGlOwv7x2qEfP9sJbWct22DnoLr/XAPzU2iF45vIhzNJDHlViytRErGOGt4PBlf LszPMsAuQN0spUk0Lqhugy3eivEJ5oNb97ppg0rU= Date: Thu, 03 Dec 2026 10:31:46 -0800 To: mm-commits@vger.kernel.org,sj@kernel.org,shuah@kernel.org, arijit.desai@crusoe.ai,lienze@kylinos.cn,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261203153215.733163-2-sj@kernel.org> References: <20261203153215.733163-2-sj@kernel.org> Subject: + selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch added to mm-new branch Message-Id: <20261203183147.2770F1F000C1@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: selftests/damon/sysfs_memcg_path_leak: use common check_dependencies() has been added to the -mm mm-new branch. Its filename is selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Enze Li Subject: selftests/damon/sysfs_memcg_path_leak: use common check_dependencies() Date: Thu, 03 Dec 2026 07:32:13 -0800 Patch series "mm/damon: cleanup memcg_path_leak selftest and fix DAMON_RECLAIM age_ms". Cleanup sysfs_memcg_path_leak to consistently use check_dependencies() helper, via patch 1. Fixup DAMON_RECLAIM age_ms parameter to use age_ms DAMOS filter to properly work in the intervals auto-tuning mode. This is a batched reposting of separately posted and reviewed patches for being merged into the mm.git. Refer to changelog on each patch for changes that were made before this reposting. This patch (of 2): The sysfs_memcg_path_leak test is the only DAMON selftest shell script that does not source _common.sh. Instead it open-codes the root permission check that check_dependencies() already provides. Source _common.sh and call check_dependencies() to drop the duplicate. Link: https://lore.kernel.org/20261203153215.733163-1-sj@kernel.org Link: https://patch.msgid.link/20261203153215.733163-2-sj@kernel.org Signed-off-by: Enze Li Signed-off-by: SJ Park Signed-off-by: Andrew Morton Reviewed-by: SJ Park Cc: Shuah Khan Cc: Arijit Desai tools/testing/selftests/damon/sysfs_memcg_path_leak.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh~selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies +++ a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh @@ -1,14 +1,12 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +source _common.sh + # Kselftest framework requirement - SKIP code is 4. ksft_skip=4 -if [ $EUID -ne 0 ] -then - echo "Run as root" - exit $ksft_skip -fi +check_dependencies damon_sysfs="/sys/kernel/mm/damon/admin" if [ ! -d "$damon_sysfs" ] _ Patches currently in -mm which might be from lienze@kylinos.cn are docs-hugetlbpagerst-clarify-hugepages_total-in-hugetlbpagerst.patch mm-hugetlb-drop-unused-mm-parameter-from-unmap_ref_private.patch mm-hugetlb_cma-remove-two-unused-include-files.patch mm-damon-core-use-list_nextprev_entry-in-damon_nextprev_region.patch docs-mm-damon-design-replace-same-to-with-same-as.patch selftests-damon-sysfs_memcg_path_leak-use-common-check_dependencies.patch