From owner-freebsd-bugs@freebsd.org Sun Mar 7 20:32:46 2021 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 B0092572F6C for ; Sun, 7 Mar 2021 20:32:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DttSt4QPvz3lhR for ; Sun, 7 Mar 2021 20:32:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 97A5357300E; Sun, 7 Mar 2021 20:32:46 +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 97674572CDE for ; Sun, 7 Mar 2021 20:32:46 +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 4DttSt3ZJmz3lhQ for ; Sun, 7 Mar 2021 20:32:46 +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 6D9661C91A for ; Sun, 7 Mar 2021 20:32:46 +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 127KWklg081056 for ; Sun, 7 Mar 2021 20:32:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 127KWk9k081055 for bugs@FreeBSD.org; Sun, 7 Mar 2021 20:32:46 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 254114] if_wg(4): panic on second ifconfig wg0 up Date: Sun, 07 Mar 2021 20:32:46 +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: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: decke@FreeBSD.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 attachments.created 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.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2021 20:32:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D254114 Bug ID: 254114 Summary: if_wg(4): panic on second ifconfig wg0 up Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: decke@FreeBSD.org Created attachment 223074 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D223074&action= =3Dedit core.txt If a wireguard interface is created the second time a reproducible panic oc= curs with 13.0-RC1/amd64. It works fine the first time but it looks like there is something left behind even after ifconfig wg0 down + destroy. The commands I used are: ifconfig wg0 create /usr/local/bin/wg setconf wg0 /usr/local/etc/wireguard-tools/wg0.conf ifconfig wg0 inet 10.7.0.10/24 alias ifconfig wg0 up ifconfig wg0 down ifconfig wg0 destroy ifconfig wg0 create /usr/local/bin/wg setconf wg0 /usr/local/etc/wireguard-tools/wg0.conf ifconfig wg0 inet 10.7.0.10/24 alias ifconfig wg0 up =3D> panic kgdb /usr/lib/debug/boot/kernel/kernel.debug vmcore.6=20 GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD] Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd13.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/debug/boot/kernel/kernel.debug... Unread portion of the kernel message buffer: <6>wg0: sc=3D0xfffff80004a13800 <6>wg0: link state changed to UP <6>wg0: link state changed to DOWN <6>wg0: sc=3D0xfffff80004a13800 <6>wg0: link state changed to UP Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0xffffffff02fafe60 fault code =3D supervisor write data, page not present instruction pointer =3D 0x20:0xffffffff80d1ba7e stack pointer =3D 0x0:0xfffffe00011f9780 frame pointer =3D 0x0:0xfffffe00011f9780 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 12 (irq51: virtio_pci1) trap number =3D 12 panic: page fault cpuid =3D 0 time =3D 1615148700 KDB: stack backtrace: #0 0xffffffff80c57095 at kdb_backtrace+0x65 #1 0xffffffff80c09c61 at vpanic+0x181 #2 0xffffffff80c09ad3 at panic+0x43 #3 0xffffffff8108a187 at trap_fatal+0x387 #4 0xffffffff8108a1df at trap_pfault+0x4f #5 0xffffffff8108983d at trap+0x27d #6 0xffffffff81060b68 at calltrap+0x8 #7 0xffffffff8231048a at wg_input+0xfa #8 0xffffffff80ddebfa at udp_append+0x5a #9 0xffffffff80dde8fa at udp_input+0x73a #10 0xffffffff80daeff5 at ip_input+0x125 #11 0xffffffff80d3ec9a at netisr_dispatch_src+0xca #12 0xffffffff80d23428 at ether_demux+0x148 #13 0xffffffff80d247ac at ether_nh_input+0x34c #14 0xffffffff80d3ec9a at netisr_dispatch_src+0xca #15 0xffffffff80d23879 at ether_input+0x69 #16 0xffffffff80a466a4 at vtnet_rxq_eof+0x7d4 #17 0xffffffff80a45dc7 at vtnet_rx_vq_process+0xb7 Uptime: 1m2s Dumping 119 out of 478 MB:..14%..27%..41%..54%..67%..81%..94% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 /usr/src/sys/amd64/include/pcpu_aux.h: No such file or directory. --=20 You are receiving this mail because: You are the assignee for the bug.=