Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp492707lqb; Wed, 29 May 2024 01:39:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKfwuqTo1zDkVK/Jq5QYg2r6u56zzrbrcmFlqwzsNf/PJRCXB1LGDe7vgy3kRKq/xR2LMMpFZEWolfZXeFBlK+VxUNoww91dW0DGLMbw== X-Google-Smtp-Source: AGHT+IH2uuO6lSKgmHlBu9FtMubShRL35U/WMtgtlbQXyDUkcVTUYoawA66sRZZ8Q2gj4r4dVFz/ X-Received: by 2002:a17:90b:4b4e:b0:2be:b9:da18 with SMTP id 98e67ed59e1d1-2bf5e13707cmr13920941a91.2.1716971987159; Wed, 29 May 2024 01:39:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716971987; cv=pass; d=google.com; s=arc-20160816; b=W0hQeTSNRWx0KKue5vgV18IBlkmR4WPLOizaIxVs8M26nANLEdQZdA/FavVt0M58De c33VaTMiRItC2gWhi8dBl7KqIfN9NnZvyaM/UWZuZgZhQ9KadDr5h2Svs5ll55MXk7bs 8JXiLRXTCSx7m8RY3RVPOupBE9bbHd8JFSPeMTSyuLINB23Eqn6w6tSEPvTbsnP8QEgK 7ZvCGzw5kmEpTSv4SZlv3lpdkgR9HFkV1AwcTHX1+EyxCX7ruWZlV/5UDK01WJ5xghvQ ssPXDv6FyeQsnFQVg4VkJaAUBVOaI9EYDtXfKVYgF0CxhMKYYj53QoVUQefwKhP0HjLc JoWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=1YVdUCwouStxfwxnG32hP50AhXVdPgyiygSC//AbcxE=; fh=kRv8+QZ4sf1C85sjtDqJpYopz/3lHlUGveVBDEF7iko=; b=Aq4RyAauyHBBjjmJDCSxLJo90Pus6oCB6Y0ZO/WCaTpLB4Jr3K6fxwk2U68cIOvgp+ zN+Zul44NPWrt1t0/BgbhJ0/iz4JaBSzH75unwxl3+IDIOKBKO2AMJJbxRucsM2NRlfT YSBmRoWnV8PTjK6QrWd/7VKKDwJghKiSHJkRfX3lnx7a89xIDaeyL5fMB8INvGWicXBu q6/nfOCNqXXD6OAHT+PopJQob7QujgtNOXerY4kGX6ukL2w7H+TWLN6RAKpBC4f9OLyW klzam0Ke8Lgw/+awY2biO8SB0uhaxy42AM/OQHWBco/lllktKcROTJNoTq0YMODNPJgG VdNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SintWRtc; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-193751-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bdd9ed9439si11609182a91.5.2024.05.29.01.39.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193751-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=SintWRtc; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-193751-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193751-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 59D1A283E30 for ; Wed, 29 May 2024 08:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF808180A7C; Wed, 29 May 2024 08:29:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="SintWRtc" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9377316936B for ; Wed, 29 May 2024 08:29:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716971379; cv=none; b=p6JzpgtsK4FcYRKuGvANpp+ePPv0B6ZIXpWgxSj/CIXIgH410PHon0tsFJlBlzktA9/njUiQAPiaPmxXlupAAy8A5JQEaauv+ijljluABmL/zKkm7VN7eeFD2NGlqUbhsOUVUxnFN7QMSxffqzTRIH0MvIWYbf0CX+zxvp0vQyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716971379; c=relaxed/simple; bh=1YVdUCwouStxfwxnG32hP50AhXVdPgyiygSC//AbcxE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NKNZyfswN9KDIc0AGNoEKeaeFPf9xVg2FtUz9lifk38eBobr7OHeOqhJKZ7wb07ZmHBgjfp8fMARfINsHYu0zSmZx0KEP2N5nYsQqm4qPlZD/diIMH8J8l1y/CtzKiQeIpl7RyNqM6N9vkaA4yP6H0oUavK+vtioEUtcUnxlODQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=SintWRtc; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5750a8737e5so11468a12.0 for ; Wed, 29 May 2024 01:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1716971376; x=1717576176; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1YVdUCwouStxfwxnG32hP50AhXVdPgyiygSC//AbcxE=; b=SintWRtcydtx+Z5Gyw2nxTtEI9RjAyWtlUnkEQCsI/EvwHmU+Be7mvcukYIirr1T1K 2DumjSqQRcBBtpRp1LhZkjMTUJ9Iq3Lo7+rgEnvGaJpvTMixFpG2OngX1CJlkwvAyFPi IO6zQbnGpup1yL08fn0Ev7/MwUXirH+uGKbLGikIUncYAGkUMjmOkJe/Q+itcXBh2I4S NKZau1nK1Nd/abk6lj6JSNUrBPOzW9nVHXzMUG25ZYAhjIjF2/4ViXtcpy9jWvhlbRv+ pF8Su7fhUaAvLOQ57Zp/gkFo3AAsMKto+XQskzh+/26haOrO7El/0AbUAztD1zvNIpG7 k/iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716971376; x=1717576176; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1YVdUCwouStxfwxnG32hP50AhXVdPgyiygSC//AbcxE=; b=sS5tWiUhtJDZADBZ8j1re0tOS/yHvBwOs3A+Kvqhkdc+7Din4hVy9tPKmyfEf8sCrb k+xL6ZDMmjY/t+2Bmv4RAxmDgdQgxxehOeJFdj85HOvugX2RU1ude389K2YKCcHFC0LV LyCpoA7cMA3C+BXrSKnEriQtbKvZXCnaSMXWINNMNv0S98M6gniKf/AVOL+UZ6T3xh39 j3/5qBMpGt6vzRC2uPhsXG+clxvfvJWVN0q7qnJ/m0urbOz8CT2vX/nx1lauokxqhxgV TvK9fkRqtcmYL3RR2sPZ+tNSZ98vAmpFKwRZu2tfpTQc5xL34r8JAkJGhdJ7KPuq4zPs H++Q== X-Forwarded-Encrypted: i=1; AJvYcCUejVg3S9a9wRbZrYaGvPcKNhPSnoxjFlBd0jpIf94nAzByLLaaqlSl2Mwvb9BiKnPf/87GDPFs2v0oOUY0kcu9D4RRsXlC3xj+bZyg X-Gm-Message-State: AOJu0YyFaNhY6mJ4r/Ec1W3tsG2NeBpp6p1e/khPaQ094L9al8dRJgab 5lpqMHDI3001zWrlDjoKLSOYMvUFWuaVu3PtfjH0MtqLofRmJQc9qFR1mrcqgLECIAaXq6g8/hy 7TaqlbYH+5rkdmCVR8NTmb9zON0Y7M5GzdpFo X-Received: by 2002:a05:6402:40c1:b0:578:61c0:eb0f with SMTP id 4fb4d7f45d1cf-57a05d1fae1mr93618a12.3.1716971375558; Wed, 29 May 2024 01:29:35 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240528203030.10839-1-aleksandr.mikhalitsyn@canonical.com> <20240529-orchester-abklatsch-2d29bd940e89@brauner> In-Reply-To: <20240529-orchester-abklatsch-2d29bd940e89@brauner> From: Eric Dumazet Date: Wed, 29 May 2024 10:29:24 +0200 Message-ID: Subject: Re: [PATCH net] ipv4: correctly iterate over the target netns in inet_dump_ifaddr() To: Christian Brauner Cc: Alexander Mikhalitsyn , kuba@kernel.org, dsahern@kernel.org, pabeni@redhat.com, stgraber@stgraber.org, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 9:49=E2=80=AFAM Christian Brauner wrote: > > On Tue, May 28, 2024 at 10:30:30PM +0200, Alexander Mikhalitsyn wrote: > > A recent change to inet_dump_ifaddr had the function incorrectly iterat= e > > 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_dum= p_ifaddr()") > > Reported-by: St=C3=A9phane Graber > > Closes: https://github.com/lxc/incus/issues/892 > > Bisected-by: St=C3=A9phane Graber > > Signed-off-by: Alexander Mikhalitsyn > > Tested-by: St=C3=A9phane Graber > > --- > > Acked-by: Christian Brauner Thanks a lot for the bisection and the fix ! Reviewed-by: Eric Dumazet