panic:W ApRooNIl_NGc:a cShPeL_ iNtOemT _LmOagWEiRcE_Dc hOecN kS:Y SmCbAuLfL pl2 7c9p2u9 4f42re42e EliXIsTt 0m oad i fiStopped at savectx+0xb1: movl $0,%gs:0x530 TID PID UID PRFLAGS PFLAGS CPU COMMAND 151713 6037 0 0 0x4000000 0 syz-executor.0 *256384 99482 0 0x2 0 1 syz-executor.1 savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffff1990, 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 0xfffffd806611a200+16 0x0!=0xb9e1cf0ffd76dc5 ddb{1}> trace savectx() at savectx+0xb1 end of kernel end trace frame: 0x7f7fffff1990, count: -1 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800020ba9690 rbx 0 rdx 0xffff800020ac3878 rcx 0 rax 0x39 r8 0xffffffff8164a22f kprintf+0x16f r9 0x1 r10 0x25 r11 0xd4ab9f22dcbdca8 r12 0 r13 0 r14 0xffff800020ac3878 r15 0 rip 0xffffffff81fd73f1 savectx+0xb1 cs 0x8 rflags 0x46 rsp 0xffff800020ba9610 ss 0x10 savectx+0xb1: movl $0,%gs:0x530 ddb{1}> show proc PROC (syz-executor.1) pid=256384 stat=onproc flags process=2 proc=0 pri=17, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7dad8,0xffff800020ac3138 process=0xffff800020a90010 user=0xffff800020ba4000, vmspace=0xfffffd807f000cf0 estcpu=36, cpticks=6, pctcpu=0.7 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2407 306959 99482 0 2 0 syz-executor.1 6037 323306 455 0 2 0 syz-executor.0 6037 151713 455 0 7 0x4000000 syz-executor.0 65568 489628 0 0 3 0x14200 bored sosplice *99482 256384 92283 0 7 0x2 syz-executor.1 455 23701 92283 0 3 0x82 nanosleep syz-executor.0 92283 160964 91459 0 3 0x82 thrsleep syz-fuzzer 92283 99255 91459 0 3 0x4000082 nanosleep syz-fuzzer 92283 227542 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 112689 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 44259 91459 0 2 0x4000082 syz-fuzzer 92283 429467 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 118845 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 55361 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 423075 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 400066 91459 0 3 0x4000082 thrsleep syz-fuzzer 92283 382782 91459 0 3 0x4000082 thrsleep syz-fuzzer 91459 268213 44188 0 3 0x10008a pause ksh 44188 218987 17589 0 3 0x92 select sshd 62304 344226 1 0 3 0x100083 ttyin getty 17589 56949 1 0 3 0x80 select sshd 75350 61944 44791 74 3 0x100092 bpf pflogd 44791 446724 1 0 3 0x80 netio pflogd 55270 434662 60607 73 3 0x100090 kqread syslogd 60607 497704 1 0 3 0x100082 netio syslogd 2635 489867 0 0 3 0x14200 bored smr 69809 34603 0 0 2 0x14200 zerothread 61570 67548 0 0 3 0x14200 aiodoned aiodoned 94459 476555 0 0 3 0x14200 syncer update 59618 140543 0 0 3 0x14200 cleaner cleaner 48772 241183 0 0 3 0x14200 reaper reaper 5118 369602 0 0 3 0x14200 pgdaemon pagedaemon 23923 393768 0 0 3 0x14200 bored crynlk 83910 229387 0 0 3 0x14200 bored crypto 51831 366617 0 0 3 0x40014200 acpi0 acpi0 97429 173321 0 0 3 0x40014200 idle1 18086 338968 0 0 3 0x14200 bored softnet 24954 445726 0 0 3 0x14200 bored systqmp 55038 338055 0 0 3 0x14200 bored systq 61641 401982 0 0 3 0x40014200 bored softclock 18841 496241 0 0 3 0x40014200 idle0 1 232426 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex vmmpepl r = 0 (0xffffffff82632780) #0 witness_lock+0x52e 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+0x2d2 sys/uvm/uvm_map.c:1747 #5 uvm_map_mkentry+0x75 sys/uvm/uvm_map.c:1652 #6 uvm_mapent_clone+0x9e sys/uvm/uvm_map.c:3740 #7 uvm_mapent_forkcopy+0x6a sys/uvm/uvm_map.c:3841 #8 uvmspace_fork+0x229 #9 process_new+0x16c sys/kern/kern_fork.c:257 #10 fork1+0x31b sys/kern/kern_fork.c:376 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #12 Xsyscall+0x128 Process 6037 (syz-executor.0) thread 0xffff800020ac3398 (151713) exclusive rwlock netlock r = 0 (0xffffffff8249c838) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:537 #3 sendit+0x52b sys/kern/uipc_syscalls.c:657 #4 sys_sendto+0x80 sys/kern/uipc_syscalls.c:522 #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 Process 99482 (syz-executor.1) thread 0xffff800020ac3878 (256384) exclusive rwlock vmmaplk r = 0 (0xfffffd807f000188) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 vm_map_lock_ln+0x111 sys/uvm/uvm_map.c:5409 #3 uvmspace_fork+0x112 sys/uvm/uvm_map.c:4034 #4 process_new+0x16c sys/kern/kern_fork.c:257 #5 fork1+0x31b sys/kern/kern_fork.c:376 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd807f000d08) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 vm_map_lock_ln+0x111 sys/uvm/uvm_map.c:5409 #3 uvmspace_fork+0x37 sys/uvm/uvm_map.c:4025 #4 process_new+0x16c sys/kern/kern_fork.c:257 #5 fork1+0x31b sys/kern/kern_fork.c:376 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82638db0) #0 witness_lock+0x52e 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 vmmpepl r = 0 (0xffffffff82632780) #0 witness_lock+0x52e 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+0x2d2 sys/uvm/uvm_map.c:1747 #5 uvm_map_mkentry+0x75 sys/uvm/uvm_map.c:1652 #6 uvm_mapent_clone+0x9e sys/uvm/uvm_map.c:3740 #7 uvm_mapent_forkcopy+0x6a sys/uvm/uvm_map.c:3841 #8 uvmspace_fork+0x229 #9 process_new+0x16c sys/kern/kern_fork.c:257 #10 fork1+0x31b sys/kern/kern_fork.c:376 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #12 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9511 6413K 6986K 78643K 11140 0 pcb 14 8K 8K 78643K 69 0 rtable 104 3K 4K 78643K 297 0 ifaddr 74 15K 15K 78643K 142 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1492 0 iov 0 0K 12K 78643K 23 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1381 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 109 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 237 0 sigio 0 0K 0K 78643K 4 0 proc 57 51K 95K 78643K 458 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 52 0 in_multi 61 3K 3K 78643K 104 0 ether_multi 1 0K 0K 78643K 10 0 mrt 0 0K 0K 78643K 5 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 222 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 115 38K 48K 78643K 1748 0 UVM aobj 17 4K 4K 78643K 24 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 38 0 NDP 11 0K 0K 78643K 26 0 temp 115 3019K 3083K 78643K 5274 0 kqueue 3 4K 8K 78643K 12 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 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 37 0 35 1 0 1 1 0 8 0 rtentry 112 52 0 10 2 0 2 2 0 8 0 unpcb 120 531 0 522 2 0 2 2 0 8 1 syncache 264 8 0 8 2 1 1 1 0 8 1 tcpqe 32 259 0 259 1 1 0 1 0 8 0 tcpcb 544 136 0 132 1 0 1 1 0 8 0 inpcb 280 416 0 405 2 0 2 2 0 8 1 rttmr 72 2 0 2 1 0 1 1 0 8 1 nd6 48 7 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 7 0 7 1 0 1 1 0 482 1 pffrnode 88 7 0 7 1 0 1 1 0 8 1 pffrent 40 315 0 315 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 38 0 3 1 0 1 1 0 8 0 pfstkey 112 38 0 3 1 0 1 1 0 8 0 pfstate 328 38 0 3 3 0 3 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 213 0 40 13 0 13 13 0 8 0 art_table 32 214 0 40 2 0 2 2 0 8 0 art_node 16 51 0 12 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 11 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 106 0 96 1 0 1 1 0 8 0 shmpl 112 22 0 7 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1759 0 355 46 0 46 46 0 8 0 ffsino 272 1759 0 355 94 0 94 94 0 8 0 nchpl 144 2361 0 744 61 0 61 61 0 8 0 uvmvnodes 72 1918 0 0 35 0 35 35 0 8 0 vnodes 208 1918 0 0 101 0 101 101 0 8 0 namei 1024 6457 0 6457 1 0 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 4 1 0 1 1 0 8 0 scxspl 192 6897 0 6897 8 5 3 7 0 8 3 plimitpl 152 32 0 25 1 0 1 1 0 8 0 sigapl 424 453 0 422 4 0 4 4 0 8 0 futexpl 56 5053 0 5053 1 0 1 1 0 8 1 knotepl 112 62 0 43 1 0 1 1 0 8 0 kqueuepl 144 32 0 30 1 0 1 1 0 8 0 pipelkpl 48 119 0 109 1 0 1 1 0 8 0 pipepl 120 238 0 219 1 0 1 1 0 8 0 fdescpl 496 437 0 422 3 0 3 3 0 8 0 filepl 152 3222 0 3125 8 1 7 7 0 8 2 lockfpl 104 103 0 103 1 0 1 1 0 8 1 lockfspl 48 31 0 31 1 0 1 1 0 8 1 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 20 0 11 1 0 1 1 0 8 0 ucredpl 96 301 0 293 1 0 1 1 0 8 0 zombiepl 144 422 0 422 1 0 1 1 0 8 1 processpl 960 453 0 422 5 0 5 5 0 8 0 procpl 624 966 0 924 5 0 5 5 0 8 1 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 998 0 978 8 0 8 8 0 8 5 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 165 0 0 20 0 20 20 0 8 0 mtagpl 80 31 0 0 1 0 1 1 0 8 0 mbufpl 256 363 0 0 23 0 23 23 0 8 0 bufpl 280 4550 0 174 313 0 313 313 0 8 0 anonpl 16 55725 0 38357 78 1 77 77 0 124 6 amapchunkpl 152 2441 0 2303 10 0 10 10 0 158 2 amappl16 192 1994 0 1038 49 0 49 49 0 8 0 amappl15 184 1 0 1 1 0 1 1 0 8 1 amappl14 176 6 0 4 2 1 1 1 0 8 0 amappl13 168 25 0 24 1 0 1 1 0 8 0 amappl12 160 115 0 110 1 0 1 1 0 8 0 amappl11 152 189 0 174 2 1 1 2 0 8 0 amappl10 144 18 0 15 1 0 1 1 0 8 0 amappl9 136 389 0 386 1 0 1 1 0 8 0 amappl8 128 338 0 307 2 0 2 2 0 8 0 amappl7 120 119 0 108 1 0 1 1 0 8 0 amappl6 112 129 0 126 1 0 1 1 0 8 0 amappl5 104 427 0 413 1 0 1 1 0 8 0 amappl4 96 510 0 481 1 0 1 1 0 8 0 amappl3 88 123 0 117 1 0 1 1 0 8 0 amappl2 80 2577 0 2514 3 1 2 3 0 8 0 amappl1 72 19546 0 19134 26 16 10 20 0 8 0 amappl 80 1227 0 1182 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 23 0 7 1 0 1 1 0 8 0 uaddrrnd 24 443 0 426 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 443 0 426 1 0 1 1 0 8 0 vmmpekpl 168 7481 0 7445 2 0 2 2 0 8 0 vmmpepl 168 60641 0 58529 122 12 110 116 0 357 18 vmsppl 368 442 0 426 2 0 2 2 0 8 0 pdppl 4096 893 0 854 6 0 6 6 0 8 0 pvpl 32 181122 0 160686 184 0 184 184 0 265 17 pmappl 232 442 0 426 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 185 0 3 6 0 6 6 0 8 0