From owner-freebsd-bugs@freebsd.org Thu May 21 11:35:21 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AED4A2CAAF1 for ; Thu, 21 May 2020 11:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49SSGd4GJfz4pxJ for ; Thu, 21 May 2020 11:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 925212CB10A; Thu, 21 May 2020 11:35:21 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9217C2CAAF0 for ; Thu, 21 May 2020 11:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49SSGd3NxLz4q2x for ; Thu, 21 May 2020 11:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 6FE57CD8B for ; Thu, 21 May 2020 11:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 04LBZLoX041632 for ; Thu, 21 May 2020 11:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04LBZLDD041631 for bugs@FreeBSD.org; Thu, 21 May 2020 11:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246629] Multicast stack problem - MRT_ADD_VIF Address already in use Date: Thu, 21 May 2020 11:35:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: ozkan.kirik@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2020 11:35:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246629 Bug ID: 246629 Summary: Multicast stack problem - MRT_ADD_VIF Address already in use Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: ozkan.kirik@gmail.com Hello,=20 I'm using FreeBSD 12.1-STABLE.=20 # uname -a FreeBSD test.test.com 12.1-STABLE FreeBSD 12.1-STABLE #8 1f999e39f46(v2)-di= rty: Wed Apr 22 08:40:36 +03 2020=20=20=20 test@test.test.com:/usr/obj/usr/src/amd64.amd64/sys/amd64 After restarting multicast routing daemon, daemon can't start with this err= or: "Failed adding VIF 1 (MRT_ADD_VIF) for iface em1: Address already in use". = pimd tries to disable all vifs from kernel (shown in output below) but still thr= ows the same error. I tried with both mrouted and pimd. Both of them shows same behavior. My opinion is kernel doesn't disable VIFs.=20 I opened a bug report for netstat -g also ( bug #246626 ), I think there is= =20 corruption about the multicast stack in the kernel. There is no problem on FreeBSD 11.2. To reproduce error: # pimd # killall pimd # pimd -d -s debug debug level 0xffffffff (dvmrp_detail,dvmrp_prunes,dvmrp_routes,dvmrp_neighbors,dvmrp_timers,igmp_p= roto,igmp_timers,igmp_members,trace,timeout,packets,interfaces,kernel,cache= ,rsrr,pim_detail,pim_hello,pim_register,pim_join_prune,pim_bootstrap,pim_as= serts,pim_cand_rp,pim_routes,pim_timers,pim_rpf) 11:52:23.035 pimd version 2.3.2 starting ... 11:52:23.035 Got 262144 byte send buffer size in 0 iterations 11:52:23.035 Got 262144 byte recv buffer size in 0 iterations 11:52:23.035 Got 262144 byte send buffer size in 0 iterations 11:52:23.035 Got 262144 byte recv buffer size in 0 iterations 11:52:23.035 Getting vifs from kernel 11:52:23.035 Installing em0 (10.2.4.20 on subnet 10.2.4/24) as vif #0 - rat= e 0 11:52:23.035 Installing em1 (192.168.58.1 on subnet 192.168.58) as vif #1 - rate 0 11:52:23.035 Installing em2 (192.168.59.1 on subnet 192.168.59) as vif #2 - rate 0 11:52:23.035 Installing em1.1600 (192.168.16.1 on subnet 192.168.16) as vif= #3 - rate 0 11:52:23.035 Installing em1.1700 (192.168.17.1 on subnet 192.168.17) as vif= #4 - rate 0 11:52:23.035 Disabling all vifs from kernel 11:52:23.035 Getting vifs from /usr/local/etc//pimd.conf 11:52:23.035 Local Cand-BSR address 192.168.59.1, priority 5 11:52:23.035 Local Cand-RP address 192.168.59.1, priority 20, interval 30 s= ec 11:52:23.035 spt-threshold packets 0 interval 100 11:52:23.035 Local static RP: 169.254.0.1, group 232.0.0.0/8 11:52:23.035 IGMP query interval : 12 sec 11:52:23.035 IGMP querier timeout : 41 sec 11:52:23.035 **Failed adding VIF 1 (MRT_ADD_VIF) for iface em1: Address alr= eady in use** --=20 You are receiving this mail because: You are the assignee for the bug.=