From nobody Mon Jul 24 15:45:54 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R8kyp4CLRz4nsrG; Mon, 24 Jul 2023 15:45:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R8kyp3MFWz3mV3; Mon, 24 Jul 2023 15:45:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690213554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V5iYGDEv8KIMJDEfAbRhMF8PrkfehS0zGCrDjk7c6Bk=; b=eEc8wXdHYx/3jSrVLbp9VjjoPqIn/mdfLZG44zB7uyObSYY0+FgwhNzPRECwof8nmtiKfe kzPMGjf/8rmFhoIfoHwcSNSh+/fDEEqfW5K2OE1VsASVpjvdbLDL8VAbPOoLLQUJO1DouO sOvm24CvFD1rc609NcvtxEsTQdYnKs9hPBPyckHUIQYO1geDJp/5sNYLNfe6sEixkEkigd Lnnon0eOw+1q25/8abs0owiuE2LVEz0eiJJa81RhkF9rIZ+GRRrqugx8hFElb59NGjTSch tHt/WnnWhswASHDyzQXGpXYSZVXXVAb4fmImYzcxrWYROVCw41a1gLX5FaM27w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690213554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V5iYGDEv8KIMJDEfAbRhMF8PrkfehS0zGCrDjk7c6Bk=; b=CKX6zEvyl2Y+ceWKY8/0ng2XIBZe6fOxrHRHy6E32ZgDzwY4U5toUO8IMDm7iogio8S1kx ZXQPOrD/oqphcIgxyzSs3kaCER1yVS/gsNoazZhB/gAK0JpwhvGtbGBqUYSd/aeO3i2l8T G7k3qLsmAtbrIwJZ7wzR3uNqjqip9xhANWmcHoKz15UEvhr38cp6nvm+HtPUhcf4LMb9qO ZRqVI399Np7ANitbSW25A5H7QL5hRZA+hPbe6NM2qCwgdrkhapk2Kyz11b01nKPQY1hxfn 40MIcO77vOWgO2bUP2CljpZKgYRSt95YZzJPcNVVhqrvoZ5GRb7EoOWzC8XKKw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690213554; a=rsa-sha256; cv=none; b=Y0pRAFviEJxEDhn9Pq45mSW8SLn1I0wozbEXR5a9JlZef5dWQq+w+GvgmmuBizpVL/MbwQ VSBoD/o/LDSD+EsmRB2z0VVhbcBO6nIhH1R2m91sljKtIGCgipeE6ltro1gWVaPf68SxmG a8upz0CvAixkanZLOzKdszrWdQvsaaK4T/tsPa8un1Gzbd3v9Ir4al6PaxjaZIIljMv72u Hs2O1/BwM0AwpF/yER1zLQ/DjfYTQssWl2ZING7s+RYLbl+TjTkw6MWwtsortJwkvwMp3b oPVCHP5t5WxY4zFAMk+NXLoZXDUnyXoA3NdPLmr5NdTFpFGS3R9LLKiV0KE8lQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4R8kyp2GLjzNfp; Mon, 24 Jul 2023 15:45:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36OFjs25079687; Mon, 24 Jul 2023 15:45:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36OFjsH0079686; Mon, 24 Jul 2023 15:45:54 GMT (envelope-from git) Date: Mon, 24 Jul 2023 15:45:54 GMT Message-Id: <202307241545.36OFjsH0079686@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: b03012d0b600 - main - netinet6 tests: test for loss of Solicited-node multicast groups List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b03012d0b600793d7501b4cc56757ec6150ec87f Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=b03012d0b600793d7501b4cc56757ec6150ec87f commit b03012d0b600793d7501b4cc56757ec6150ec87f Author: Kristof Provost AuthorDate: 2023-07-19 14:37:28 +0000 Commit: Kristof Provost CommitDate: 2023-07-24 14:47:50 +0000 netinet6 tests: test for loss of Solicited-node multicast groups The multicast code has an issue where it can lose the Solicited-node multicast group subscription if the same address is added twice. Test for this. PR: 233683 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D41123 --- tests/sys/netinet6/mld.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/sys/netinet6/mld.sh b/tests/sys/netinet6/mld.sh index 034d5945ae20..80b7117c3717 100755 --- a/tests/sys/netinet6/mld.sh +++ b/tests/sys/netinet6/mld.sh @@ -80,10 +80,50 @@ mldraw01_cleanup() { vnet_cleanup } +atf_test_case "pr233683" "cleanup" +pr233683_head() { + + atf_set descr 'Test for PR233683' + atf_set require.user root +} + +pr233683_body() { + j="mld:pr233683" + + vnet_init + + epair=$(vnet_mkepair) + + vnet_mkjail ${j}a ${epair}a + jexec ${j}a ifconfig ${epair}a inet6 2001:db8::1/64 up + sleep 5 + + jexec ${j}a ifconfig ${epair}a inet6 2001:db8::1/64 + + vnet_mkjail ${j}b ${epair}b + jexec ${j}b ifconfig ${epair}b inet6 2001:db8::2/64 up + + # Allow DAD to run + sleep 5 + + # Debug output. If the bug is present we'd expect to not see a + # membership for ff02::1:ff00:1 + jexec ${j}a ifmcstat -i ${epair}a + jexec ${j}a ifconfig ${epair}a + + atf_check -s exit:0 -o ignore \ + jexec ${j}b ping -6 -c 1 2001:db8::1 +} + +pr233683_cleanup() { + + vnet_cleanup +} atf_init_test_cases() { atf_add_test_case "mldraw01" + atf_add_test_case "pr233683" } # end