Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp476035lqb; Wed, 29 May 2024 00:58:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUzQn54KReFJZlbXDIoOmXZwwxl6XoFl3JdB/jNbuRXobCN93kMomQUZAkX7od6m1m2Rq9YpE3GmhYcjyg+Jda/6nXSJZV8CJ649D4rbA== X-Google-Smtp-Source: AGHT+IGFv4v12JdM0ynJQIFqdFkeiasCOo5RdHcBIMEh97XvxHxv81nts+LaGDG4F9NALcO23DER X-Received: by 2002:a05:6512:49b:b0:518:eef0:45c0 with SMTP id 2adb3069b0e04-52966f8f467mr13003729e87.48.1716969534038; Wed, 29 May 2024 00:58:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716969534; cv=pass; d=google.com; s=arc-20160816; b=VqHlM6pBrkZUu2EaotqP0kF+987yQVIuAJRBzMzd5hrApAIyBLR1HQFE/VQE4ls+WU 1j+cGkIdDqc7sR6TFFCgBbxAO1RiIgoX2hVYlSWFQpLTrHEOCdJjPsIe4IEcZO76JKKE ExxhXgi8xi7Eu+wDyF9651s/etofcwL7O3ZTNBwYtHlBbv1cS+i5yEs5MdZrPUvgZT0T nuLdc8Abc/bYKKAVeQ4A0NWtC+iEHBDXYrnrRRE2pX4Tq3M7Xh8Si5BdIoQTvvZn5vBK L9wXssRgQ4/LMx++w7t82jXzh5YhoftOPuwuyDoVI2iyWmEf+Go3apXF6r2WfzlAypWq FF6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VWE7jsKC/UPx0QFtfPrtZQ2ClhOCtS+9lrFet8+Koh4=; fh=dE5xE1iGHXFR/15fr1HCqjkHYSYQ9Xl6wRR0HzbZGUo=; b=eEVk7C/Z84JERQFX98OD+KFS4wS+WDIWjvx6BKLjXpTJMFNzlDt7+X8EDBoOL6TP2o /4jvNyHOJYEpfRFhFlwvBDh1jRGxYxpq9+Jsgv6KkQA7r0pVudevkcOjdsRTrYdbwOsv YWqqafwGRbuoczrPzsRM1INt4eecjvxRuJ0U3HgXa5ZmbI6WairlTne90cTgl5KY7E6x gp9b+7ZrgYBvd3fMGkwCV7ANfXZGODxSB+GvuXbGTLg4sjY8XAc2gcfjTvmeI/EcnbqE EwShEemALJmpg1U1NMv0KMQhrulNa/9SHwGjjoJbRKEJsEZ9FGTupvyFU8Mz2zLKHgx9 fkVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bajK/+0p"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc65098si576244266b.587.2024.05.29.00.58.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 00:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="bajK/+0p"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193635-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193635-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B5BB1F2B7E7 for ; Wed, 29 May 2024 07:49:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5678E168C04; Wed, 29 May 2024 07:49:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bajK/+0p" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CCF2167D9E; Wed, 29 May 2024 07:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968977; cv=none; b=hqWKy3CABJYUdoGoKkvIUF6Ozaiv6YLogRmM5yXIW7Ax4qH5qPwQr/OmQgy9bHLrgaq4wvAyYm4S9G2UWYU3fG36aMbPphuJKlXpGPg5z/D5OyC9mzqOHtMzOlzv8z31oOuE0MIgHKaqzySi6gzUyWBLwPfFe+YG5n4l1f+Wv+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968977; c=relaxed/simple; bh=iRrzuW5gl8yFeLhm9/8b6kcavTj407d0J1PCnAsKZLs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DnkscamtuuTQ3IvBu8mzj7rtFu0jyfiLUo8/SkHXmvHZDqyEyVhj61BsIBYsd+sSF3Q13kiA12HJ2HD/balkHWENWxBcRMEqi8i3nM2kda15mZbOmxSqembV2GVbCTmWVbkdQkbER0RoHR6gq1j+LMiQpwXwlCfPeVoq05EC/Ys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bajK/+0p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8256C32781; Wed, 29 May 2024 07:49:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716968977; bh=iRrzuW5gl8yFeLhm9/8b6kcavTj407d0J1PCnAsKZLs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bajK/+0pKZEFnQX+bpQSYduuO5DzTagGCOA8RHpXVpaYsaGaj2+Gy6H8/2Z3L6OaD g4qFhjncrOfd7K5tunnruic+NuvghBwdqwNd/tIFdvy9vmLr5UD3p5aMwG1+MJEyOA l2LX+hMSMw/Gi7sLUrrx9ArW8GUbGK/sNE9zyllYaxHufK9NX8hr9Si1Dzj2JvJtcv MnbMlmepd91w+yuwelRTNOmmDSbBTvt36XK1MabAPA7bWbHFdoxnKjEDxHviZvIWsg N05TOqvhM0n6zuHWkQ/C3GQF282mRsmtj6bKrLAfbCNhtupU1w84tyeoBo2vgYd+j/ fB/CgVMpM/2TQ== Date: Wed, 29 May 2024 09:49:31 +0200 From: Christian Brauner To: Alexander Mikhalitsyn Cc: edumazet@google.com, kuba@kernel.org, dsahern@kernel.org, pabeni@redhat.com, stgraber@stgraber.org, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] ipv4: correctly iterate over the target netns in inet_dump_ifaddr() Message-ID: <20240529-orchester-abklatsch-2d29bd940e89@brauner> References: <20240528203030.10839-1-aleksandr.mikhalitsyn@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240528203030.10839-1-aleksandr.mikhalitsyn@canonical.com> On Tue, May 28, 2024 at 10:30:30PM +0200, Alexander Mikhalitsyn wrote: > A recent change to inet_dump_ifaddr had the function incorrectly iterate > over net rather than tgt_net, resulting in the data coming for the > incorrect network namespace. > > Fixes: cdb2f80f1c10 ("inet: use xa_array iterator to implement inet_dump_ifaddr()") > Reported-by: Stéphane Graber > Closes: https://github.com/lxc/incus/issues/892 > Bisected-by: Stéphane Graber > Signed-off-by: Alexander Mikhalitsyn > Tested-by: Stéphane Graber > --- Acked-by: Christian Brauner