Article View: linux.kernel.netdev
Article #6570Re: [PATCH iproute2] lib/fs: fix cgroup2 path for cgroups outside the cgroup namespace
From: patchwork-bot+netdevbpf
Date: Thu, 22 Oct 2026 18:30
Date: Thu, 22 Oct 2026 18:30
27 lines
8766 bytes
8766 bytes
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
On Tue, 20 Oct 2026 22:51:13 +0000 you wrote:
> get_cgroup2_path() opens a cgroup by its ID, reads the path of the
> resulting fd from /proc/self/fd and returns it with the cgroup2 mount
> point stripped. It assumes that the path always starts with the mount
> point.
>
> That is not true for a cgroup outside the caller's cgroup namespace:
> the link then reads as just "/". Skipping strlen(mnt) characters of
> it reads past the end of the string into stale stack data, which ss
> then prints as the cgroup path.
>
> [...]
Here is the summary with links:
- [iproute2] lib/fs: fix cgroup2 path for cgroups outside the cgroup namespace
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=7a0464e280dd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179269380907.87273.10417636674537764715.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350755-linux-kernel-netdev=dewy.ruReferences:
<20261020225114.18233-1-gopalmalaviya53@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350755-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH iproute2] lib/fs: fix cgroup2 path for cgroups outside the cgroup namespace Date: Thu, 22 Oct 2026 18:30:09 +0000 Organization: Usenet Network Message-ID: <179269380907.87273.10417636674537764715.git-patchwork-notify@kernel.org> References: <20261020225114.18233-1-gopalmalaviya53@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="290944"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QotfEprM4HKnOdphQq5uwvuGCKw= sha256:8L5KbVevXzGixNw6bUO5HtogMHfSTuhsl5PJafBr7ZE= sha1:BzATIGo2LURB51ZNPW2YvyErJDo= sha256:b8xhkuPp1Iqig7s6zPso7imorJT1PyS8oogc3FtA5Ek= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7281D111336; Thu, 22 Oct 2026 21:30:43 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.739 X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Az3KPQoBoYzr; Thu, 22 Oct 2026 21:30:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-350755-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 01E6A111334; Thu, 22 Oct 2026 21:30:31 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id E87722EB10; Thu, 22 Oct 2026 18:30:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1792693811; b=B9mRpYW2kjFdHV5BRtjfVhWDRCJoTlDbOEi2pFbDK/U/mJJde2nxCxHB65OA9wlomU7F MqvH098wKfPCl2OM4oWxQQtvPlfKlaep4Khxpcs0Vmq14jnqA6YwhYnYscDlQT5xAYfG2 KmUn4rrgK1kehKbnw3sE9lgOLtqo+HCQSS5xriVr+uimTq5RblJFFWSq7JLjmMGaQteb9 bhFPMlVjia5ezC2kiLRYC8ePW92zWvRPF9t4ijRRTRLbAiNxYR6NyKH3gGTBFiPPPodBw pdtg3C9gGifSobSrLD99jlbdghkMdxNRlTaQHmry9ducWcwixDvcMtgCRUQyqJQbecg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792693811; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dXzCN7Cx2O7b6G0T2Mwf8ETdFbzwB7uStNfANh0Qtks=; b=pBJdPNGU0Ao8YM3LLA0wnlVXOa06WN8n+vNmzqBI6a/nquFtOkDZsa1f7ntYV+gHW541 rL8IeR98L7ZaBtIRTGE7YvbgB3RXFDLw3t1nAcXpKNoQSwjn0NWMqMHYIsRNXyPJJYk0W twBdAFP9itkT/niv3s+7IELao0FEmKOrp3TXVQpu49y2WM+4qdPTZR6q9Q+w5vT4h3B/v J5C5G2lOLk06H2chLoyr4ZCZ4WrrhlMbLsGQj3r9MzRNvVdj1GuzqchrdYrMi3223RcWC S/VrgHoO8rlCuOyrDfkTM2GqniMfPyQ1uWV6agsg8acU/TpBF6E4plTVKF6gPYJnLQg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OkLTvNtG; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC022606A319; Thu, 22 Oct 2026 18:30:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OkLTvNtG X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792693810; b=kiFcsWAq8rcMMQvEwBDKsglH1lb8kUKkCHscYKX4kCOU8GkxnKt0Jo7DkPsglWcq4FYv rOvB6+Ei6ZFMFSD1un/+XzRKd88uR/MiS8RJSGVp9L4fjyxDdqWUNyw6dSRXdDFCKmLgI /VaqNE/+J59t5+d0x3NfCvQFv5yxpNIXUvsHkJ8qbJxOyAD1jMyEPgCNtMBmC7wN3OdzC PNShYXzp3Bx27vcqItsRma9jMBfmrcxP6lXjcJkZkhJmauOmq3wlX3pCP7Kji2A33uJ7j c62qSLZuBS3V4YGx9hsFeHWHTnrfpOP9EahupWnMrOhW2hharWU7LwVQ3wX0c4odp7g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792693810; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=dXzCN7Cx2O7b6G0T2Mwf8ETdFbzwB7uStNfANh0Qtks=; b=LfCDf1Mr32fEJAElB/PT4X2KHSOTfCCY7aCSYnWajI+LmA468MIKEkN/bV30zZJ8BKF2 TBB6Jyl9rhnl9lVqhMGtUWqCi3yqI4IFSHCVOx8kJPmFCEaYsclI/ZEocp0y8o7hw0OwG yVD1FOdzNLI4qkcbJlQAUs7zBTyyqEkMPaAyvIaM9Q+LOAQSt7Hod5R+nqk0a9+Ykvh4g clOnKDERPMrlrpokP3UFjnal7JJLIjS5Tla8gbZyj9KeicIDH1sereJyBCqY4NCJnbm+O 1JcFRPN2SuHazXuV0bfuRHQtWqSPL6T+2ElWiTJXcWivlXyzBLEnfJe8PVYf3/Cjz3A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OkLTvNtG; arc=none smtp.remote-ip=100.103.45.18 X-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 9254A606A321 for <netdev@vger.kernel.org>; Thu, 22 Oct 2026 18:30:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C1481F01825; Thu, 22 Oct 2026 18:30:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792693810; bh=dXzCN7Cx2O7b6G0T2Mwf8ETdFbzwB7uStNfANh0Qtks=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=OkLTvNtGlerwIA9n0cJ/O2YiM108B+s5CPtq+o+IJP9qeBO9vJOCRw0lAHZ6BNKkL xh9bOK3mYanx/DnoSLMdae6IhakxtEQHT0bNvyLF/BXRovKNeMX4HeQU9IdpWh6Pix y58y0Vxa6+/Dn/4w+iqZjFBizKhCoMgWhP4vITTxMDjV41wS8KmDhquqtxwnUcHvZ1 ybIdTuoI3FnGhOJygY4A03b6V/f+DYn4y+VNQyGFRg9mlEDmAc0lgQ0aZw3KbO23Sp zh+A9VcN1dNpdCohc5S5u3V+exdMpuKidZZrrKTLkvw8Y42aYu5z3IVrvW3mDMvp1g 4erbZXknyWxKg== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 444713808222; Thu, 22 Oct 2026 18:30:10 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261020225114.18233-1-gopalmalaviya53@gmail.com> X-Cc: netdev@vger.kernel.org, stephen@networkplumber.org, mkoutny@suse.com