panic: kernel diagnostic assertion "refs != ~0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_synch.c", line 959 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 326299 3300 0 0x102002 0 0 ndp * 8150 88672 0 0 0x4000000 1K syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ca0a4) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835066cc,ffffffff83519547,3bf,ffffffff83542554) at __assert+0x29 sys/kern/subr_prf.c:-1 refcnt_finalize(ffff80002bf9f770,ffffffff834bf56f) at refcnt_finalize+0x1e7 sys/kern/kern_synch.c:960 pppx_if_destroy(285b9c,ffff80002bf9f768) at pppx_if_destroy+0x3d sys/net/if_pppx.c:794 pppxclose(285b9c,1,2000,ffff800045fee018) at pppxclose+0xa0 sys/net/if_pppx.c:541 spec_close(ffff80002a3040b0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3000bdc8478,1,fffff300097fd3a8,ffff800045fee018) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff30072eb2028,ffff800045fee018) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff30072eb2028,ffff800045fee018) at closef+0x192 sys/kern/kern_descrip.c:1265 sys_closefrom(ffff800045fee018,ffff80002a304380,ffff80002a3042d0) at sys_closefrom+0x13c sys/kern/kern_descrip.c:1471 syscall(ffff80002a304380) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a304380) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e18b5790, count: 1 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "refs != ~0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_synch.c", line 959 ddb{1}> show kasan No such command ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ca0a4) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835066cc,ffffffff83519547,3bf,ffffffff83542554) at __assert+0x29 sys/kern/subr_prf.c:-1 refcnt_finalize(ffff80002bf9f770,ffffffff834bf56f) at refcnt_finalize+0x1e7 sys/kern/kern_synch.c:960 pppx_if_destroy(285b9c,ffff80002bf9f768) at pppx_if_destroy+0x3d sys/net/if_pppx.c:794 pppxclose(285b9c,1,2000,ffff800045fee018) at pppxclose+0xa0 sys/net/if_pppx.c:541 spec_close(ffff80002a3040b0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3000bdc8478,1,fffff300097fd3a8,ffff800045fee018) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff30072eb2028,ffff800045fee018) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff30072eb2028,ffff800045fee018) at closef+0x192 sys/kern/kern_descrip.c:1265 sys_closefrom(ffff800045fee018,ffff80002a304380,ffff80002a3042d0) at sys_closefrom+0x13c sys/kern/kern_descrip.c:1471 syscall(ffff80002a304380) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a304380) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e18b5790, count: -14 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a303e70 rbx 0xffff80002999ee0f rdx 0 rcx 0xffff800045fee018 rax 0xffff80002999dff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb18d9d6792218a25 r11 0x95f3c9cbba0c49a5 r12 0xffff80002999ec10 r13 0 r14 0 r15 0x1 rip 0xffffffff82967815 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a303e60 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=8150 pid=88672 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=77, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fee7e0,0xffff800045feefb8 process=0xffff800045ff5368 user=0xffff80002a2ff000, vmspace=0xfffff3006fbce990 estcpu=27, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 3300 326299 78340 0 7 0x102002 0 ndp 78340 686 18420 0 3 0x100002 0x88 sigsusp sh 88672 35129 73712 0 2 0 0 syz-executor 88672 362649 73712 0 3 0 0x4000000 smrbar syz-executor *88672 8150 73712 0 7 0 0x4000000 syz-executor 88672 522363 73712 0 3 0 0x4000080 fsleep syz-executor 18420 170025 17706 0 3 0x2 0x80 wait syz-executor 43614 458672 17706 0 3 0x2 0x80 piperd syz-executor 73712 55648 17706 0 3 0x2 0x80 nanoslp syz-executor 79014 330969 1 0 3 0x100003 0x80 ttyin getty 17706 210804 1 0 3 0x2 0x80 wait syz-executor 6969 466599 21516 0 3 0x10 0x88 kqread sshd-session 21516 272772 1 0 3 0x12 0x80 kqread sshd-session 84365 10185 1 74 3 0x1100012 0x80 bpf pflogd 73966 36361 1 73 3 0x1100010 0x80 kqread syslogd 92738 287156 0 0 3 0x14000 0x200 bored smr 46857 515637 0 0 2 0x14000 0x200 zerothread 70942 238986 0 0 3 0x14000 0x200 aiodoned aiodoned 27980 350479 0 0 3 0x14000 0x200 syncer update 64267 52466 0 0 3 0x14000 0x200 cleaner cleaner 44064 15069 0 0 3 0x14000 0x200 reaper reaper 46784 123404 0 0 3 0x14000 0x200 pgdaemon pagedaemon 22961 474936 0 0 3 0x14000 0x200 bored viomb 29374 479095 0 0 3 0x14000 0x40000200 acpi0 acpi0 11399 514841 0 0 3 0x14000 0x40000200 idle1 69709 59762 0 0 3 0x14000 0x200 bored softnet1 11206 95685 0 0 3 0x14000 0x200 bored softnet0 70395 32643 0 0 3 0x14000 0x200 smrbar systqmp 37881 155662 0 0 3 0x14000 0x200 bored systq 59377 165770 0 0 3 0x14000 0x200 tmoslp softclockmp 80626 165585 0 0 3 0x14000 0x40000200 tmoslp softclock 45509 308643 0 0 3 0x14000 0x40000200 idle0 1 134925 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 3300 (ndp) thread 0xffff800031f85a18 (326299) shared rwlock uobjlk r = 0 (0xfffff3007b5f43d8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvm_fault_lower_lookup+0x53 sys/uvm/uvm_fault.c:1204 #3 uvm_fault_lower+0x89 sys/uvm/uvm_fault.c:1334 #4 uvm_fault+0x274 sys/uvm/uvm_fault.c:-1 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:194 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:648 #7 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffff3000b1f7a88) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1880 #3 uvm_fault_check+0x4f sys/uvm/uvm_fault.c:693 #4 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:194 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:648 #7 recall_trap+0x8 Process 88672 (syz-executor) thread 0xffff800045fee018 (8150) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83ae17c0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 vn_closefile+0x41 sys/kern/vfs_vnops.c:614 #2 fdrop+0x121 sys/kern/kern_descrip.c:1281 #3 closef+0x192 sys/kern/kern_descrip.c:1265 #4 sys_closefrom+0x13c sys/kern/kern_descrip.c:1471 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #6 Xsyscall+0x128 Process 70395 (systqmp) thread 0xffff800045ffe000 (32643) shared rwlock systqmp r = 0 (0xffffffff839ce5b8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11054 12081K 13853K 166960K 12788 0 pcb 17 16K 18K 166960K 163 0 rtable 244 8K 8K 166960K 2572 0 pf 38 18K 24K 166960K 263 0 ifaddr 45 8K 8K 166960K 357 0 ifgroup 60 2K 2K 166960K 382 0 sysctl 3 1K 9K 166960K 8 0 counters 74 37K 37K 166960K 248 0 ioctlops 0 0K 4K 166960K 1601 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1362 86K 86K 166960K 2223 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 27 1K 1K 166960K 27 0 dirhash 15 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 13 45K 93K 166960K 1475 0 sigio 0 0K 0K 166960K 2 0 proc 21 33K 180K 166960K 2631 0 subproc 72 4K 4K 166960K 730 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 20 0 in_multi 100 6K 6K 166960K 915 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 31 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 1353 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 125 99K 170K 166960K 11424 0 UVM aobj 16 2K 2K 166960K 17 0 pinsyscall 24 48K 108K 166960K 4573 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 8 0 NDP 15 0K 2K 166960K 257 0 temp 44 9120K 9162K 166960K 21768 0 kqueue 7 12K 28K 166960K 84 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 225 0 224 1 0 1 1 0 8 0 rtentry 176 924 0 813 7 1 6 6 0 8 0 unpcb 144 155 0 147 2 1 1 2 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 47 0 45 1 0 1 1 0 8 0 arp 136 165 0 147 1 0 1 1 0 8 0 inpcb 328 682 0 679 7 6 1 7 0 8 0 nd6 152 245 0 222 2 1 1 2 0 8 0 kcovpl 48 81 0 73 1 0 1 1 0 8 0 ppxss 1192 11 0 10 2 1 1 1 0 8 0 pppxif 1576 1 0 0 1 0 1 1 0 8 0 pffrag 232 3 0 2 1 0 1 1 0 482 0 pffrnode 88 3 0 2 1 0 1 1 0 8 0 pffrent 40 7 0 6 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfsrclim 320 1 0 1 1 1 0 1 0 8 0 pfstlim 224 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 18 0 18 1 1 0 1 0 8 0 pfstitem 24 59 0 19 1 0 1 1 0 8 0 pfstkey 128 60 0 20 2 0 2 2 0 8 0 pfstate 448 59 0 20 6 0 6 6 0 8 0 pfrule 1360 22 0 16 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3726 0 3266 36 7 29 32 0 8 0 art_table 40 3727 0 3266 6 1 5 6 0 8 0 art_node 32 924 0 823 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 25 0 0 1 0 1 1 0 8 0 shmpl 120 14 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 0 3 0 3 3 0 8 0 dino2pl 256 2078 0 440 103 0 103 103 0 8 0 ffsino 296 2078 0 440 127 0 127 127 0 8 0 nchpl 144 2608 0 656 73 0 73 73 0 8 0 rtmask 32 3 0 3 1 1 0 1 0 8 0 vnodes 216 2962 0 0 165 0 165 165 0 8 0 namei 1024 18100 0 18100 3 2 1 3 0 8 1 percpumem 16 140 0 87 1 0 1 1 0 8 0 kstatmem 264 193 0 164 3 1 2 3 0 8 0 scsiplug 72 5 0 5 2 1 1 1 0 8 1 scxspl 216 10919 0 10919 10 9 1 6 1 8 1 plimitpl 152 143 0 129 1 0 1 1 0 8 0 sigapl 424 1659 0 1624 7 1 6 7 0 8 0 knotepl 120 301 0 0 10 0 10 10 0 8 0 kqueuepl 224 163 0 157 5 4 1 5 0 8 0 pipepl 344 353 0 326 4 1 3 4 0 8 0 fdescpl 528 1643 0 1624 3 0 3 3 0 8 0 filepl 160 5624 0 5445 13 4 9 13 0 8 1 lockfpl 104 248 0 248 3 2 1 2 0 8 1 lockfspl 48 100 0 100 2 1 1 1 0 8 1 sessionpl 144 103 0 97 1 0 1 1 0 8 0 pgrppl 48 187 0 173 1 0 1 1 0 8 0 ucredpl 104 383 0 374 1 0 1 1 0 8 0 zombiepl 144 1629 0 1624 1 0 1 1 0 8 0 processpl 1240 1659 0 1624 5 1 4 5 0 8 0 procpl 664 2198 0 2160 6 1 5 6 0 8 0 sockpl 752 1083 0 1071 11 9 2 11 0 8 0 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 31 0 0 4 0 4 4 0 8 0 mextrefs 64 26 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 230 0 0 15 0 15 15 0 8 0 bufpl 272 4915 0 106 321 0 321 321 0 8 0 anonpl 32 6016 0 0 49 0 49 49 0 247 0 amapchunkpl 152 31117 0 30860 25 10 15 24 0 158 0 amappl16 200 2325 0 2321 14 4 10 10 0 8 9 amappl15 192 2 0 2 2 2 0 1 0 8 0 amappl14 184 1317 0 1316 1 0 1 1 0 8 0 amappl13 176 276 0 270 1 0 1 1 0 8 0 amappl12 168 2193 0 2176 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 65 0 61 1 0 1 1 0 8 0 amappl9 144 297 0 297 1 1 0 1 0 8 0 amappl8 136 415 0 413 1 0 1 1 0 8 0 amappl7 128 307 0 300 1 0 1 1 0 8 0 amappl6 120 887 0 885 1 0 1 1 0 8 0 amappl5 112 112 0 107 1 0 1 1 0 8 0 amappl4 104 526 0 516 1 0 1 1 0 8 0 amappl3 96 5793 0 5750 3 1 2 3 0 8 0 amappl2 88 1488 0 1448 2 0 2 2 0 8 0 amappl1 80 21022 0 20677 15 3 12 15 0 8 0 amappl 88 9318 0 9228 5 2 3 5 0 92 0 uvmvnodes 80 103 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 16 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1643 0 1624 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1643 0 1624 1 0 1 1 0 8 0 vmmpekpl 168 14261 0 14214 4 1 3 4 0 8 0 vmmpepl 168 114106 0 113079 89 20 69 89 0 357 8 vmsppl 488 1642 0 1624 5 1 4 5 0 8 0 rwobjpl 80 33728 0 33107 25 3 22 24 0 8 0 pdppl 4096 3293 0 3248 179 126 53 85 0 8 8 pvpl 32 12231 0 0 100 1 99 99 0 265 0 pmappl 256 1642 0 1624 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 699 0 139 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff838eaff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 sys_pledge(ffff800031f85a18,ffff800037b8f740,ffff800037b8f690) at sys_pledge+0x3b4 sys/kern/kern_pledge.c:527 syscall(ffff800037b8f740) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037b8f740) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7241be06fd10, count: 3 ddb{0}> trace x86_ipi_db(ffffffff838eaff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ae0fc0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 sys_pledge(ffff800031f85a18,ffff800037b8f740,ffff800037b8f690) at sys_pledge+0x3b4 sys/kern/kern_pledge.c:527 syscall(ffff800037b8f740) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800037b8f740) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7241be06fd10, count: -12 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x25: addq $0x8,%rsp db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ca0a4) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835066cc,ffffffff83519547,3bf,ffffffff83542554) at __assert+0x29 sys/kern/subr_prf.c:-1 refcnt_finalize(ffff80002bf9f770,ffffffff834bf56f) at refcnt_finalize+0x1e7 sys/kern/kern_synch.c:960 pppx_if_destroy(285b9c,ffff80002bf9f768) at pppx_if_destroy+0x3d sys/net/if_pppx.c:794 pppxclose(285b9c,1,2000,ffff800045fee018) at pppxclose+0xa0 sys/net/if_pppx.c:541 spec_close(ffff80002a3040b0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3000bdc8478,1,fffff300097fd3a8,ffff800045fee018) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff30072eb2028,ffff800045fee018) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff30072eb2028,ffff800045fee018) at closef+0x192 sys/kern/kern_descrip.c:1265 sys_closefrom(ffff800045fee018,ffff80002a304380,ffff80002a3042d0) at sys_closefrom+0x13c sys/kern/kern_descrip.c:1471 syscall(ffff80002a304380) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a304380) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e18b5790, count: 1 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834ca0a4) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff835066cc,ffffffff83519547,3bf,ffffffff83542554) at __assert+0x29 sys/kern/subr_prf.c:-1 refcnt_finalize(ffff80002bf9f770,ffffffff834bf56f) at refcnt_finalize+0x1e7 sys/kern/kern_synch.c:960 pppx_if_destroy(285b9c,ffff80002bf9f768) at pppx_if_destroy+0x3d sys/net/if_pppx.c:794 pppxclose(285b9c,1,2000,ffff800045fee018) at pppxclose+0xa0 sys/net/if_pppx.c:541 spec_close(ffff80002a3040b0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3000bdc8478,1,fffff300097fd3a8,ffff800045fee018) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff30072eb2028,ffff800045fee018) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff30072eb2028,ffff800045fee018) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff30072eb2028,ffff800045fee018) at closef+0x192 sys/kern/kern_descrip.c:1265 sys_closefrom(ffff800045fee018,ffff80002a304380,ffff80002a3042d0) at sys_closefrom+0x13c sys/kern/kern_descrip.c:1471 syscall(ffff80002a304380) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a304380) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e18b5790, count: -14