From nobody Wed Jul 21 04:55:14 2021 X-Original-To: net@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 CF3F212B567A for ; Wed, 21 Jul 2021 04:55:13 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GV3DK5R6Lz3JKf for ; Wed, 21 Jul 2021 04:55:13 +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 A320A1830D for ; Wed, 21 Jul 2021 04:55:13 +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 16L4tDU8035316 for ; Wed, 21 Jul 2021 04:55:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16L4tDaN035315 for net@FreeBSD.org; Wed, 21 Jul 2021 04:55:13 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: net@FreeBSD.org Subject: [Bug 257302] net/syncthing: Panic in in6_getmulti at /usr/src/sys/netinet6/in6_mcast.c:451 Date: Wed, 21 Jul 2021 04:55:14 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-STABLE X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lxv@omut.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? mfc-stable13? mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257302 --- Comment #4 from Alex Vasylenko --- The following golang program reproduces the issue, no root required; it was= a mcast join on ipfw0 after all, but has to be an IPv6 join. $ cat mcast6_join.go package main import ( "fmt" "net" "golang.org/x/net/ipv6" ) func main() { addr :=3D "[ff12::8384]:21027" gaddr, err :=3D net.ResolveUDPAddr("udp6", addr) if err !=3D nil { fmt.Println(err) return } conn, err :=3D net.ListenPacket("udp6", addr) if err !=3D nil { fmt.Println(err) return } defer conn.Close() intf, err :=3D net.InterfaceByName("ipfw0") if err !=3D nil { fmt.Println(err) return } pconn :=3D ipv6.NewPacketConn(conn) result :=3D pconn.JoinGroup(intf, &net.UDPAddr{IP: gaddr.IP}) if result !=3D nil { fmt.Println("IPv6 join", intf.Name, "failed:", result) } else { fmt.Println("IPv6 join", intf.Name, "success") } } net/syncthing has something like the above in https://github.com/syncthing/syncthing/blob/main/lib/beacon/multicast.go#L1= 01 (except they perform join on all interfaces in a loop ignoring multicast fl= ag, but that's beside the point) A relevant part from vmcore that I failed to include in the original report= was this: (kgdb) f 14 #14 0xffffffff80c584d6 in sosetopt (so=3D0xfffff80012986a38, sopt=3D0xfffffe005c3cfb98) at /usr/src/sys/kern/uipc_socket.c:2761 2761 error =3D (*so->so_proto->pr_ctloutput)(so, sopt); (kgdb) set print pretty (kgdb) p *sopt $1 =3D { sopt_dir =3D SOPT_SET, sopt_level =3D 41, sopt_name =3D 80, sopt_val =3D 0xc000320900, sopt_valsize =3D 136, sopt_td =3D 0xfffff800126f9000 } optname 80 is MCAST_JOIN_GROUP --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=