From owner-freebsd-net@freebsd.org Tue Jan 15 08:03:17 2019 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4254814A5625 for ; Tue, 15 Jan 2019 08:03:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id CCA0E73911 for ; Tue, 15 Jan 2019 08:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 9016214A5624; Tue, 15 Jan 2019 08:03:16 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6D8DE14A5623 for ; Tue, 15 Jan 2019 08:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0C2247390C for ; Tue, 15 Jan 2019 08:03:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 335FC1D6E8 for ; Tue, 15 Jan 2019 08:03:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0F83Fpb010999 for ; Tue, 15 Jan 2019 08:03:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0F83Frw010998 for net@FreeBSD.org; Tue, 15 Jan 2019 08:03:15 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 234846] [lagg] race condition when adding port Date: Tue, 15 Jan 2019 08:03:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: alexandre.martins@stormshield.eu X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: shurd@FreeBSD.org X-Bugzilla-Flags: 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 MIME-Version: 1.0 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2019 08:03:17 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D234846 --- Comment #7 from Alexandre martins --- I have only the network thread, the ifconfig thread have its backtrace truncated, but the td->td_proc show me that the command was "ifconfig lagg0 aggport em0" The crash is due to the "lp_psc" field that is NULL into the "struct lagg_p= ort" There it is: (kgdb) bt #0 __curthread () at ./machine/pcpu.h:219 #1 doadump (textdump=3D) at ../../../kern/kern_shutdown.c:2= 98 #2 0xffffffff80459680 in kern_reboot (howto=3D260) at ../../../kern/kern_shutdown.c:486 #3 0xffffffff80459a25 in vpanic (fmt=3D, ap=3D) at ../../../kern/kern_shutdown.c:889 #4 0xffffffff804598f3 in panic (fmt=3D) at ../../../kern/kern_shutdown.c:818 #5 0xffffffff8067e848 in trap_fatal (frame=3D, eva=3D) at ../../../amd64/amd64/trap.c:858 #6 0xffffffff8067ec27 in trap_pfault (frame=3D, usermode=3D) at=20 ../../../amd64/amd64/trap.c:713 #7 0xffffffff8067e24a in trap (frame=3D0xfffffe0d900b4630) at ../../../amd64/amd64/trap.c:447 #8 #9 lacp_iscollecting (lgp=3D0xfffff80572adbe00) at ../../../net/ieee8023ad_lacp.h:324 #10 lagg_lacp_input (sc=3D, lp=3D0xfffff80572adbe00, m=3D) at ../../../net/if_lagg.c:2176 #11 0xffffffff80521155 in lagg_proto_input (sc=3D, m=3D, sc=3D, lp=3D, m=3D) at ../../../net/if_lagg.c:= 362 #12 lagg_input (ifp=3D0xfffff8034bfc3800, m=3D0xfffff8065cb60a00) at ../../../net/if_lagg.c:1667 #13 0xffffffff8051d555 in ether_input (ifp=3D0xfffff8034bfc3800, m=3D0xfffff8065cb60a00) at ../../../net/if_ethersubr.c:794 #14 0xffffffff8052d0fa in pollif_recv () at ../../../net/netisr_pollif.c:529 #15 0xffffffff8052c7a5 in swi_net (arg=3D0xfffffe10ca797880) at ../../../net/netisr.c:824 #16 0xffffffff8042fe5b in intr_event_execute_handlers (p=3D, ie=3D0xfffff8034bf12a00)=20 at ../../../kern/kern_intr.c:1297 #17 0xffffffff80430456 in ithread_execute_handlers (ie=3D, p=3D)=20 at ../../../kern/kern_intr.c:1310 #18 ithread_loop (arg=3D0xfffff8034befd7c0) at ../../../kern/kern_intr.c:13= 94 #19 0xffffffff8042d595 in fork_exit (callout=3D0xffffffff804303c0 , arg=3D0xfffff8034befd7c0,=20 frame=3D0xfffffe0d900b49c0) at ../../../kern/kern_fork.c:1027 #20 --=20 You are receiving this mail because: You are on the CC list for the bug.=