panic: pool_do_put: shmpl: double pool_put: 0xfffffd8072339858 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 35310 12437 0 0 0x4000000 1 syz-executor 116469 63650 0 0 0x4000080 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83073b6a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_put(ffffffff83633a50,fffffd8072339858) at pool_do_put+0x1be sys/kern/subr_pool.c:841 pool_put(ffffffff83633a50,fffffd8072339858) at pool_put+0xb3 sys/kern/subr_pool.c:799 shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 syscall(ffff800030bc63e0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030bc63e0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed3202425f0, count: 8 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: pool_do_put: shmpl: double pool_put: 0xfffffd8072339858 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83073b6a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_put(ffffffff83633a50,fffffd8072339858) at pool_do_put+0x1be sys/kern/subr_pool.c:841 pool_put(ffffffff83633a50,fffffd8072339858) at pool_put+0xb3 sys/kern/subr_pool.c:799 shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 syscall(ffff800030bc63e0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030bc63e0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed3202425f0, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800030bc6110 rbx 0xffff800029b7cdbf rdx 0 rcx 0xffff8000ffff2530 rax 0xffff800029b7bff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x77e6d8c2bc3c2375 r11 0x7b5fdac64a9829ab r12 0xffff800029b7cbc0 r13 0 r14 0 r15 0x1 rip 0xffffffff82f8ff85 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030bc6100 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor) tid=35310 pid=12437 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff36e8,0xffffffff835081e0 process=0xffff80003724c000 user=0xffff800030bc1000, vmspace=0xfffffd806bfec020 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12437 117033 94239 0 3 0x80 fsleep syz-executor 12437 494194 94239 0 3 0x4000080 fsleep syz-executor *12437 35310 94239 0 7 0x4000000 syz-executor 92601 232723 38670 0 3 0x80 fsleep syz-executor 92601 221831 38670 0 3 0x4000080 fsleep syz-executor 92601 143918 38670 0 3 0x4000080 fsleep syz-executor 92601 410553 38670 0 3 0x4000080 sbwait syz-executor 63650 405736 88825 0 3 0x80 fsleep syz-executor 63650 116469 88825 0 7 0x4000080 syz-executor 38471 422679 16927 0 3 0x80 fsleep syz-executor 38471 2648 16927 0 3 0x4000080 sbwait syz-executor 36345 344359 98711 0 3 0x80 fsleep syz-executor 36345 111237 98711 0 3 0x4000080 lockf syz-executor 49358 138861 42591 0 3 0x80 fsleep syz-executor 49358 479363 42591 0 3 0x4000080 ttyin syz-executor 11550 13612 11083 0 3 0x80 fsleep syz-executor 11550 36836 11083 0 3 0x4000080 bell syz-executor 43447 46862 85641 0 3 0x80 fsleep syz-executor 43447 516359 85641 0 3 0x4000080 fsleep syz-executor 43447 327972 85641 0 3 0x4000080 pipewr syz-executor 11083 74084 32765 0 3 0x82 nanoslp syz-executor 82656 338215 1 0 3 0x100083 ttyin getty 37388 476106 0 0 3 0x14200 acct acct 88825 83238 32765 0 3 0x82 nanoslp syz-executor 30890 41871 0 0 3 0x14280 nfsidl nfsio 38681 67469 0 0 3 0x14280 nfsidl nfsio 86990 271093 0 0 3 0x14280 nfsidl nfsio 95915 472324 0 0 3 0x14280 nfsidl nfsio 28074 503588 0 0 3 0x14280 nfsidl nfsio 27731 418547 0 0 3 0x14280 nfsidl nfsio 39359 355456 0 0 3 0x14280 nfsidl nfsio 39186 401952 0 0 3 0x14280 nfsidl nfsio 62860 267206 0 0 3 0x14280 nfsidl nfsio 92722 2331 0 0 3 0x14280 nfsidl nfsio 95 319626 0 0 3 0x14280 nfsidl nfsio 21634 289046 0 0 3 0x14280 nfsidl nfsio 50614 483001 0 0 3 0x14280 nfsidl nfsio 66288 134831 0 0 3 0x14280 nfsidl nfsio 18687 132592 0 0 3 0x14280 nfsidl nfsio 62423 292271 0 0 3 0x14280 nfsidl nfsio 72128 97511 0 0 3 0x14280 nfsidl nfsio 73358 322547 0 0 3 0x14280 nfsidl nfsio 77339 451891 0 0 3 0x14280 nfsidl nfsio 84679 425909 0 0 3 0x14280 nfsidl nfsio 916 437124 0 0 3 0x14200 bored sosplice 94239 314693 32765 0 3 0x82 nanoslp syz-executor 16927 54956 32765 0 3 0x82 nanoslp syz-executor 38670 502644 32765 0 3 0x82 nanoslp syz-executor 85641 93771 32765 0 3 0x82 nanoslp syz-executor 98711 478932 32765 0 3 0x82 nanoslp syz-executor 42591 22600 32765 0 3 0x82 nanoslp syz-executor 32765 34177 88061 0 3 0x82 kqread syz-executor 88061 200541 28037 0 3 0x10008a sigsusp ksh 28037 457618 31648 0 3 0x98 kqread sshd-session 31648 350924 9736 0 3 0x92 kqread sshd-session 9736 491479 1 0 3 0x88 kqread sshd 47878 264941 54707 74 3 0x1100092 bpf pflogd 54707 55077 1 0 3 0x80 sbwait pflogd 21298 451818 68493 73 3 0x1100090 kqread syslogd 68493 221273 1 0 3 0x100082 sbwait syslogd 67117 279402 1 0 3 0x100080 kqread resolvd 90421 5790 25741 77 3 0x100092 kqread dhcpleased 42470 194855 25741 77 3 0x100092 kqread dhcpleased 25741 3107 1 0 3 0x80 kqread dhcpleased 32051 248470 0 0 3 0x14200 bored smr 81371 514267 0 0 3 0x14200 pgzero zerothread 86732 95409 0 0 3 0x14200 aiodoned aiodoned 30533 45683 0 0 3 0x14200 syncer update 80952 354611 0 0 3 0x14200 cleaner cleaner 52375 481834 0 0 3 0x14200 reaper reaper 64148 46517 0 0 3 0x14200 pgdaemon pagedaemon 92010 341195 0 0 3 0x14200 bored viomb 60341 66842 0 0 3 0x40014200 acpi0 acpi0 38902 63409 0 0 3 0x40014200 idle1 76561 483378 0 0 3 0x14200 bored softnet3 84013 196241 0 0 3 0x14200 bored softnet2 21992 416236 0 0 3 0x14200 bored softnet1 86442 310324 0 0 3 0x14200 bored softnet0 66436 142586 0 0 3 0x14200 bored systqmp 66311 97226 0 0 3 0x14200 bored systq 82762 481411 0 0 3 0x14200 tmoslp softclockmp 15865 418544 0 0 3 0x40014200 tmoslp softclock 12165 510820 0 0 3 0x40014200 idle0 1 420258 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex shmpl r = 0 (0xffffffff83633a60) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_put+0x9f sys/kern/subr_pool.c:797 #4 shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] #4 shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 Process 12437 (syz-executor) thread 0xffff8000ffff36e8 (494194) exclusive rwlock futex r = 0 (0xffffffff8341c4a0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 sys_futex+0x69 sys/kern/sys_futex.c:98 #2 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #2 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #3 Xsyscall+0x128 Process 12437 (syz-executor) thread 0xffff8000ffff2530 (35310) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835a1e58) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x278 sys/kern/kern_synch.c:417 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5257 #6 uvm_unmap+0x81 sys/uvm/uvm_map.c:1792 #7 shm_delete_mapping+0xa0 sys/kern/sysv_shm.c:170 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive mutex shmpl r = 0 (0xffffffff83633a60) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pool_put+0x9f sys/kern/subr_pool.c:797 #4 shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] #4 shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 #5 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10222 11129K 11633K 166960K 13440 0 pcb 20 15K 17K 166960K 378 0 rtable 206 7K 8K 166960K 564 0 pf 35 17K 25K 166960K 90 0 ifaddr 39 6K 7K 166960K 75 0 ifgroup 55 2K 2K 166960K 104 0 sysctl 4 1K 2K 166960K 7 0 counters 64 36K 36K 166960K 94 0 ioctlops 0 0K 4K 166960K 1738 0 iov 1 0K 20K 166960K 104 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1491 94K 94K 166960K 2779 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 32 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 120 0 dirhash 12 2K 2K 166960K 51 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 89K 166960K 1636 0 sigio 0 0K 0K 166960K 37 0 proc 72 91K 128K 166960K 754 0 subproc 104 6K 6K 166960K 133 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 217 0 in_multi 87 6K 7K 166960K 174 0 ether_multi 1 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 623 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 250 73K 87K 166960K 16975 0 UVM aobj 65 3K 4K 166960K 70 0 pinsyscall 43 86K 105K 166960K 2819 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 109 0 NDP 12 0K 2K 166960K 52 0 temp 77 6824K 6899K 166960K 68439 0 kqueue 13 20K 30K 166960K 252 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 205 0 201 3 2 1 2 0 8 0 rtentry 112 172 0 79 4 0 4 4 0 8 0 unpcb 144 1439 0 1416 14 8 6 6 0 8 5 syncache 336 15 0 15 6 6 0 1 0 8 0 tcpcb 808 540 0 535 13 5 8 8 0 8 7 arp 120 29 0 13 1 0 1 1 0 8 0 ipq 40 2 0 1 2 1 1 1 0 8 0 ipqe 40 4 0 3 2 1 1 1 0 8 0 inpcb 336 1902 0 1887 18 11 7 7 0 8 5 nd6 136 42 0 14 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 3 0 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1168 7 0 7 5 5 0 1 0 8 0 pffrag 232 6 0 0 1 0 1 1 0 482 0 pffrnode 88 5 0 0 1 0 1 1 0 8 0 pffrent 40 9 0 2 2 1 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 pfstitem 24 69 0 52 1 0 1 1 0 8 0 pfstkey 128 71 0 54 2 0 2 2 0 8 0 pfstate 376 70 0 53 6 0 6 6 0 8 1 pfrule 1344 28 0 21 2 0 2 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 725 0 301 32 5 27 30 0 8 0 art_table 32 728 0 301 4 0 4 4 0 8 0 art_node 16 169 0 88 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 18 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 117 0 107 1 0 1 1 0 8 0 shmpl 112 67 0 5 2 0 2 2 0 8 0 pool(shmpl): free list modified: page 0xfffffd8072339000; item ordinal 0; addr 0xfffffd8072339858 (p 0xfffffd8072339000); offset 0x1c=0xdeafbeac dirhash 1024 44 0 27 3 0 3 3 0 8 0 dino2pl 256 4284 0 2778 95 0 95 95 0 8 0 ffsino 272 4284 0 2778 101 0 101 101 0 8 0 nchpl 144 6601 0 4905 64 0 64 64 0 8 0 uvmvnodes 80 5266 0 0 108 0 108 108 0 8 0 vnodes 216 5266 0 0 293 0 293 293 0 8 0 namei 1024 22665 0 22665 4 3 1 2 0 8 1 percpumem 16 61 0 15 1 0 1 1 0 8 0 kstatmem 264 54 0 30 2 0 2 2 0 8 0 scsiplug 72 7 0 7 4 4 0 1 0 8 0 scxspl 216 18764 0 18764 14 13 1 8 1 8 1 plimitpl 152 506 0 487 1 0 1 1 0 8 0 sigapl 424 1967 0 1895 9 0 9 9 0 8 0 futexpl 64 27066 0 27054 1 0 1 1 0 8 0 knotepl 120 574 0 0 17 0 17 17 0 8 0 kqueuepl 216 459 0 448 5 4 1 5 0 8 0 pipepl 320 296 0 268 5 2 3 5 0 8 0 fdescpl 496 1925 0 1893 5 0 5 5 0 8 0 filepl 152 12530 0 12257 28 9 19 20 0 8 8 lockfpl 104 719 0 713 2 1 1 2 0 8 0 lockfspl 48 267 0 262 1 0 1 1 0 8 0 sessionpl 144 36 0 27 1 0 1 1 0 8 0 pgrppl 48 72 0 55 1 0 1 1 0 8 0 ucredpl 104 2323 0 2310 1 0 1 1 0 8 0 zombiepl 144 1895 0 1895 2 1 1 1 0 8 1 processpl 1160 1967 0 1895 6 0 6 6 0 8 0 procpl 648 4392 0 4308 8 0 8 8 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 6 0 6 4 4 0 1 0 8 0 sockpl 664 3581 0 3539 39 27 12 20 0 8 8 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 148 0 0 19 0 19 19 0 8 0 mcl2k 2048 29 0 0 4 0 4 4 0 8 0 mtagpl 96 163 0 0 4 0 4 4 0 8 0 mbufpl 256 495 0 0 31 0 31 31 0 8 0 bufpl 280 5052 0 105 354 0 354 354 0 8 0 anonpl 24 305161 0 300717 117 66 51 75 0 185 10 amapchunkpl 152 55496 0 54917 44 20 24 32 0 158 1 amappl16 200 7475 0 7436 82 67 15 27 0 8 11 amappl15 192 35 0 35 1 1 0 1 0 8 0 amappl14 184 144 0 132 1 0 1 1 0 8 0 amappl13 176 79 0 79 1 1 0 1 0 8 0 amappl12 168 2611 0 2579 4 1 3 3 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 25 0 25 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 25 0 21 1 0 1 1 0 8 0 amappl7 128 121 0 108 1 0 1 1 0 8 0 amappl6 120 185 0 184 1 0 1 1 0 8 0 amappl5 112 154 0 142 1 0 1 1 0 8 0 amappl4 104 378 0 358 1 0 1 1 0 8 0 amappl3 96 10300 0 10200 3 0 3 3 0 8 0 amappl2 88 2316 0 2230 3 0 3 3 0 8 0 amappl1 80 14953 0 14381 15 2 13 14 0 8 0 amappl 88 16291 0 16104 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 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 6 0 6 1 1 0 1 0 8 0 dma128 128 255 0 255 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 69 0 5 2 0 2 2 0 8 0 pool(aobjpl): free list modified: page 0xfffffd807236b000; item ordinal 0; addr 0xfffffd807236bb00 (p 0xfffffd807236b000); offset 0xc=0xdeaf4151 uaddrrnd 24 1925 0 1893 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1925 0 1893 1 0 1 1 0 8 0 vmmpekpl 168 17001 0 16959 3 0 3 3 0 8 0 vmmpepl 168 125528 0 123587 127 32 95 105 0 357 6 vmsppl 448 1924 0 1893 6 2 4 5 0 8 0 rwobjpl 56 41286 0 34997 94 3 91 91 0 8 1 pdppl 4096 3857 0 3786 121 50 71 83 0 8 0 pvpl 32 17856 0 0 144 0 144 144 0 265 0 pmappl 248 1924 0 1893 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 468 0 90 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83423ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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(ffffffff835a1c50) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1c50) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff800035997b00,ffff800000079a00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge18_untramp() at Xintr_ioapic_edge18_untramp+0x18f __mp_lock(ffffffff835a1c50) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1c50) at __mp_lock+0x199 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff835a1c50,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x278 sys/kern/kern_synch.c:417 ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb ttysleep_nsec sys/kern/tty.c:2326 [inline] ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb ttysleep sys/kern/tty.c:2316 [inline] ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb sys/kern/tty.c:1902 spec_write(ffff800035998060) at spec_write+0x120 sys/kern/spec_vnops.c:302 VOP_WRITE(fffffd805f00e898,ffff800035998280,1,fffffd807f7d3410) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807ca121d8,ffff800035998280,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 end trace frame: 0xffff8000359981f0, count: 0 ddb{0}> trace x86_ipi_db(ffffffff83423ff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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(ffffffff835a1c50) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1c50) at __mp_lock+0x192 sys/kern/kern_lock.c:144 intr_handler(ffff800035997b00,ffff800000079a00) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge18_untramp() at Xintr_ioapic_edge18_untramp+0x18f __mp_lock(ffffffff835a1c50) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835a1c50) at __mp_lock+0x199 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff835a1c50,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x278 sys/kern/kern_synch.c:417 ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb ttysleep_nsec sys/kern/tty.c:2326 [inline] ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb ttysleep sys/kern/tty.c:2316 [inline] ttwrite(ffff800000b55a00,ffff800035998280,1) at ttwrite+0xabb sys/kern/tty.c:1902 spec_write(ffff800035998060) at spec_write+0x120 sys/kern/spec_vnops.c:302 VOP_WRITE(fffffd805f00e898,ffff800035998280,1,fffffd807f7d3410) at VOP_WRITE+0x102 sys/kern/vfs_vops.c:245 vn_write(fffffd807ca121d8,ffff800035998280,0) at vn_write+0x1d1 sys/kern/vfs_vnops.c:408 dofilewritev(ffff80003724ace0,5,ffff800035998280,0,ffff800035998340) at dofilewritev+0x23c sys/kern/sys_generic.c:380 sys_writev(ffff80003724ace0,ffff8000359983f0,ffff800035998340) at sys_writev+0xd8 sys/kern/sys_generic.c:327 syscall(ffff8000359983f0) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000359983f0) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x89253d4d290, count: -18 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:437 panic(ffffffff83073b6a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_put(ffffffff83633a50,fffffd8072339858) at pool_do_put+0x1be sys/kern/subr_pool.c:841 pool_put(ffffffff83633a50,fffffd8072339858) at pool_put+0xb3 sys/kern/subr_pool.c:799 shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 syscall(ffff800030bc63e0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030bc63e0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed3202425f0, count: 8 ddb{1}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff83073b6a) at panic+0x1e5 sys/kern/subr_prf.c:198 pool_do_put(ffffffff83633a50,fffffd8072339858) at pool_do_put+0x1be sys/kern/subr_pool.c:841 pool_put(ffffffff83633a50,fffffd8072339858) at pool_put+0xb3 sys/kern/subr_pool.c:799 shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac shm_deallocate_segment sys/kern/sysv_shm.c:153 [inline] shm_delete_mapping(fffffd806bfec020,ffff8000012bc008) at shm_delete_mapping+0x1ac sys/kern/sysv_shm.c:174 syscall(ffff800030bc63e0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800030bc63e0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xed3202425f0, count: -7