From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796035050; b=nSaPgdzqpC7XqNEYoVfngRaat+VXyb4UMwCZj9wXOGdncoSRVDJeTxOMKEZ2Ckjxo/I4 zE0xIStyQltAqfv/Nk8tXoYSnUKAZdxRVVMPGowyt2Az2Fgc/aXlqJ3ZXz53Sv2WOSzxe APyifUu3ZCc58vu9l7B+iQfEnHUSts/EtdI5/06on20O+piyi9etAreEkIsKUxjbe3Kzv bQArmaB57mcPTxTR/IgjhVYplIuTYU1I881Yc//75a9mGGwRgs6BWKvOFL0YeM23zcCHW 7/TtyGCd2Ko9/5Tp8oSjylkngvMLldOOvKoCmjCsWY1AhS+DnTOTstaiimZe4WBzwrA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796035050; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Reply-To:Subject:To:Cc: References:From:Content-Language:Organization:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=pK6yuTtwfGKihMYAJejSk4pQxGMBffJlrpdPT61X1rM=; b=gKApvFRUieZMkRlua+u5yshMwAUKUh4ouIR1ZC12Eu7S8AwyXsJIYC2nBbe91TLxzFYY A3cYELWHmULlYVOh01FgDrE5pugOh/wotKz50IwW2SI01QLEQYg68ObgKreY92je0WKoJ n4KFCFfm01CTlOoZnj1ifd+4t+RF0HM4HgvMXGEjzF5FP6MEIg57lN9tgI7cC7sNGUTR2 a23xaZ1D8vX1UcZWc19s1CGq4E6Sy1bGGdKF7okEhLQV7jHuWX4MWFiFnySyb9SBWMMZU ffy30/LHMY9qJoDvqOiyF+37vtfBwd2DnB4B9q7811GUt1+2ybQEn63tOZYpjbs9tMg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=6wind.com; spf=pass smtp.mailfrom=6wind.com; dkim=pass header.d=6wind.com header.i=@6wind.com header.a=rsa-sha256 header.s=google header.b=UDbxSHDm; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC0D5606A696 for ; Mon, 30 Nov 2026 10:37:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC0D5606A696 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=6wind.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=6wind.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=6wind.com header.i=@6wind.com header.a=rsa-sha256 header.s=google header.b=UDbxSHDm Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bbb0db845aso2544885e9.1 for ; Mon, 30 Nov 2026 02:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; t=1796035048; x=1796639848; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to:content-type; bh=pK6yuTtwfGKihMYAJejSk4pQxGMBffJlrpdPT61X1rM=; b=UDbxSHDmXWBxaEm5UFcK8/HVkk1FznXgC9PiwbpHdgCi0MY9gzJjZZgTnpB3Y+j85n yk9a2QF0b8lOJ36+xwaJ3CEBM9t4m5O7h9AhJQNRDyPFiTq4acV6uAcFjmvj7KsuosLK ekF4ffb7xAnSHHp1QANCfep+gAEtSeDTaAd8TVmhnKP7vFqf3HBfPHnRaOLMlg+x5VK6 +8V7SQd6g6XQZZnA+9f4r6/ojwo0RA1CcYg8Sz2ta6h28opNJUoUKV751GJq4tgA1UEA Xvs2Lpun0xHh5Vq8bVZbLaLMx51COhd30W36+05X0CelUfAk/QIbosqbrUtKRZPcrgM2 MR/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796035048; x=1796639848; h=content-transfer-encoding:content-type:in-reply-to:organization :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=pK6yuTtwfGKihMYAJejSk4pQxGMBffJlrpdPT61X1rM=; b=VlWe1qvZ0QeEetYueZ320HdT2DB89s31aHUiTU9Kom0nXqKxj54s41vWVOP+ZHnV/D pIjbX6WeH2sAUVPomGY50ch62cUe8EOPPRcPeWnB+plyQhlKUKjJIH7AB24Jq5YTjSPb h0CRf+iibwEn19y74qqtamri26VBvOc87O0azepIvlCeYbGsoi4TTHMOOj0sruDA89rs N4XX7OmwILNe84vQDJNx04kJRSCiZi+mn3JRTGb3ySFK5/ArKegUkPavjrCCDhd8uZ9N hXTkl3UxhW++JhVFB90DSfQerg5pP7PjavCSeeXApqyeC4triIbBYXpwBqINrJx2nYRx Nqwg== X-Forwarded-Encrypted: i=1; AL+hErH6vHHfxe/UVTkR9DMkICE/DwlQ0Mci6fsAg/X2HFNBBh96PnJ3Ibgcdwhuo/L1m46noba5LReNRuTYEBzr2/8=@vger.kernel.org X-Gm-Message-State: APuU4Z8XIw1x4gFczUzPXoZTSYzPUEyCKftLtg839WvHWYJqmzsJeF/z A0r5u9MvSImGV2lsWwGvxB6KPPZP0Jk4MAdGV7JvnOcqqgdQ6B24ORL5dU9h0K7wVK8= X-Gm-Gg: AZFdTZczi5CdUs7yTFTIgEhGj5Be9Ik4tehsTC7UZDA486wabFkZ1J0LUg0Fgc7X4NJ 5eOMhWj8SWju54hAGNiMpPkISASZRW93wWWLy9EDtgwQztXlMN96lMqdvNPeH17tVatEJ/feKhc DKyLLxy+b8x8rOpaUysf0StJzreeDu2TknbklbR/bDqAYQardbNwUg1xprkI/IwM/4o+j14jtjS pIhPj/M4ya207TVxyAy7uV8W8/+F/dORz+gCQeInceC4g9LE5cV9951/brDdWGp7fztd56oZ2p4 7W45QPvuEANy/ps6BTGHJuCC8UJ1ZDl74SMJCx8UT36QAho/R3QUc5OUePTuFWEYoX9FWB/d/Cp j1s3Wd+anY4RHLPBA68HQ19chNsuPj3mtWVPj1DeJxBtVC316K5n5pYjMpEEjdmxvPRZtF5USBc AsHYvIHOo6lVtenxItHESt2EIX9cBF1taOxdHn73wiqc3dpwCIsZ0p3hh1oTzg+qoc2ZLfhXhEa Uc4U8eoNdbrZsirjR+Yg5C/n1a7xz5Q2Fmx+m4itfj/r4Ys4Hc4nKDXfE6JMKvM317u8huUgxIb 1PWOxTAqnmCE1BmVOTk+Rls9LRY76mXYrU8MwGwtqd0+0tMy70D5yAHl8KTOX23iTutf0swic+a JB1uaXA== X-Received: by 2002:a05:600c:8284:b0:4bb:6c01:de9c with SMTP id 5b1f17b1804b1-4bb887f55c1mr608784655e9.2.1796035048282; Mon, 30 Nov 2026 02:37:28 -0800 (PST) Received: from ?IPV6:2a01:e0a:ab7:2110:6a1d:efff:fe52:1959? ([2a01:e0a:ab7:2110:6a1d:efff:fe52:1959]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa3c4dsm53727505f8f.46.2026.11.30.02.37.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 02:37:27 -0800 (PST) Message-ID: <57feb920-02ca-4e10-b35e-4234f5bbc0ee@6wind.com> Date: Mon, 30 Nov 2026 11:37:27 +0100 X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net v10 2/2] selftests: net: test joining genetlink groups no family owns To: Anil Kaushik , netdev@vger.kernel.org Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, idosch@nvidia.com, willemb@google.com, jacob.e.keller@intel.com, jiri@resnulli.us, fw@strlen.de, martineau@kernel.org, v3rdant.xiang@gmail.com, aliceryhl@google.com, linux-kernel@vger.kernel.org, nhorman@tuxdriver.com, shuah@kernel.org, linux-kselftest@vger.kernel.org References: <20261127032246.2886407-1-anilkaushikwireless@gmail.com> <20261127032246.2886407-3-anilkaushikwireless@gmail.com> From: Nicolas Dichtel Content-Language: en-US Organization: 6WIND In-Reply-To: <20261127032246.2886407-3-anilkaushikwireless@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le 27/11/2026 à 04:22, Anil Kaushik a écrit :> Check that a Generic Netlink group ID no family owns cannot be joined: > > - setsockopt(NETLINK_ADD_MEMBERSHIP) on a free ID fails with ENOENT, > and still works on an owned group. > - bind() with a mask of free IDs succeeds and joins nothing. With an > owned group in the mask, it joins only that group. > - A socket bound to the free IDs is not a member of the NET_DM groups > after drop_monitor is loaded. The test unloads drop_monitor again > after it loaded it. Skipped when NET_DM is already registered or > drop_monitor is not available. > > The free IDs are found with a family dump, which only lists the families > of the current network namespace, so these checks are skipped outside > the initial one. It is found with its fixed nsfs inode number, which > also works in a container with its own PID namespace. Kernels before > v6.17 do not have that number, so the checks are skipped there too. > > Suggested-by: Nicolas Dichtel > Signed-off-by: Anil Kaushik Reviewed-by: Nicolas Dichtel