Date: Sun, 07 Mar 2021 20:32:46 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 254114] if_wg(4): panic on second ifconfig wg0 up Message-ID: <bug-254114-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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 <http://gnu.org/licenses/gpl.htm= l> 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: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-254114-227>