panic: WpAooRNlI_cNGa:c hSePL_ iNtOeTm _LmOWaEgiRcED_ chONec SkY: SCmAbLuLf pl2 c1p1u3 f6r36ee26 5l iEsXtI Tmo 0d iaf i edStopped at savectx+0xb1: movl $0,%gs:0x530 TID PID UID PRFLAGS PFLAGS CPU COMMAND * 36727 48147 0 0x2 0 0 syz-executor.1 191943 5995 0 0x12 0 1 sshd savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffe5c70, 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 0xfffffd8078a16100+24 0xc5973557ef036256!=0xc59735d785a5ed56 ddb{0}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7ffffe5c70, count: -1 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800023109660 rbx 0 rdx 0x8b rcx 0x2 rax 0x39 r8 0xffffffff81d0e5bf kprintf+0x16f r9 0x1 r10 0x2 r11 0x762cc7a64e0c9da4 r12 0 r13 0 r14 0xffff800020e23d58 r15 0 rip 0xffffffff81ad63f1 savectx+0xb1 cs 0x8 rflags 0x46 rsp 0xffff8000231095e0 ss 0x10 savectx+0xb1: movl $0,%gs:0x530 ddb{0}> show proc PROC (syz-executor.1) pid=36727 stat=onproc flags process=2 proc=0 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc4e8,0xffff800020e22028 process=0xffff800020df0f70 user=0xffff800023104000, vmspace=0xfffffd807efffb80 estcpu=36, cpticks=1, pctcpu=0.6 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78959 393410 48147 0 2 0 syz-executor.1 7673 387197 63332 0 3 0x82 nanosleep syz-executor.0 31436 218863 0 0 3 0x14200 bored sosplice *48147 36727 63332 0 7 0x2 syz-executor.1 63332 272848 68338 0 3 0x82 thrsleep syz-fuzzer 63332 13029 68338 0 3 0x4000082 nanosleep syz-fuzzer 63332 197626 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 512303 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 460232 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 257779 68338 0 3 0x4000082 kqread syz-fuzzer 63332 338244 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 253529 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 194586 68338 0 3 0x4000082 thrsleep syz-fuzzer 63332 328902 68338 0 3 0x4000082 thrsleep syz-fuzzer 68338 174024 5995 0 3 0x10008a pause ksh 5995 191943 22728 0 7 0x12 sshd 3042 470114 1 0 3 0x100083 ttyin getty 22728 264443 1 0 3 0x80 select sshd 76290 280932 80771 74 3 0x100092 bpf pflogd 80771 103594 1 0 3 0x80 netio pflogd 60946 243532 69626 73 3 0x100090 kqread syslogd 69626 438210 1 0 3 0x100082 netio syslogd 66742 520012 1 77 3 0x100090 poll dhclient 7432 369621 1 0 3 0x80 poll dhclient 73576 100284 0 0 3 0x14200 bored smr 97975 193002 0 0 2 0x14200 zerothread 85331 144080 0 0 3 0x14200 aiodoned aiodoned 11662 438995 0 0 3 0x14200 syncer update 88173 390709 0 0 3 0x14200 cleaner cleaner 17426 6938 0 0 3 0x14200 reaper reaper 18970 296298 0 0 3 0x14200 pgdaemon pagedaemon 59226 451327 0 0 3 0x14200 bored crynlk 53369 93521 0 0 3 0x14200 bored crypto 51813 167224 0 0 3 0x40014200 acpi0 acpi0 25561 409461 0 0 3 0x40014200 idle1 15954 352621 0 0 3 0x14200 bored softnet 98482 27694 0 0 3 0x14200 bored systqmp 98105 442788 0 0 3 0x14200 bored systq 45161 347965 0 0 3 0x40014200 bored softclock 45562 199454 0 0 3 0x40014200 idle0 1 428962 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex vmmpekpl r = 0 (0xffffffff828d6880) #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 pool_get+0xbf sys/kern/subr_pool.c:578 #4 uvm_mapent_alloc+0x374 sys/uvm/uvm_map.c:1745 #5 uvm_map+0x2a4 sys/uvm/uvm_map.c:1227 #6 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:335 #7 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274 #8 fork1+0x271 sys/kern/kern_fork.c:365 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 Process 48147 (syz-executor.1) thread 0xffff800020e23d58 (36727) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8291b2d8) #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 vmmpekpl r = 0 (0xffffffff828d6880) #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 pool_get+0xbf sys/kern/subr_pool.c:578 #4 uvm_mapent_alloc+0x374 sys/uvm/uvm_map.c:1745 #5 uvm_map+0x2a4 sys/uvm/uvm_map.c:1227 #6 uvm_km_kmemalloc_pla+0x11d sys/uvm/uvm_km.c:335 #7 uvm_uarea_alloc+0x51 sys/uvm/uvm_glue.c:274 #8 fork1+0x271 sys/kern/kern_fork.c:365 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #10 Xsyscall+0x128 Process 5995 (sshd) thread 0xffff800020e41d50 (191943) exclusive rwlock netlock r = 0 (0xffffffff8270da88) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9527 6419K 6795K 78643K 11033 0 pcb 13 8K 8K 78643K 77 0 rtable 94 4K 6K 78643K 407 0 ifaddr 72 13K 15K 78643K 149 0 counters 43 33K 34K 78643K 57 0 ioctlops 0 0K 4K 78643K 1510 0 iov 0 0K 12K 78643K 27 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1355 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 39 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 322 0 proc 61 63K 95K 78643K 514 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 18 0 in_multi 41 2K 2K 78643K 130 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 248 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 39K 53K 78643K 2098 0 UVM aobj 15 2K 2K 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 15 0K 0K 78643K 35 0 temp 98 3861K 3928K 78643K 5189 0 kqueue 3 4K 9K 78643K 15 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 9 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 39 0 37 1 0 1 1 0 8 0 rtentry 112 88 0 51 2 0 2 2 0 8 0 unpcb 120 185 0 175 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 775 0 775 2 2 0 1 0 8 0 tcpcb 544 138 0 134 2 0 2 2 0 8 1 inpcb 296 408 0 401 3 0 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 25 0 21 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pffrag 232 4 0 3 2 1 1 1 0 482 0 pffrnode 88 4 0 3 2 1 1 1 0 8 0 pffrent 40 51 0 50 2 1 1 1 0 8 0 pfosfp 40 847 0 423 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 21 0 21 2 1 1 1 0 8 1 pfstitem 24 38 0 7 1 0 1 1 0 8 0 pfstkey 112 38 0 7 1 0 1 1 0 8 0 pfstate 328 38 0 7 3 0 3 3 0 8 0 pfrule 1360 27 0 21 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 260 0 88 12 0 12 12 0 8 0 art_table 32 261 0 88 2 0 2 2 0 8 0 art_node 16 87 0 53 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 7 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 37 0 27 1 0 1 1 0 8 0 shmpl 112 17 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1838 0 434 89 0 89 89 0 8 0 ffsino 272 1838 0 434 95 0 95 95 0 8 0 nchpl 144 2535 0 940 60 0 60 60 0 8 0 uvmvnodes 72 1978 0 0 36 0 36 36 0 8 0 vnodes 208 1978 0 0 105 0 105 105 0 8 0 namei 1024 7168 0 7168 1 0 1 1 0 8 1 percpumem 16 39 0 7 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 pfiaddrpl 120 5 0 5 2 1 1 1 0 8 1 scxspl 192 7215 0 7215 10 7 3 7 0 8 3 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 424 535 0 503 4 0 4 4 0 8 0 futexpl 56 4311 0 4311 1 0 1 1 0 8 1 knotepl 112 86 0 67 1 0 1 1 0 8 0 kqueuepl 144 42 0 40 1 0 1 1 0 8 0 pipepl 304 115 0 105 2 1 1 2 0 8 0 fdescpl 496 519 0 503 3 0 3 3 0 8 0 filepl 152 3155 0 3055 5 0 5 5 0 8 1 lockfpl 104 37 0 36 1 0 1 1 0 8 0 lockfspl 48 14 0 13 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 28 0 16 1 0 1 1 0 8 0 ucredpl 96 338 0 329 1 0 1 1 0 8 0 zombiepl 144 503 0 502 1 0 1 1 0 8 0 processpl 984 535 0 502 5 0 5 5 0 8 0 procpl 624 1209 0 1167 5 0 5 5 0 8 1 sosppl 128 6 0 6 2 1 1 1 0 8 1 sockpl 400 635 0 616 6 1 5 5 0 8 3 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 231 0 0 28 0 28 28 0 8 0 mtagpl 96 25 0 0 1 0 1 1 0 8 0 mbufpl 256 266 0 0 16 0 16 16 0 8 0 bufpl 280 3895 0 133 269 0 269 269 0 8 0 anonpl 16 63394 0 50680 79 8 71 78 0 124 3 amapchunkpl 152 3283 0 3140 18 5 13 13 0 158 6 amappl16 192 2201 0 1318 54 8 46 54 0 8 1 amappl15 184 281 0 276 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 13 0 10 1 0 1 1 0 8 0 amappl11 152 203 0 187 1 0 1 1 0 8 0 amappl10 144 22 0 14 1 0 1 1 0 8 0 amappl9 136 385 0 383 1 0 1 1 0 8 0 amappl8 128 393 0 356 2 0 2 2 0 8 0 amappl7 120 125 0 112 1 0 1 1 0 8 0 amappl6 112 32 0 24 1 0 1 1 0 8 0 amappl5 104 428 0 411 1 0 1 1 0 8 0 amappl4 96 515 0 480 1 0 1 1 0 8 0 amappl3 88 110 0 105 1 0 1 1 0 8 0 amappl2 80 3420 0 3355 2 0 2 2 0 8 0 amappl1 72 21344 0 20918 23 13 10 18 0 8 0 amappl 80 1538 0 1496 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 4 1 0 1 1 0 8 0 uaddrrnd 24 521 0 503 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 521 0 503 1 0 1 1 0 8 0 vmmpekpl 168 8024 0 7991 2 0 2 2 0 8 0 vmmpepl 168 70893 0 68876 150 25 125 125 0 357 31 vmsppl 368 520 0 503 2 0 2 2 0 8 0 pdppl 4096 1049 0 1008 7 1 6 6 0 8 0 pvpl 32 202307 0 186515 187 7 180 187 0 265 20 pmappl 232 520 0 503 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 276 0 5 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: 0x7f7ffffe5c70, count: -1 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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_read_1(3f8,5) at x86_bus_space_io_read_1+0x3c sys/arch/amd64/amd64/bus_space.c:639 comcnputc(800,64) at comcnputc+0x1c8 sys/dev/ic/com.c:1260 cnputc(64) at cnputc+0x4c sys/dev/cons.c:239 kputchar(64,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff82401f7f) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff82401f7f) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff828ceae8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828ceae8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828ceae8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ada320) at tcp_output+0x14e6 tcp_usrreq(fffffd806eada648,9,fffffd807f01e700,0,0,ffff800020e41d50) at tcp_usrreq+0xa55 end trace frame: 0xffff800020e63c50, count: 0 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) 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_read_1(3f8,5) at x86_bus_space_io_read_1+0x3c sys/arch/amd64/amd64/bus_space.c:639 comcnputc(800,64) at comcnputc+0x1c8 sys/dev/ic/com.c:1260 cnputc(64) at cnputc+0x4c sys/dev/cons.c:239 kputchar(64,5,0) at kputchar+0x219 sys/kern/subr_prf.c:343 kprintf() at kprintf+0x15c sys/kern/subr_prf.c:700 panic(ffffffff82401f7f) at panic+0xf3 vprintf sys/kern/subr_prf.c:528 [inline] panic(ffffffff82401f7f) at panic+0xf3 sys/kern/subr_prf.c:197 pool_cache_get(ffffffff828ceae8) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1781 [inline] pool_cache_get(ffffffff828ceae8) at pool_cache_get+0x323 sys/kern/subr_pool.c:1884 pool_get(ffffffff828ceae8,2) at pool_get+0x91 sys/kern/subr_pool.c:572 m_gethdr(2,2) at m_gethdr+0x4c sys/kern/uipc_mbuf.c:283 tcp_output(ffff800000ada320) at tcp_output+0x14e6 tcp_usrreq(fffffd806eada648,9,fffffd807f01e700,0,0,ffff800020e41d50) at tcp_usrreq+0xa55 sosend(fffffd806eada648,0,ffff800020e63d18,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e41d50,4,ffff800020e63d18,0,ffff800020e63e00) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e41d50,ffff800020e63db0,ffff800020e63e00) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e63e80) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e63e80) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6a20, count: -19