From nobody Mon Jul 31 12:45:49 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 4RDydw4D84z4q693; Mon, 31 Jul 2023 12:45:56 +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 4RDydn2rthz40ZL; Mon, 31 Jul 2023 12:45:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690807549; 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=rIURBHbrqGHAOBb/0Bb9Q1WLMmHM9N7n1PW3E1jE1cA=; b=gn1VFwJ78RwYoxAUBR5GbfS3EZe4QNNSswJ/A0Iokvt2nq5fMoUHfN2BDIri0oSBDc6AP4 qxayY13rbnBrJwcZl90upDj4ibe3YStw/KuW7WpJmEB73ly0JhwfXIDMChaemRxBLCIO11 nS8kjUkMkCh0IEJDrrT4jE2wXwzom51eKhenfnzNq+rVLs1Tc0K5jSlR/LIOz+fIuCiCD+ fWNojpUZgVSR494PubmmZa6DV1Iqgr7fTybtIVBuUZvcoleHWgh9TlfRvpp0cZq/lAan4i R9LojJyw9AmlZCg6OQrFYNQv8dBFbNy/oK6eiieMmiESwQzPxOSkCQsn6/Z/+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690807549; 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=rIURBHbrqGHAOBb/0Bb9Q1WLMmHM9N7n1PW3E1jE1cA=; b=ocbcP+K5P1oZj6rewNz10Qqb2dEUPTHW69H7TmCQihLsYcs2hlmoHEiPuv+IGuH67yocy5 1fUChqGf+w+ZSQe3T5GQ4aqUVhWo9kZhat3v0AQkB3MKkYJcM5pRQwA+8EVqn3pU7AlViw dAfDhGBxbpIYYPzBUFhPzJrMn9opgp5/v30Q+mMSkMjoW5TJADpp/6aghqfOpEGg+QdHaX Tvd65pGwsq/r/qT/17rjijMaKSWkPAa3Mw7G4kve9wIiFsF/vLICv0h286dJYkT+KBaWgK zk7qNbIyuRzxtSD7F85p4hsT0M2lE4WHXVnDvlXSRDNRozFGv/d58L/WcVKtJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690807549; a=rsa-sha256; cv=none; b=o9YUuOKhF+zHvQmUTbxwndRvOASNgN0DaCz/Ygu6dTnpw9/eMjsoZIGVqsPhjZSPv/v3qB YdyOhrIZ3ZB6GuZYkkRjRh1AZCB5BSrCaw+6hQdnN3uIUUVlfGtsxmy+iiUjsjYtxkkMKL 8/Kyg3kYNBw/b2F6T6HM1MoM02TufAa8+4mc5nlm8jxjNyzLXFC4iCIZVxjV1xBvWf0208 F4tq7lSVFh2Kcnm25ykrAD5SzrOWwS3CoMjcYmwB/mmlRmMNOyBI4EqmdOB43AGmtwOkHl vZblO6aG/Q0w1UWcJMGVsQPba8b5VQMu25ev34gxaObfTJ0tL5Ql53k3TwEm3Q== 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 4RDydn1G38zwhB; Mon, 31 Jul 2023 12:45:49 +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 36VCjnjK076592; Mon, 31 Jul 2023 12:45:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36VCjnaD076591; Mon, 31 Jul 2023 12:45:49 GMT (envelope-from git) Date: Mon, 31 Jul 2023 12:45:49 GMT Message-Id: <202307311245.36VCjnaD076591@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 8763579a44e3 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 8763579a44e31713a6d1b0d9618eeab3eac9d868 Auto-Submitted: auto-generated The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=8763579a44e31713a6d1b0d9618eeab3eac9d868 commit 8763579a44e31713a6d1b0d9618eeab3eac9d868 Author: Kristof Provost AuthorDate: 2023-07-19 14:37:28 +0000 Commit: Kristof Provost CommitDate: 2023-07-31 12:43:14 +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 (cherry picked from commit b03012d0b600793d7501b4cc56757ec6150ec87f) --- 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