panic:W ARpoNIoNlG_:c acSPheL _NiOtTe m_LOmaWEgRiEcD_ chONe cSk:Y mSCbAufLLp l 2 c-p9u5 3fr68e0e0 6l8i stEX ImTo di0 fa iStopped at savectx+0xb1: movl $0,%gs:0x530 TID PID UID PRFLAGS PFLAGS CPU COMMAND *196237 37487 0 0x2 0 0 syz-executor.0 386774 39420 0 0x14000 0x200 1 softnet savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffbb4f0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8067615f00+16 0x0!=0xcbe29550f3588b63 ddb{0}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffbb4f0, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800020f57e20 rbx 0 rdx 0xffff800020ec69d8 rcx 0 rax 0x3a r8 0xffffffff81b4951f kprintf+0x16f r9 0x1 r10 0x25 r11 0xeaf144f991048f84 r12 0 r13 0 r14 0xffff800020ec69d8 r15 0 rip 0xffffffff820563f1 savectx+0xb1 cs 0x8 rflags 0x46 rsp 0xffff800020f57da0 ss 0x10 savectx+0xb1: movl $0,%gs:0x530 ddb{0}> show proc PROC (syz-executor.0) pid=196237 stat=onproc flags process=2 proc=0 pri=71, usrpri=71, nice=20 forw=0xffffffffffffffff, list=0xffff800020ec6288,0xffff800020ec6508 process=0xffff800020e92ba8 user=0xffff800020f52000, vmspace=0xfffffd806e960458 estcpu=36, cpticks=1, pctcpu=0.2 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3044 35078 37487 0 2 0 syz-executor.0 61093 336147 94883 0 2 0 syz-executor.1 94883 13764 46395 0 3 0x82 nanosleep syz-executor.1 1510 218886 0 0 3 0x14200 bored sosplice *37487 196237 46395 0 7 0x2 syz-executor.0 86988 139434 1 0 3 0x100083 ttyin getty 46395 13889 53324 0 3 0x82 thrsleep syz-fuzzer 46395 13184 53324 0 3 0x4000082 nanosleep syz-fuzzer 46395 27478 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 26254 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 484064 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 287624 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 275501 53324 0 3 0x4000082 kqread syz-fuzzer 46395 432251 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 125195 53324 0 3 0x4000082 thrsleep syz-fuzzer 46395 170875 53324 0 3 0x4000082 thrsleep syz-fuzzer 53324 131739 8658 0 3 0x10008a pause ksh 8658 499231 80655 0 3 0x92 select sshd 80655 422336 1 0 3 0x80 select sshd 64905 416095 42086 74 3 0x100092 bpf pflogd 42086 40251 1 0 3 0x80 netio pflogd 71141 477228 1477 73 3 0x100090 kqread syslogd 1477 494863 1 0 3 0x100082 netio syslogd 78491 260753 1 77 3 0x100090 poll dhclient 65294 113369 1 0 3 0x80 poll dhclient 57046 55645 0 0 3 0x14200 bored smr 85395 322631 0 0 2 0x14200 zerothread 64978 91908 0 0 3 0x14200 aiodoned aiodoned 79174 500603 0 0 3 0x14200 syncer update 54213 430773 0 0 3 0x14200 cleaner cleaner 41741 482051 0 0 3 0x14200 reaper reaper 11281 281561 0 0 3 0x14200 pgdaemon pagedaemon 7344 425236 0 0 3 0x14200 bored crynlk 53105 248366 0 0 3 0x14200 bored crypto 27997 95612 0 0 3 0x40014200 acpi0 acpi0 5168 7229 0 0 3 0x40014200 idle1 39420 386774 0 0 7 0x14200 softnet 86749 168816 0 0 3 0x14200 bored systqmp 82424 493802 0 0 3 0x14200 bored systq 18122 273392 0 0 3 0x40014200 bored softclock 76676 37021 0 0 3 0x40014200 idle0 1 403209 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff8268e790) #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 uvm_pmr_getpages+0xd2c sys/uvm/uvm_pmemrange.c:1170 #4 uvm_pglistalloc+0x362 sys/uvm/uvm_page.c:790 #5 uvm_km_kmemalloc_pla+0x238 sys/uvm/uvm_km.c:367 #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 37487 (syz-executor.0) thread 0xffff800020ec69d8 (196237) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8264d2a8) #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 &uvm.fpageqlock r = 0 (0xffffffff8268e790) #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 uvm_pmr_getpages+0xd2c sys/uvm/uvm_pmemrange.c:1170 #4 uvm_pglistalloc+0x362 sys/uvm/uvm_page.c:790 #5 uvm_km_kmemalloc_pla+0x238 sys/uvm/uvm_km.c:367 #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 39420 (softnet) thread 0xffff800020e18270 (386774) exclusive rwlock netlock r = 0 (0xffffffff824c7db8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 if_input_process+0x84 sys/net/if.c:941 #2 ifiq_process+0x80 sys/net/ifq.c:646 #3 taskq_thread+0x9c sys/kern/kern_task.c:369 #4 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff80000002b0e0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 taskq_thread+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9513 6546K 6868K 78643K 11055 0 pcb 13 8K 8K 78643K 243 0 rtable 91 3K 4K 78643K 418 0 ifaddr 60 13K 13K 78643K 133 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1484 0 iov 0 0K 16K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 78K 78K 78643K 1498 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1823 197K 290K 78643K 12980 0 file desc 6 17K 25K 78643K 379 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 597 0 subproc 32 2K 3K 78643K 136 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 36 0 in_multi 61 3K 3K 78643K 116 0 ether_multi 1 0K 0K 78643K 13 0 mrt 0 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 261 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 120 39K 54K 78643K 2237 0 UVM aobj 17 4K 5K 78643K 19 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 56 0 NDP 9 0K 0K 78643K 28 0 temp 110 3047K 3114K 78643K 9593 0 kqueue 3 4K 22K 78643K 33 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 12 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 61 0 59 1 0 1 1 0 8 0 rtentry 112 78 0 44 2 0 2 2 0 8 0 unpcb 120 463 0 453 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 92 0 92 2 2 0 1 0 8 0 tcpcb 544 145 0 141 1 0 1 1 0 8 0 inpcb 280 637 0 630 5 3 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 13 0 7 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 0 1 1 0 8 1 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 90 0 90 1 0 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 49 0 18 1 0 1 1 0 8 0 pfstkey 112 49 0 18 1 0 1 1 0 8 0 pfstate 328 49 0 18 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 357 0 194 15 3 12 13 0 8 1 art_table 32 359 0 194 2 0 2 2 0 8 0 art_node 16 76 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 17 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1878 0 474 89 0 89 89 0 8 0 ffsino 272 1878 0 474 95 0 95 95 0 8 0 nchpl 144 2551 0 958 60 0 60 60 0 8 0 uvmvnodes 72 2134 0 0 39 0 39 39 0 8 0 vnodes 208 2134 0 0 113 0 113 113 0 8 0 namei 1024 8108 0 8108 1 0 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 7158 0 7157 11 10 1 7 0 8 0 plimitpl 152 51 0 43 1 0 1 1 0 8 0 sigapl 424 578 0 545 4 0 4 4 0 8 0 futexpl 56 5638 0 5638 1 0 1 1 0 8 1 knotepl 112 231 0 212 2 1 1 2 0 8 0 kqueuepl 144 70 0 68 1 0 1 1 0 8 0 pipelkpl 48 138 0 128 1 0 1 1 0 8 0 pipepl 120 276 0 257 1 0 1 1 0 8 0 fdescpl 496 562 0 545 3 0 3 3 0 8 0 filepl 152 4182 0 4082 5 0 5 5 0 8 1 lockfpl 104 100 0 99 1 0 1 1 0 8 0 lockfspl 48 34 0 33 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 852 0 843 1 0 1 1 0 8 0 zombiepl 144 545 0 545 1 0 1 1 0 8 1 processpl 984 578 0 545 5 0 5 5 0 8 0 procpl 624 1320 0 1278 4 0 4 4 0 8 0 sosppl 128 6 0 6 2 2 0 1 0 8 0 sockpl 400 1170 0 1151 6 2 4 4 0 8 2 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 10 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 20 0 20 20 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 348 0 0 19 0 19 19 0 8 0 bufpl 280 4205 0 134 291 0 291 291 0 8 0 anonpl 16 66789 0 53407 59 2 57 57 0 124 0 amapchunkpl 152 3910 0 3791 20 13 7 19 0 158 0 amappl16 192 2177 0 1425 41 2 39 39 0 8 1 amappl15 184 4 0 2 1 0 1 1 0 8 0 amappl14 176 142 0 137 1 0 1 1 0 8 0 amappl13 168 153 0 152 1 0 1 1 0 8 0 amappl12 160 21 0 18 2 1 1 1 0 8 0 amappl11 152 206 0 188 1 0 1 1 0 8 0 amappl10 144 17 0 11 1 0 1 1 0 8 0 amappl9 136 430 0 429 1 0 1 1 0 8 0 amappl8 128 463 0 425 2 0 2 2 0 8 0 amappl7 120 136 0 123 1 0 1 1 0 8 0 amappl6 112 59 0 53 1 0 1 1 0 8 0 amappl5 104 303 0 287 1 0 1 1 0 8 0 amappl4 96 672 0 640 1 0 1 1 0 8 0 amappl3 88 228 0 223 1 0 1 1 0 8 0 amappl2 80 3276 0 3207 2 0 2 2 0 8 0 amappl1 72 22788 0 22355 23 13 10 18 0 8 0 amappl 80 1625 0 1585 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 18 0 2 1 0 1 1 0 8 0 uaddrrnd 24 564 0 545 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 564 0 545 1 0 1 1 0 8 0 vmmpekpl 168 8497 0 8461 2 0 2 2 0 8 0 vmmpepl 168 78875 0 76908 156 40 116 117 0 357 28 vmsppl 368 563 0 545 2 0 2 2 0 8 0 pdppl 4096 1136 0 1092 6 0 6 6 0 8 0 pvpl 32 220383 0 203859 147 8 139 143 0 265 1 pmappl 232 563 0 545 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 271 0 8 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffbb4f0, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020e00ff0) 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 x2apic_readreg(390) at x2apic_readreg+0x2a sys/arch/amd64/amd64/lapic.c:141 lapic_delay(1) at lapic_delay+0x33 lapic_gettick sys/arch/amd64/amd64/lapic.c:401 [inline] lapic_delay(1) at lapic_delay+0x33 sys/arch/amd64/amd64/lapic.c:587 comcnputc(800,69) at comcnputc+0x157 sys/dev/ic/com.c:1260 cnputc(69) at cnputc+0x4c sys/dev/cons.c:239 kputchar(69,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff821f9860) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff821f9860) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff8264bc38) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff8264bc38) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff8264bc38,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd8067616c00,b00,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067616c00,b00,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0c980) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 end trace frame: 0xffff800020e39370, count: 0 ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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 x2apic_readreg(390) at x2apic_readreg+0x2a sys/arch/amd64/amd64/lapic.c:141 lapic_delay(1) at lapic_delay+0x33 lapic_gettick sys/arch/amd64/amd64/lapic.c:401 [inline] lapic_delay(1) at lapic_delay+0x33 sys/arch/amd64/amd64/lapic.c:587 comcnputc(800,69) at comcnputc+0x157 sys/dev/ic/com.c:1260 cnputc(69) at cnputc+0x4c sys/dev/cons.c:239 kputchar(69,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff821f9860) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff821f9860) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff8264bc38) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff8264bc38) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff8264bc38,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_copym(fffffd8067616c00,b00,580,2) at m_copym+0x174 m_get sys/kern/uipc_mbuf.c:250 [inline] m_copym(fffffd8067616c00,b00,580,2) at m_copym+0x174 sys/kern/uipc_mbuf.c:667 tcp_output(ffff800000a0c980) at tcp_output+0x15ba sys/netinet/tcp_output.c:673 tcp_input(ffff800020e39538,ffff800020e39544,6,2) at tcp_input+0x2356 ip_deliver(ffff800020e39538,ffff800020e39544,6,2) at ip_deliver+0x353 sys/netinet/ip_input.c:668 ip_ours(ffff800020e39538,ffff800020e39544,ffff800020e18270,0) at ip_ours+0x412 ip_input_if(ffff800020e39538,ffff800020e39544,4,0,ffff80000017b2a8) at ip_input_if+0x6ce ipv4_input(ffff80000017b2a8,fffffd8067616e00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff80000017b2a8,fffffd8067616e00,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_input_process(ffff80000017b2a8,ffff800020e39668) at if_input_process+0xfb if_ih_input sys/net/if.c:909 [inline] if_input_process(ffff80000017b2a8,ffff800020e39668) at if_input_process+0xfb sys/net/if.c:943 ifiq_process(ffff80000017b6a0) at ifiq_process+0x80 sys/net/ifq.c:646 taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -23