From nobody Wed Jul 21 01:50:39 2021 X-Original-To: bugs@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 26EAA12B0C4D for ; Wed, 21 Jul 2021 01:50:39 +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 4GTz7M0Wyxz4ShS for ; Wed, 21 Jul 2021 01:50:39 +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 EAAAA155E4 for ; Wed, 21 Jul 2021 01:50:38 +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 16L1ocNj031645 for ; Wed, 21 Jul 2021 01:50:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 16L1ocqY031644 for bugs@FreeBSD.org; Wed, 21 Jul 2021 01:50:38 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 257302] net/syncthing panics system with mcast join on ipfw0 Date: Wed, 21 Jul 2021 01:50:39 +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.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lxv@omut.org 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257302 Bug ID: 257302 Summary: net/syncthing panics system with mcast join on ipfw0 Product: Base System Version: 12.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: lxv@omut.org It appears that syncthing (installed from port net/syncthing) manages to pa= nic the system shortly after start-up as follows: Jul 20 13:43:02 foam syslogd: kernel boot file is /boot/kernel/kernel Jul 20 13:43:02 foam kernel: Jul 20 13:43:02 foam syslogd: last message repeated 1 times Jul 20 13:43:02 foam kernel: Fatal trap 12: page fault while in kernel mode Jul 20 13:43:02 foam kernel: cpuid =3D 1; apic id =3D 01 Jul 20 13:43:02 foam kernel: fault virtual address =3D 0x28 Jul 20 13:43:02 foam kernel: fault code =3D supervisor read data, p= age not present Jul 20 13:43:02 foam kernel: instruction pointer =3D 0x20:0xffffffff80e04a0e Jul 20 13:43:02 foam kernel: stack pointer =3D 0x28:0xfffffe005c61cfa0 Jul 20 13:43:02 foam kernel: frame pointer =3D 0x28:0xfffffe005c61d060 Jul 20 13:43:02 foam kernel: code segment =3D base 0x0, limit 0xfffff, type 0x1b Jul 20 13:43:02 foam kernel: =3D DPL 0, pres 1, long 1, = def32 0, gran 1 Jul 20 13:43:02 foam kernel: processor eflags =3D interrupt enabled, resu= me, IOPL =3D 0 Jul 20 13:43:02 foam kernel: current process =3D 1226 (syncthing) Jul 20 13:43:02 foam kernel: trap number =3D 12 Jul 20 13:43:02 foam kernel: panic: page fault Jul 20 13:43:02 foam kernel: cpuid =3D 1 Jul 20 13:43:02 foam kernel: time =3D 1626802891 Jul 20 13:43:02 foam kernel: KDB: stack backtrace: Jul 20 13:43:02 foam kernel: #0 0xffffffff80c0ae35 at kdb_backtrace+0x65 Jul 20 13:43:02 foam kernel: #1 0xffffffff80bbf0eb at vpanic+0x17b Jul 20 13:43:02 foam kernel: #2 0xffffffff80bbef63 at panic+0x43 Jul 20 13:43:02 foam kernel: #3 0xffffffff8108f941 at trap_fatal+0x391 Jul 20 13:43:02 foam kernel: #4 0xffffffff8108f99f at trap_pfault+0x4f Jul 20 13:43:02 foam kernel: #5 0xffffffff8108efe6 at trap+0x286 Jul 20 13:43:02 foam kernel: #6 0xffffffff81066d48 at calltrap+0x8 Jul 20 13:43:02 foam kernel: #7 0xffffffff80e06e3d at ip6_setmoptions+0x101d Jul 20 13:43:02 foam kernel: #8 0xffffffff80e13929 at ip6_ctloutput+0x229 Jul 20 13:43:02 foam kernel: #9 0xffffffff80c584d6 at sosetopt+0xe6 Jul 20 13:43:02 foam kernel: #10 0xffffffff80c5da70 at kern_setsockopt+0xb0 Jul 20 13:43:02 foam kernel: #11 0xffffffff80c5d9b4 at sys_setsockopt+0x24 Jul 20 13:43:02 foam kernel: #12 0xffffffff810904f7 at amd64_syscall+0x387 (kgdb) where #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=3D) at /usr/src/sys/kern/kern_shutdown= .c:371 #2 0xffffffff80bbed05 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:451 #3 0xffffffff80bbf143 in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:880 #4 0xffffffff80bbef63 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:807 #5 0xffffffff8108f941 in trap_fatal (frame=3D0xfffffe005c3ceee0, eva=3D40)= at /usr/src/sys/amd64/amd64/trap.c:921 #6 0xffffffff8108f99f in trap_pfault (frame=3D0xfffffe005c3ceee0, usermode=3D, signo=3D, ucode=3D) at /usr/src/sys/amd64/amd64/trap.c:739 #7 0xffffffff8108efe6 in trap (frame=3D0xfffffe005c3ceee0) at /usr/src/sys/amd64/amd64/trap.c:405 #8 #9 0xffffffff80e04a0e in in6_getmulti (ifp=3D, group=3D0xfffffe005c3cf118, pinm=3D) at /usr/src/sys/netinet6/in6_mcast.c:451 #10 in6_joingroup_locked (ifp=3D, mcaddr=3D0xfffffe005c3cf11= 8, imf=3D0xfffff80012748dc0, pinm=3D0xfffff80012748dd8, delay=3D0) at /usr/src/sys/netinet6/in6_mcast.c:1241 #11 0xffffffff80e06e3d in in6p_join_group (inp=3D0xfffff800129673d0, sopt=3D) at /usr/src/sys/netinet6/in6_mcast.c:2089 #12 ip6_setmoptions (inp=3D0xfffff800129673d0, sopt=3D) at /usr/src/sys/netinet6/in6_mcast.c:2685 #13 0xffffffff80e13929 in ip6_ctloutput (so=3D0xfffff80012986a38, sopt=3D0xfffffe005c3cfb98) at /usr/src/sys/netinet6/ip6_output.c:1929 #14 0xffffffff80c584d6 in sosetopt (so=3D0xfffff80012986a38, sopt=3D0xfffffe005c3cfb98) at /usr/src/sys/kern/uipc_socket.c:2761 #15 0xffffffff80c5da70 in kern_setsockopt (td=3D0xfffff800126f9000, s=3D, level=3D, name=3D, val=3D, valseg=3D, valsize=3D136) at /usr/src/sys/kern/uipc_syscalls= .c:1272 #16 0xffffffff80c5d9b4 in sys_setsockopt (td=3D0xfffff80003023b40, uap=3D) at /usr/src/sys/kern/uipc_syscalls.c:1233 #17 0xffffffff810904f7 in syscallenter (td=3D0xfffff800126f9000) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144 #18 amd64_syscall (td=3D0xfffff800126f9000, traced=3D0) at /usr/src/sys/amd64/amd64/trap.c:1163 #19 #20 0x00000000004c310a in ?? () (kgdb) f 9 #9 0xffffffff80e04a0e in in6_getmulti (ifp=3D, group=3D0xfffffe005c3cf118, pinm=3D) at /usr/src/sys/netinet6/in6_mcast.c:451 451 inm->in6m_mli =3D MLD_IFINFO(ifp); (kgdb) p inm->in6m_ifp.if_dname $1 =3D 0xffffffff8249c850 "ipfw" I suspect the code path in the app is: - list all network interfaces having MULTICAST flag: https://github.com/syncthing/syncthing/blob/main/lib/upnp/upnp.go#L91 https://github.com/syncthing/syncthing/blob/main/lib/upnp/upnp.go#L103 - join https://github.com/syncthing/syncthing/blob/main/lib/upnp/upnp.go#L163 --=20 You are receiving this mail because: You are the assignee for the bug.=