by+,&~‰w€é™-ƒ`u=ÔÑ°by+,&~‰w€é™-ƒ`u=ÔÑ°by+,&~‰w€é™-ƒ`u=ÔÑ°panic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8064b30c00+24 0xef9fd004d9d6dbf2!=0x10602d84b18819f2 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *156952 19240 0 0x2 0x4000000 0K syz-fuzzer 456074 71078 0 0x14000 0x200 1 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_clget(0,2,800) at m_clget+0x1c9 m_gethdr sys/kern/uipc_mbuf.c:283 [inline] m_clget(0,2,800) at m_clget+0x1c9 sys/kern/uipc_mbuf.c:400 vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff800000173050) at vio_rx_intr+0x69 intr_handler(ffff800020b374c0,ffff80000024db00) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:529 Xintr_ioapic_edge19_untramp(0,ffffffff81ea7520,0,18041969,d,0) at Xintr_ioapic_edge19_untramp+0x19f Xspllower(0,0,288b2634b0126011,0,0,fffffd806e7c6d68) at Xspllower+0x19 kqueue_scan(fffffd806e7c6d68,40,c000187698,0,ffff800020ab0c70,ffff800020b3799c) at kqueue_scan+0x343 sys/kern/kern_event.c:744 sys_kevent(ffff800020ab0c70,ffff800020b37a10,ffff800020b37a60) at sys_kevent+0x48b sys/kern/kern_event.c:553 syscall(ffff800020b37ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b37ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,48,0,48,200,200) at Xsyscall+0x128 end of kernel end trace frame: 0xc000187e98, count: 1 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 0xfffffd8064b30c00+24 0xef9fd004d9d6dbf2!=0x10602d84b18819f2 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff8264fa30) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_clget(0,2,800) at m_clget+0x1c9 m_gethdr sys/kern/uipc_mbuf.c:283 [inline] m_clget(0,2,800) at m_clget+0x1c9 sys/kern/uipc_mbuf.c:400 vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 vio_add_rx_mbuf sys/dev/pv/if_vio.c:908 [inline] vio_populate_rx_mbufs(ffff800000173000) at vio_populate_rx_mbufs+0xf9 sys/dev/pv/if_vio.c:951 vio_rx_intr(ffff800000173050) at vio_rx_intr+0x69 intr_handler(ffff800020b374c0,ffff80000024db00) at intr_handler+0x8f sys/arch/amd64/amd64/intr.c:529 Xintr_ioapic_edge19_untramp(0,ffffffff81ea7520,0,18041969,d,0) at Xintr_ioapic_edge19_untramp+0x19f Xspllower(0,0,288b2634b0126011,0,0,fffffd806e7c6d68) at Xspllower+0x19 kqueue_scan(fffffd806e7c6d68,40,c000187698,0,ffff800020ab0c70,ffff800020b3799c) at kqueue_scan+0x343 sys/kern/kern_event.c:744 sys_kevent(ffff800020ab0c70,ffff800020b37a10,ffff800020b37a60) at sys_kevent+0x48b sys/kern/kern_event.c:553 syscall(ffff800020b37ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b37ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,48,0,48,200,200) at Xsyscall+0x128 end of kernel end trace frame: 0xc000187e98, count: -14 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b37140 rbx 0xffff800020b371f0 rdx 0xffffffff824abff0 cpu_info_full_primary+0x1ff0 rcx 0xffffffff824abff0 cpu_info_full_primary+0x1ff0 rax 0xffffffff824abff0 cpu_info_full_primary+0x1ff0 r8 0xffffffff81928d4f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3d254810f3bb0c2a r12 0x3000000008 r13 0xffff800020b37150 r14 0x100 r15 0x1 rip 0xffffffff81f47b98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b37130 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-fuzzer) pid=156952 stat=onproc flags process=2 proc=4000000 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e4f8,0xffff800020ab13e8 process=0xffff800020a8b190 user=0xffff800020b32000, vmspace=0xfffffd806e7d02e8 estcpu=0, cpticks=2, pctcpu=0.1 user=0, sys=0, intr=2 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31498 185602 50196 0 3 0x80 nanosleep syz-executor.1 31498 339964 50196 0 3 0x4000080 pipewr syz-executor.1 31498 162040 50196 0 3 0x4000080 fsleep syz-executor.1 93588 182649 52210 0 3 0x80 nanosleep syz-executor.0 93588 272308 52210 0 3 0x4000080 pipewr syz-executor.0 93588 505884 52210 0 3 0x4000080 fsleep syz-executor.0 52210 27107 19240 0 3 0x82 nanosleep syz-executor.0 50196 277534 19240 0 3 0x82 nanosleep syz-executor.1 5773 184733 0 0 3 0x14200 bored sosplice 19240 319107 14547 0 3 0x82 thrsleep syz-fuzzer 19240 171293 14547 0 3 0x4000082 nanosleep syz-fuzzer 19240 48400 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 163744 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 70137 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 122481 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 835 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 424192 14547 0 3 0x4000082 thrsleep syz-fuzzer 19240 182258 14547 0 3 0x4000082 thrsleep syz-fuzzer *19240 156952 14547 0 7 0x4000002 syz-fuzzer 14547 411150 32132 0 3 0x10008a pause ksh 32132 464201 64812 0 3 0x92 select sshd 81641 89233 1 0 3 0x100083 ttyin getty 64812 517353 1 0 3 0x80 select sshd 15612 496346 87354 74 3 0x100092 bpf pflogd 87354 167625 1 0 3 0x80 netio pflogd 27200 103071 13923 73 3 0x100090 kqread syslogd 13923 399832 1 0 3 0x100082 netio syslogd 82517 342392 1 77 3 0x100090 poll dhclient 57068 215924 1 0 3 0x80 poll dhclient 94250 412665 0 0 3 0x14200 pgzero zerothread 74016 10064 0 0 3 0x14200 aiodoned aiodoned 64615 409976 0 0 3 0x14200 syncer update 46470 262186 0 0 3 0x14200 cleaner cleaner 92284 475687 0 0 3 0x14200 reaper reaper 61794 325078 0 0 3 0x14200 pgdaemon pagedaemon 11894 490573 0 0 3 0x14200 bored crynlk 28895 413034 0 0 3 0x14200 bored crypto 91900 434600 0 0 3 0x40014200 acpi0 acpi0 34488 433292 0 0 3 0x40014200 idle1 71078 456074 0 0 7 0x14200 softnet 48781 264655 0 0 3 0x14200 bored systqmp 29838 443852 0 0 3 0x14200 bored systq 15851 384971 0 0 3 0x40014200 bored softclock 8337 504445 0 0 3 0x40014200 idle0 36824 85435 0 0 3 0x14200 bored smr 1 33192 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 19240 (syz-fuzzer) thread 0xffff800020ab0c70 (156952) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff826426f0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 kqueue_scan+0x1e6 sys/kern/kern_event.c:735 #6 sys_kevent+0x48b sys/kern/kern_event.c:553 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #8 Xsyscall+0x128 Process 71078 (softnet) thread 0xffff800020a104f0 (456074) shared rwlock netlock r = 0 (0xffffffff824df898) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 if_input_process+0x84 sys/net/if.c:944 #2 ifiq_process+0x80 sys/net/ifq.c:607 #3 taskq_thread+0x9c sys/kern/kern_task.c:368 #4 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff8000000230e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 taskq_thread+0x8f sys/kern/kern_task.c:367 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9606 6467K 9016K 78643K 21848 0 0 pcb 13 8K 8K 78643K 710 0 0 rtable 105 8K 9K 78643K 2574 0 0 ifaddr 90 20K 21K 78643K 931 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1641 0 0 iov 0 0K 24K 78643K 743 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 6223 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 367 0 0 VM map 27 13K 13K 78643K 29 0 0 sem 12 0K 1K 78643K 1040 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 6171 0 0 sigio 0 0K 0K 78643K 101 0 0 proc 65 75K 95K 78643K 1732 0 0 subproc 32 2K 2K 78643K 446 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 505 0 0 in_multi 34 2K 2K 78643K 577 0 0 ether_multi 1 0K 0K 78643K 43 0 0 mrt 0 0K 0K 78643K 42 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 808 0 0 pfkey data 0 0K 4K 78643K 4 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 165 300K 309K 78643K 19865 0 0 UVM aobj 130 4K 4K 78643K 139 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 783 0 0 NDP 22 0K 0K 78643K 240 0 0 temp 242 3565K 3660K 78643K 133323 0 0 kqueue 0 0K 0K 78643K 33 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 87 0 83 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 315 0 313 1 0 1 1 0 8 0 rtentry 112 428 0 389 2 0 2 2 0 8 0 unpcb 120 2155 0 2134 2 1 1 2 0 8 0 syncache 264 38 0 38 7 7 0 1 0 8 0 sackhl 24 11 0 11 10 10 0 1 0 8 0 tcpqe 32 20 0 20 5 5 0 1 0 8 0 tcpcb 544 1611 0 1607 1 0 1 1 0 8 0 inpcb 280 4593 0 4585 26 25 1 2 0 8 0 rttmr 72 15 0 14 1 0 1 1 0 8 0 nd6 48 61 0 57 1 0 1 1 0 8 0 pkpcb 40 62 0 62 10 10 0 1 0 8 0 ppxss 1128 121 0 121 20 19 1 1 0 8 1 pffrag 232 27 0 27 10 10 0 1 0 482 0 pffrnode 88 27 0 27 10 10 0 1 0 8 0 pffrent 40 869 0 869 10 10 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 pfstitem 24 254 0 234 1 0 1 1 0 8 0 pfstkey 112 263 0 243 3 2 1 2 0 8 0 pfstate 328 263 0 243 9 6 3 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 1798 0 1562 22 6 16 17 0 8 0 art_table 32 1801 0 1564 6 4 2 3 0 8 0 art_node 16 426 0 391 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semapl 112 1038 0 1028 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11107 0 9681 48 1 47 47 0 8 0 ffsino 272 11107 0 9681 96 0 96 96 0 8 0 nchpl 144 19062 0 17453 61 0 61 61 0 8 0 uvmvnodes 72 6822 0 0 125 0 125 125 0 8 0 vnodes 208 6822 0 0 360 0 360 360 0 8 0 namei 1024 62318 0 62318 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 25 0 0 4 0 4 4 0 8 0 vmpool 552 27 0 2 2 0 2 2 0 8 0 scsiplug 64 5 0 5 2 2 0 1 0 8 0 scxspl 192 58391 0 58391 28 27 1 7 0 8 1 plimitpl 152 398 0 390 1 0 1 1 0 8 0 sigapl 432 6299 0 6283 3 1 2 3 0 8 0 futexpl 56 75791 0 75789 1 0 1 1 0 8 0 knotepl 112 1209 0 1190 2 1 1 2 0 8 0 kqueuepl 104 1054 0 1052 1 0 1 1 0 8 0 pipepl 112 5314 0 5291 12 10 2 2 0 8 1 fdescpl 488 6300 0 6283 3 0 3 3 0 8 0 filepl 152 40276 0 40170 20 15 5 7 0 8 0 lockfpl 104 1152 0 1151 1 0 1 1 0 8 0 lockfspl 48 410 0 409 1 0 1 1 0 8 0 sessionpl 112 42 0 31 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 11203 0 11194 1 0 1 1 0 8 0 zombiepl 144 6284 0 6284 2 1 1 1 0 8 1 processpl 896 6317 0 6284 4 0 4 4 0 8 0 procpl 632 17868 0 17822 11 6 5 6 0 8 0 srpgc 64 38 0 38 15 15 0 1 0 8 0 sosppl 128 70 0 70 10 10 0 1 0 8 0 sockpl 384 7249 0 7218 28 24 4 6 0 8 0 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 26 0 0 4 2 2 3 0 8 0 mcl12k 12288 42 0 0 2 1 1 2 0 8 0 mcl9k 9216 23 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 459 0 0 28 14 14 28 0 8 0 mtagpl 80 194 0 0 4 1 3 4 0 8 0 mbufpl 256 735 0 0 31 0 31 31 0 8 0 mbufpl: pool(0xffffffff8264fa30:mbufpl): free list modified: page 0xfffffd8064ab1000; item ordinal 0; addr 0xfffffd8064ab1200 (p 0xfffffd80683af000); offset 0x0=0x0 mbufpl: pool(0xffffffff8264fa30:mbufpl): page inconsistency: page 0xfffffd8064ab1000; item ordinal 1; addr 0x5c7a03289f0629e5 bufpl 256 27437 0 20389 441 0 441 441 0 8 0 anonpl 16 588329 0 575836 180 128 52 71 0 124 0 amapchunkpl 152 36943 0 36781 50 42 8 13 0 158 0 amappl16 192 35284 0 34633 163 130 33 48 0 8 0 amappl15 184 1342 0 1341 1 0 1 1 0 8 0 amappl14 176 1154 0 1151 2 1 1 1 0 8 0 amappl13 168 811 0 809 6 5 1 1 0 8 0 amappl12 160 894 0 893 2 1 1 1 0 8 0 amappl11 152 790 0 775 1 0 1 1 0 8 0 amappl10 144 193 0 189 1 0 1 1 0 8 0 amappl9 136 1171 0 1163 1 0 1 1 0 8 0 amappl8 128 691 0 649 3 1 2 2 0 8 0 amappl7 120 312 0 305 1 0 1 1 0 8 0 amappl6 112 781 0 769 1 0 1 1 0 8 0 amappl5 104 1291 0 1277 1 0 1 1 0 8 0 amappl4 96 5809 0 5777 1 0 1 1 0 8 0 amappl3 88 2278 0 2273 1 0 1 1 0 8 0 amappl2 80 49830 0 49738 4 2 2 3 0 8 0 amappl1 72 135694 0 135224 26 15 11 20 0 8 0 amappl 80 18543 0 18483 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 138 0 9 3 0 3 3 0 8 0 uaddrrnd 24 6327 0 6283 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6327 0 6283 1 0 1 1 0 8 0 vmmpekpl 168 53115 0 53068 3 0 3 3 0 8 0 vmmpepl 168 758687 0 756706 229 140 89 101 0 357 0 vmsppl 368 6299 0 6283 2 0 2 2 0 8 0 pdppl 4096 12661 0 12595 10 1 9 9 0 8 0 pvpl 32 1864935 0 1850823 400 283 117 161 0 265 3 pmappl 232 6326 0 6285 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 656 0 29 19 0 19 19 0 8 0