panic: WApRoNolIN_Gc:a cShPLe _iNOteT mL_OmWaEgRiEcD_c OhNe cSkY:S CmAbuLLf pl2 c-1p6u5 0f2r1e10e1 1l iEstXI Tm od0 iafi e d:Stopped at savectx+0xb1: movl $0,%gs:0x530 TID PID UID PRFLAGS PFLAGS CPU COMMAND *310264 96266 0 0x2 0 1 syz-executor.0 360307 70429 0 0x12 0 0 sshd savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffffa8f0, count: 14 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 pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd80667b2b00+24 0x76a281f065e42442!=0x76a281700d2d3a42 ddb{1}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffffa8f0, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800020edc1f0 rbx 0 rdx 0x8b rcx 0x2 rax 0x3b r8 0xffffffff81ec8d2f kprintf+0x16f r9 0x1 r10 0x2 r11 0xedf1b4179adbce34 r12 0 r13 0 r14 0xffff800020ddc278 r15 0 rip 0xffffffff811173f1 savectx+0xb1 cs 0x8 rflags 0x46 rsp 0xffff800020edc170 ss 0x10 savectx+0xb1: movl $0,%gs:0x530 ddb{1}> show proc PROC (syz-executor.0) pid=310264 stat=onproc flags process=2 proc=0 pri=16, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc758,0xffff800020e04af8 process=0xffff800020df07d0 user=0xffff800020ed7000, vmspace=0xfffffd807efffcf0 estcpu=36, cpticks=2, pctcpu=0.51 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 36331 403507 96266 0 2 0 syz-executor.0 27348 319243 0 0 3 0x14200 acct acct 52867 228938 0 0 3 0x14200 bored sosplice 7040 408335 62508 0 3 0x82 piperd syz-executor.1 *96266 310264 62508 0 7 0x2 syz-executor.0 62508 258673 80234 0 3 0x82 thrsleep syz-fuzzer 62508 168720 80234 0 3 0x4000082 nanosleep syz-fuzzer 62508 448917 80234 0 3 0x4000082 thrsleep syz-fuzzer 62508 184901 80234 0 3 0x4000082 thrsleep syz-fuzzer 62508 273538 80234 0 3 0x4000082 thrsleep syz-fuzzer 62508 385235 80234 0 2 0x4000002 syz-fuzzer 62508 412139 80234 0 3 0x4000082 thrsleep syz-fuzzer 62508 128831 80234 0 3 0x4000082 thrsleep syz-fuzzer 62508 516399 80234 0 2 0x4000002 syz-fuzzer 62508 182589 80234 0 3 0x4000082 thrsleep syz-fuzzer 80234 164179 70429 0 3 0x10008a pause ksh 70429 360307 79734 0 7 0x12 sshd 58665 32714 1 0 3 0x100083 ttyin getty 79734 303908 1 0 3 0x80 select sshd 43985 196138 97174 74 3 0x100092 bpf pflogd 97174 182726 1 0 3 0x80 netio pflogd 31846 47421 86625 73 3 0x100090 kqread syslogd 86625 428277 1 0 3 0x100082 netio syslogd 16356 297334 1 77 3 0x100090 poll dhclient 57649 286200 1 0 3 0x80 poll dhclient 18555 249216 0 0 3 0x14200 bored smr 3177 68947 0 0 2 0x14200 zerothread 52076 324615 0 0 3 0x14200 aiodoned aiodoned 73241 470991 0 0 3 0x14200 syncer update 80603 77671 0 0 3 0x14200 cleaner cleaner 90617 40208 0 0 3 0x14200 reaper reaper 52679 115449 0 0 3 0x14200 pgdaemon pagedaemon 51053 80514 0 0 3 0x14200 bored crynlk 15693 17931 0 0 3 0x14200 bored crypto 73380 247741 0 0 3 0x40014200 acpi0 acpi0 90224 285459 0 0 3 0x40014200 idle1 87789 17732 0 0 3 0x14200 bored softnet 18834 338207 0 0 3 0x14200 bored systqmp 98549 284338 0 0 3 0x14200 bored systq 36820 338583 0 0 3 0x40014200 bored softclock 66397 375354 0 0 3 0x40014200 idle0 1 222450 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &map->flags_lock r = 0 (0xffffffff828040c0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 vm_map_lock_ln+0x132 sys/uvm/uvm_map.c:5448 #4 uvm_map+0x2d0 sys/uvm/uvm_map.c:1236 #5 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:335 #6 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274 #7 fork1+0x271 sys/kern/kern_fork.c:365 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 96266 (syz-executor.0) thread 0xffff800020ddc278 (310264) exclusive rwlock kmmaplk r = 0 (0xffffffff82804038) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 vm_map_lock_ln+0x111 sys/uvm/uvm_map.c:5445 #3 uvm_map+0x2d0 sys/uvm/uvm_map.c:1236 #4 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:335 #5 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274 #6 fork1+0x271 sys/kern/kern_fork.c:365 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828c8768) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 exclusive mutex &map->flags_lock r = 0 (0xffffffff828040c0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 vm_map_lock_ln+0x132 sys/uvm/uvm_map.c:5448 #4 uvm_map+0x2d0 sys/uvm/uvm_map.c:1236 #5 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:335 #6 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274 #7 fork1+0x271 sys/kern/kern_fork.c:365 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 70429 (sshd) thread 0xffff800020e4d9d0 (360307) exclusive rwlock netlock r = 0 (0xffffffff826ebbd8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:543 #3 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #4 sys_write+0x83 sys/kern/sys_generic.c:285 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9528 6435K 6693K 78643K 11121 0 pcb 13 8K 8K 78643K 55 0 rtable 102 3K 5K 78643K 389 0 ifaddr 84 16K 17K 78643K 171 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 61 0 ioctlops 0 0K 4K 78643K 1529 0 iov 0 0K 16K 78643K 378 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1415 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 65 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 456 0 sigio 0 0K 0K 78643K 7 0 proc 62 63K 83K 78643K 492 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 26 0 in_multi 65 3K 3K 78643K 161 0 ether_multi 1 0K 0K 78643K 6 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 231 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 123 55K 55K 78643K 2415 0 UVM aobj 31 2K 2K 78643K 31 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 27 0 NDP 13 0K 0K 78643K 41 0 temp 125 3867K 3931K 78643K 12610 0 kqueue 3 4K 12K 78643K 18 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 34 0 32 1 0 1 1 0 8 0 rtentry 112 83 0 42 2 0 2 2 0 8 0 unpcb 120 177 0 167 1 0 1 1 0 8 0 syncache 264 11 0 11 3 3 0 1 0 8 0 tcpqe 32 427 0 427 2 2 0 1 0 8 0 tcpcb 544 134 0 128 2 0 2 2 0 8 1 inpcb 296 463 0 454 3 1 2 2 0 8 1 rttmr 72 1 0 1 1 0 1 1 0 8 1 nd6 48 26 0 23 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 2 0 2 2 1 1 1 0 8 1 pffrag 232 6 0 6 1 1 0 1 0 482 0 pffrnode 88 6 0 6 1 1 0 1 0 8 0 pffrent 40 229 0 229 2 2 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 14 0 14 1 1 0 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 50 0 16 1 0 1 1 0 8 0 pfstkey 112 50 0 16 2 0 2 2 0 8 0 pfstate 328 50 0 16 3 0 3 3 0 8 0 pfrule 1360 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 331 0 130 13 0 13 13 0 8 0 art_table 32 333 0 130 2 0 2 2 0 8 0 art_node 16 82 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 63 0 53 1 0 1 1 0 8 0 shmpl 112 28 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2136 0 734 89 0 89 89 0 8 0 ffsino 272 2136 0 734 94 0 94 94 0 8 0 nchpl 144 3172 0 1564 60 0 60 60 0 8 0 uvmvnodes 72 2298 0 0 42 0 42 42 0 8 0 vnodes 208 2298 0 0 121 0 121 121 0 8 0 namei 1024 8771 0 8771 2 1 1 1 0 8 1 percpumem 16 41 0 9 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 9 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 4 0 4 1 1 0 1 0 8 0 scxspl 192 8935 0 8935 11 8 3 7 0 8 3 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 424 673 0 640 4 0 4 4 0 8 0 futexpl 56 7945 0 7945 2 1 1 1 0 8 1 knotepl 112 83 0 64 1 0 1 1 0 8 0 kqueuepl 144 53 0 51 1 0 1 1 0 8 0 pipepl 304 136 0 126 5 3 2 2 0 8 1 fdescpl 496 656 0 640 3 0 3 3 0 8 0 filepl 152 4033 0 3933 6 0 6 6 0 8 2 lockfpl 104 338 0 337 1 0 1 1 0 8 0 lockfspl 48 150 0 149 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 22 0 11 1 0 1 1 0 8 0 ucredpl 96 421 0 412 1 0 1 1 0 8 0 zombiepl 144 640 0 640 1 0 1 1 0 8 1 processpl 992 673 0 640 5 0 5 5 0 8 0 procpl 624 1517 0 1475 4 0 4 4 0 8 0 sosppl 128 8 0 8 3 2 1 1 0 8 1 sockpl 400 680 0 659 5 1 4 4 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 192 0 0 23 0 23 23 0 8 0 mtagpl 96 47 0 0 2 0 2 2 0 8 0 mbufpl 256 372 0 0 22 0 22 22 0 8 0 bufpl 280 4339 0 132 301 0 301 301 0 8 0 anonpl 16 78071 0 61001 96 13 83 85 0 124 14 amapchunkpl 152 3708 0 3559 22 15 7 20 0 158 0 amappl16 192 3085 0 2168 69 17 52 58 0 8 6 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 27 0 21 1 0 1 1 0 8 0 amappl13 168 451 0 446 1 0 1 1 0 8 0 amappl12 160 357 0 353 2 1 1 1 0 8 0 amappl11 152 58 0 42 1 0 1 1 0 8 0 amappl10 144 27 0 19 1 0 1 1 0 8 0 amappl9 136 387 0 386 1 0 1 1 0 8 0 amappl8 128 358 0 324 2 0 2 2 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 25 0 21 1 0 1 1 0 8 0 amappl5 104 563 0 547 1 0 1 1 0 8 0 amappl4 96 564 0 536 1 0 1 1 0 8 0 amappl3 88 119 0 114 1 0 1 1 0 8 0 amappl2 80 4654 0 4593 2 0 2 2 0 8 0 amappl1 72 23124 0 22698 23 13 10 18 0 8 0 amappl 80 1770 0 1723 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 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 64 30 0 0 1 0 1 1 0 8 0 uaddrrnd 24 665 0 642 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 665 0 642 1 0 1 1 0 8 0 vmmpekpl 168 9103 0 9066 2 0 2 2 0 8 0 vmmpepl 168 86729 0 84658 128 28 100 113 0 357 7 vmsppl 368 664 0 642 3 0 3 3 0 8 0 pdppl 4096 1337 0 1291 6 0 6 6 0 8 0 pvpl 32 237695 0 217565 211 14 197 199 0 265 34 pmappl 232 664 0 642 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 278 0 5 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff827a2ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 x86_bus_space_io_write_1(3f8,0,3a) at x86_bus_space_io_write_1+0x45 sys/arch/amd64/amd64/bus_space.c:759 comcnputc(800,3a) at comcnputc+0x131 bus_space_barrier machine/bus.h:481 [inline] comcnputc(800,3a) at comcnputc+0x131 sys/dev/ic/com.c:1254 cnputc(3a) at cnputc+0x4c sys/dev/cons.c:239 kputchar(3a,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff823fe76b) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff823fe76b) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff828bfab0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828bfab0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828bfab0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd807cbb1800,1a4,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd807cbb1800,1a4,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ada760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eadf7d8,9,fffffd8066811500,0,0,ffff800020e4d9d0) at tcp_usrreq+0xa55 end trace frame: 0xffff800020e24a60, count: 0 ddb{0}> trace x86_ipi_db(ffffffff827a2ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 x86_bus_space_io_write_1(3f8,0,3a) at x86_bus_space_io_write_1+0x45 sys/arch/amd64/amd64/bus_space.c:759 comcnputc(800,3a) at comcnputc+0x131 bus_space_barrier machine/bus.h:481 [inline] comcnputc(800,3a) at comcnputc+0x131 sys/dev/ic/com.c:1254 cnputc(3a) at cnputc+0x4c sys/dev/cons.c:239 kputchar(3a,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff823fe76b) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff823fe76b) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff828bfab0) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828bfab0) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828bfab0,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd807cbb1800,1a4,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd807cbb1800,1a4,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000ada760) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_usrreq(fffffd806eadf7d8,9,fffffd8066811500,0,0,ffff800020e4d9d0) at tcp_usrreq+0xa55 sosend(fffffd806eadf7d8,0,ffff800020e24b28,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e4d9d0,4,ffff800020e24b28,0,ffff800020e24c10) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e4d9d0,ffff800020e24bc0,ffff800020e24c10) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e24c90) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e24c90) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcc120, count: -19 ddb{0}> machine ddbcpu 1 Stopped at savectx+0xb1: movl $0,%gs:0x530 savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffffa8f0, count: 14 ddb{1}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffffa8f0, count: -1