From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) (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 E6C573469EE for ; Fri, 15 May 2026 20:19:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778876384; cv=none; b=hFqzY1gOeGfLGh+n0GyeoKNNE+vmHjGtBejodkN7BVpT7PLEDNUyUvh5MDeR15pCMKGKxf6SiIVQzHAneR7/auJt7kVbd+JUkKD9kNgjDy698f6KDiGiR4YRsgIdqoZq/h4+m5FMLQHrjofZwfd5IEDVmEpSato419cqBS81BJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778876384; c=relaxed/simple; bh=IVAG7AjADp9pbIkirnW2LF7lyZL0hDgmHLHln1JCBGk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bpf+Yb9lfz8ED0Wul61a9GGq3VSUHCBSQM1HeomRNEaX++bJ6b7nnbpCNyPkogKj8TK0fCmojpy18wg71MD5/dD4sTUtS5eahQ3krRYop/PClvcR3YuxJVNMMlHJ6PRqznBGKqyUZs4oC6PYmRmcI+WKQ+oyCwlx5+aDQh3m4r8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.128.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ovn.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f66.google.com with SMTP id 5b1f17b1804b1-48d146705b4so2165115e9.3 for ; Fri, 15 May 2026 13:19:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778876381; x=1779481181; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9wKWO2Yi4eHfQwzUIECRCEbVVtbU/J0JhEXvTgyUNag=; b=e+bhoUI7ZQDRWgTSxJU4mmQPuCFs8q/GCcokf99QycjWZarCUjgGKn7YLrmB8yO09h 1t2xw2bMrL4I1ZrzPqbAHrFg1C5TpEl+pdAg7bnhEPRlmLVBoVrquQHYmvtAHHPT0WTK L2NiOjtMO/7dygKTTlLsMmZVYboKJ84hAPiaaeVKTW5C1G2cLWBsVtS59JccV6JCIBG/ a6lRLdsXbVybit2TKF14q0QkDj1EGp33bEb/nB6HY8zUDtGKUZ1gRBXesKSbuR0kMh/n 1qfS92ct/pYA6taW6HMYjc4r7hZ808tmIsEDe5A294rHaxjUzsrg60aLxmDHl8cmU0hv pzhg== X-Forwarded-Encrypted: i=1; AFNElJ9JRpKWeHSzAk8hiKmA2H1C0oM80eDSgCBs1Q7aOLQ6WMVFsfQTRWUExIr+gsUoqGBDpIdtXuwYbK6fDTw=@vger.kernel.org X-Gm-Message-State: AOJu0YzdaWb2nQ7dlp5GloTtSibzsau6b4wD+TygMm9RWsMhq348GKwl pLuh2frkxswxWgMTZj/OQIX7Jim2noep3erMZG64t7Vr7CwxHXDtlyi4 X-Gm-Gg: Acq92OGw7bwpLmZz1UunvzNaYtVP/Ev9yvdHM1Mdinp3nIgcZdwpB+DDw2cNVQBUu/4 xB/8+KcCUpmM+qBacCxssEsKu30CWeCWcALcMKmQ5FJC7STdq5u3mUSIvMyp26/rM5GiEnsQLQ3 E9k8n+8JZT08wvImGcf3OoN5ei3H1+uzTnjeuKyTQUM9LvhPvJWGsGixF5EsopwMbQbWwkrtRYw pyZrwTePJwelHlILuz0Hs8P7DX3JQnKrwukIakHMKeMHIIgINqZHwz6t3+J4M378f/2wWOzhMzB maRyL6El1IEaqE+UwhNJuXFKZ9BKx9oFgqaO9Fc/Dxfj3rZ4991A1Q5HLSWbo+elfQ2Abucj7d+ tcy0geVhn1kJdqjqTmEaQraxxjmnGGNHdkKeZHjgqIQHNF1azeMBtVwsTc6xwRqtd9LJdjl9++U eflVoRxuln1bORv+CfVEdctIsEF4UFvGgwb+9ycuncgrxFSBtVEf6hJcTW8Hs= X-Received: by 2002:a05:600c:a11c:b0:488:9bf8:7f17 with SMTP id 5b1f17b1804b1-48fe61f27famr55369845e9.14.1778876381107; Fri, 15 May 2026 13:19:41 -0700 (PDT) Received: from im-t490s.redhat.com (89-24-32-159.nat.epc.tmcz.cz. [89.24.32.159]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48feab2896bsm22924605e9.4.2026.05.15.13.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 13:19:40 -0700 (PDT) From: Ilya Maximets To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Donald Hunter , Shuah Khan , Adrian Moreno , Jiri Benc , Nicolas Dichtel , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Matteo Perin , Ilya Maximets Subject: [PATCH net 0/5] netlink: fixes for cross-namespace nsid reporting Date: Fri, 15 May 2026 22:19:19 +0200 Message-ID: <20260515201937.2813983-1-i.maximets@ovn.org> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit While working on some new features for OVS and OVN we discovered that self-referential NSIDs get unintentionally allocated in the system as well as unexpectedly reported for local events on all-nsid listeners. More details in the patches. They change user-visible behavior, but the current behavior is arguably a bug, as it makes it hard to use all-nsid sockets without a decent amount of extra unrelated work of tracking when new NSIDs are allocated for your local namespace. Tests are added to check the expected behavior and YNL is extended to support all-nsid sockets in the tests. Ilya Maximets (5): net: rtnetlink: fix link nsid reported when the link is local selftests: net: add a test case for cross-namespace peer netns net: netlink: don't set nsid on local notifications tools: ynl: support listening on all nsids selftests: net: add a test case for nsid in all nsid notifications net/core/rtnetlink.c | 2 +- net/netlink/af_netlink.c | 8 +- tools/net/ynl/pyynl/lib/ynl.py | 32 +++++-- tools/testing/selftests/net/link_netns.py | 101 +++++++++++++++++++++- 4 files changed, 132 insertions(+), 11 deletions(-) -- 2.53.0