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=1796382613; b=E+gwSN7vdjOx0WtPcpKAgH7EbPCIIs+irM2F+W/6UjlCayOcD0mpq9pVZNJcZQiqJP+0 VXZxVV8iIPuzvugH5UVdoVom5NdyATyFXN9IybpKzg5Mys7O/QXeVmKyaXNLBlaLsC7Is cwpvaPUQpkkU4ouZiUa6+eDdUex5MHFK08pdqzYTaLUFv/doUy4DM70mOSXmBt04l/wmK bjvKlMYEYUXFdqTiuNvJxyuPpFHSIV2pO969WAO/WWISBFrU3Lti3ExIvGfASmGVCFcBa 4DbeoQ5+WoQQkD16REkTS7f6OjQjjuLwlruPfsc6izYtE0e2CRNQXW6aUpG4fNdyZAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382613; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=JFy2EzjloFGbG7fstyLPBVIH23J2hyLwwnSKE3tLgAA=; b=oPlxEIdepkSaJkvsNnM5eCou66AGICp5coMbj9vNkrRKRfD/XMdN/gTyEJRIgcfq9AMJ yaq/PSCRgaHHPREA01u5vwIHj8O0CmnFUsakwSUpvDcIdz8mcn25EKfmj3WDWp09Hvrkt 9cCWc1+5RRtvjdq82Nxr4pFyNd3S8LHdlOmHTsvoxsz4uCla/C41LYv0RlW91ra7LJl+g UrUegVGkVZ4ywvoqiEzgeCU12SFBAiHaH4wuvq5pxrlSe6WubiwY8aqxafiQgifWJMBmm 9/ndPLoejnE5fWhlYDue3C6OvBWb9obsm0aAUw0CxGGjjn0CV2MqbD78x2SlyxEZ9IA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=g0ntEKsG; 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 D12F1606A32C; Fri, 4 Dec 2026 11:10:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=g0ntEKsG Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41DFF1F00897; Fri, 4 Dec 2026 11:10:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796382613; bh=JFy2EzjloFGbG7fstyLPBVIH23J2hyLwwnSKE3tLgAA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=g0ntEKsGJngkOS3lapcxjf5ZfCyJCD5Z87Nj6GPGYTaN/kiMm/8lgveZ52NyD4Wvb QRzdSkoeAwXz3+DU9HuijOrOVGCAUWjzG5Tx95iWDcawYMLijUE5XbEyMmHl6rlKd2 jcaf02Ku7SzVx7HARk57sgbkT6QwxZ/yid4vsWc0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, SJ Park , Andrew Morton , Aveline Noir , Shuah Khan , Wang Xiaolei Subject: [PATCH 6.18 528/703] selftests/damon/sysfs_memcg_path_leak: define ksft_skip Date: Fri, 4 Dec 2026 19:07:07 +0900 Message-ID: <20261204100641.836366383@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: SJ Park commit c8c47f4072bdcff783cedd5a8565242a212af058 upstream. sysfs_memcg_path_leak test uses $ksft_skip without defining it. As a result, the test is marked as passed while it was skipped, like below. $ ./sysfs_memcg_path_leak.sh Run as root $ echo $? 0 Users who run the test could therefore wrongly believe the test was run and passed while it was skipped. Define the value at the beginning of the test. After this patch, the exit code reflects the skip. $ ./sysfs_memcg_path_leak.sh Run as root $ echo $? 4 Link: https://lore.kernel.org/20261102144627.88843-4-sj@kernel.org Fixes: dfa3cf0bc018 ("selftets/damon: add a test for memcg_path leak") Signed-off-by: SJ Park Signed-off-by: Andrew Morton Closes: https://sashiko.dev/#/bug/linux-a0456336-0608-4fec-ac22-0ee61d1d6a91 Reviewed-by: Aveline Noir Tested-by: Aveline Noir Cc: Shuah Khan Cc: Wang Xiaolei Cc: # 6.17.x Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/damon/sysfs_memcg_path_leak.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh b/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh index 34c37129c49f..d407dddb879e 100755 --- a/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh +++ b/tools/testing/selftests/damon/sysfs_memcg_path_leak.sh @@ -1,6 +1,9 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 +# Kselftest framework requirement - SKIP code is 4. +ksft_skip=4 + if [ $EUID -ne 0 ] then echo "Run as root" -- 2.56.1