g Ăg Ăpanic: pool_cache_item_magic_check: mbufpl cpu free list modified: item addr 0xfffffd8077349d00+16 0x0!=0x56e1465c1c53eece Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 99660 72614 0 0 0 1 syz-executor.0 *382039 25342 0 0 0 0K dhclient 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(ffffffff82677b50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82677b50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806f6ca300,fffffd806f6ca388,ffffffff8224afb0,fffffd80661f3900,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806f6ca300,fffffd80661f3900,0) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd80661f3900,fffffd806f6ca300,2) at route_input+0x489 sys/net/rtsock.c:572 route_output(fffffd80661f3900,fffffd806f6ca300,0,0) at route_output+0x80c sys/net/rtsock.c:857 route_usrreq(fffffd806f6ca300,9,fffffd80661f3900,0,0,ffff800020a5eed8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd806f6ca300,0,ffff800020aa5200,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020a5eed8,6,ffff800020aa5200,0,ffff800020aa52f0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020a5eed8,ffff800020aa52a0,ffff800020aa52f0) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff800020aa5370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aa5370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 end trace frame: 0xffff800020aa53f0, count: 0 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 0xfffffd8077349d00+16 0x0!=0x56e1465c1c53eece 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(ffffffff82677b50) at pool_cache_get+0x323 pool_cache_item_magic_check sys/kern/subr_pool.c:1789 [inline] pool_cache_get(ffffffff82677b50) at pool_cache_get+0x323 sys/kern/subr_pool.c:1892 pool_get() at pool_get+0x91 sys/kern/subr_pool.c:572 m_get(2,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sbappendaddr(fffffd806f6ca300,fffffd806f6ca388,ffffffff8224afb0,fffffd80661f3900,0) at sbappendaddr+0x140 sys/kern/uipc_socket2.c:802 rtm_sendup(fffffd806f6ca300,fffffd80661f3900,0) at rtm_sendup+0xe7 sys/net/rtsock.c:594 route_input(fffffd80661f3900,fffffd806f6ca300,2) at route_input+0x489 sys/net/rtsock.c:572 route_output(fffffd80661f3900,fffffd806f6ca300,0,0) at route_output+0x80c sys/net/rtsock.c:857 route_usrreq(fffffd806f6ca300,9,fffffd80661f3900,0,0,ffff800020a5eed8) at route_usrreq+0x363 sys/net/rtsock.c:275 sosend(fffffd806f6ca300,0,ffff800020aa5200,0,0,0) at sosend+0x645 sys/kern/uipc_socket.c:524 dofilewritev(ffff800020a5eed8,6,ffff800020aa5200,0,ffff800020aa52f0) at dofilewritev+0x1b7 sys/kern/sys_generic.c:364 sys_writev(ffff800020a5eed8,ffff800020aa52a0,ffff800020aa52f0) at sys_writev+0xa7 sys/kern/sys_generic.c:311 syscall(ffff800020aa5370) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020aa5370) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,79,0,79,9de831cf,fc9dd85b000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd4730, count: -15 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020aa4a90 rbx 0xffff800020aa4b40 rdx 0xffff800020a5eed8 rcx 0 rax 0 r8 0xffffffff813d3def kprintf+0x16f r9 0x1 r10 0x25 r11 0xa817567d8a23cd86 r12 0x3000000008 r13 0xffff800020aa4aa0 r14 0x100 r15 0x1 rip 0xffffffff81b684c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020aa4a80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (dhclient) pid=382039 stat=onproc flags process=0 proc=0 pri=51, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e280,0xffff800020a5f160 process=0xffff800020a8a390 user=0xffff800020aa0000, vmspace=0xfffffd807f00a2e0 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72614 99660 3207 0 7 0 syz-executor.0 72614 183550 3207 0 3 0x4000080 fsleep syz-executor.0 93263 461431 19749 0 3 0x80 nanosleep syz-executor.1 93263 347751 19749 0 3 0x4000080 netio syz-executor.1 93263 236348 19749 0 3 0x4000080 fsleep syz-executor.1 19749 298227 19561 0 3 0x82 nanosleep syz-executor.1 3207 484147 19561 0 3 0x82 nanosleep syz-executor.0 21005 285326 0 0 3 0x14200 acct acct 18012 277933 0 0 3 0x14200 bored sosplice 19561 38639 44291 0 3 0x82 thrsleep syz-fuzzer 19561 408839 44291 0 3 0x4000082 nanosleep syz-fuzzer 19561 382926 44291 0 3 0x4000082 kqread syz-fuzzer 19561 90980 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 271797 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 353758 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 421975 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 208902 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 204438 44291 0 3 0x4000082 thrsleep syz-fuzzer 19561 451765 44291 0 3 0x4000082 nanosleep syz-fuzzer 44291 22794 51848 0 3 0x10008a pause ksh 51848 195490 34319 0 3 0x92 select sshd 37381 370303 1 0 3 0x100083 ttyin getty 34319 448564 1 0 3 0x80 select sshd 11173 183580 49686 74 3 0x100092 bpf pflogd 49686 115160 1 0 3 0x80 netio pflogd 73305 336479 73629 73 3 0x100090 kqread syslogd 73629 26863 1 0 3 0x100082 netio syslogd 5012 239459 1 77 3 0x100090 poll dhclient *25342 382039 1 0 7 0 dhclient 72855 62917 0 0 3 0x14200 pgzero zerothread 55228 422969 0 0 3 0x14200 aiodoned aiodoned 55979 311753 0 0 3 0x14200 syncer update 3287 410143 0 0 3 0x14200 cleaner cleaner 26953 282617 0 0 3 0x14200 reaper reaper 98403 177217 0 0 3 0x14200 pgdaemon pagedaemon 52205 271750 0 0 3 0x14200 bored crynlk 49057 47207 0 0 3 0x14200 bored crypto 31923 449439 0 0 3 0x40014200 acpi0 acpi0 73488 25991 0 0 3 0x40014200 idle1 57086 287628 0 0 3 0x14200 bored softnet 17229 127577 0 0 3 0x14200 bored systqmp 85242 197824 0 0 3 0x14200 bored systq 39731 194440 0 0 3 0x40014200 bored softclock 445 465310 0 0 3 0x40014200 idle0 34331 97413 0 0 3 0x14200 bored smr 1 85280 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 25342 (dhclient) thread 0xffff800020a5eed8 (382039) exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82653f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x66 sys/kern/uipc_socket2.c:292 #2 sosend+0x51b sys/kern/uipc_socket.c:512 #3 dofilewritev+0x1b7 sys/kern/sys_generic.c:364 #4 sys_writev+0xa7 sys/kern/sys_generic.c:311 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9556 6491K 6939K 78643K 12597 0 0 pcb 13 10K 12K 78643K 220 0 0 rtable 106 3K 4K 78643K 846 0 0 ifaddr 73 15K 15K 78643K 252 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1512 0 0 iov 0 0K 28K 78643K 131 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 2018 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 11 0 0 VM map 2 1K 1K 78643K 5 0 0 sem 12 0K 0K 78643K 353 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 933 0 0 sigio 0 0K 0K 78643K 27 0 0 proc 61 63K 95K 78643K 697 0 0 subproc 32 2K 2K 78643K 119 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 115 0 0 in_multi 33 2K 2K 78643K 131 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 9 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 350 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 111 22K 24K 78643K 4165 0 0 UVM aobj 64 2K 3K 78643K 70 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 243 0 0 NDP 16 0K 0K 78643K 77 0 0 temp 202 3566K 3639K 78643K 13391 0 0 kqueue 1 0K 0K 78643K 8 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 31 0 26 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 80 0 77 1 0 1 1 0 8 0 rtentry 112 138 0 95 2 0 2 2 0 8 0 unpcb 120 655 0 644 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 7050 0 7050 3 3 0 2 0 8 0 tcpcb 544 679 0 673 14 8 6 13 0 8 5 inpcb 280 2456 0 2440 13 7 6 10 0 8 4 rttmr 72 3 0 3 1 1 0 1 0 8 0 nd6 48 15 0 11 1 0 1 1 0 8 0 ppxss 1128 27 0 27 2 2 0 1 0 8 0 pffrag 232 20 0 20 3 3 0 1 0 482 0 pffrnode 88 20 0 20 3 3 0 1 0 8 0 pffrent 40 84 0 84 3 3 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 71 0 25 1 0 1 1 0 8 0 pfstkey 112 71 0 25 2 0 2 2 0 8 0 pfstate 328 71 0 25 5 0 5 5 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 550 0 331 17 3 14 15 0 8 0 art_table 32 551 0 331 2 0 2 2 0 8 0 art_node 16 136 0 97 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 2 2 0 1 0 8 0 semapl 112 351 0 341 1 0 1 1 0 8 0 shmpl 112 68 0 6 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2815 0 1405 46 0 46 46 0 8 0 ffsino 272 2815 0 1405 95 0 95 95 0 8 0 nchpl 144 4381 0 3918 61 41 20 61 0 8 0 uvmvnodes 72 3402 0 0 62 0 62 62 0 8 0 vnodes 208 3402 0 0 180 0 180 180 0 8 0 namei 1024 13659 0 13659 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 3 0 3 2 2 0 1 0 8 0 scsiplug 64 4 0 4 1 1 0 1 0 8 0 scxspl 192 13240 0 13240 18 17 1 7 0 8 1 plimitpl 152 64 0 56 1 0 1 1 0 8 0 sigapl 432 1118 0 1102 3 1 2 3 0 8 0 futexpl 56 19675 0 19673 1 0 1 1 0 8 0 knotepl 112 284 0 264 1 0 1 1 0 8 0 kqueuepl 104 394 0 391 4 3 1 4 0 8 0 pipepl 112 1170 0 1151 7 5 2 2 0 8 1 fdescpl 488 1119 0 1102 3 0 3 3 0 8 0 filepl 152 9833 0 9721 21 12 9 14 0 8 4 lockfpl 104 310 0 309 1 0 1 1 0 8 0 lockfspl 48 104 0 103 1 0 1 1 0 8 0 sessionpl 112 23 0 12 1 0 1 1 0 8 0 pgrppl 48 25 0 14 1 0 1 1 0 8 0 ucredpl 96 1414 0 1405 1 0 1 1 0 8 0 zombiepl 144 1103 0 1103 4 3 1 1 0 8 1 processpl 896 1137 0 1103 4 0 4 4 0 8 0 procpl 632 3156 0 3110 6 1 5 5 0 8 0 srpgc 64 8 0 8 4 4 0 1 0 8 0 sosppl 128 12 0 12 5 4 1 1 0 8 1 sockpl 384 3221 0 3191 19 11 8 15 0 8 5 mcl64k 65536 259 0 0 33 1 32 33 0 8 1 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 9 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 219 0 0 26 0 26 26 0 8 0 mtagpl 80 20 0 0 1 0 1 1 0 8 0 mbufpl 256 439 0 0 24 0 24 24 0 8 0 bufpl 256 8392 0 1344 441 0 441 441 0 8 0 anonpl 16 130065 0 113464 90 20 70 86 0 124 0 amapchunkpl 152 7341 0 7198 21 14 7 13 0 158 0 amappl16 192 5302 0 4363 69 21 48 60 0 8 0 amappl15 184 713 0 709 1 0 1 1 0 8 0 amappl14 176 308 0 305 2 1 1 1 0 8 0 amappl13 168 54 0 54 1 1 0 1 0 8 0 amappl12 160 127 0 123 1 0 1 1 0 8 0 amappl11 152 65 0 50 1 0 1 1 0 8 0 amappl10 144 22 0 15 1 0 1 1 0 8 0 amappl9 136 669 0 663 1 0 1 1 0 8 0 amappl8 128 234 0 209 1 0 1 1 0 8 0 amappl7 120 69 0 63 1 0 1 1 0 8 0 amappl6 112 92 0 81 1 0 1 1 0 8 0 amappl5 104 330 0 314 1 0 1 1 0 8 0 amappl4 96 1435 0 1399 2 1 1 2 0 8 0 amappl3 88 394 0 388 1 0 1 1 0 8 0 amappl2 80 8132 0 8047 4 2 2 3 0 8 0 amappl1 72 35227 0 34767 26 16 10 20 0 8 0 amappl 80 3500 0 3452 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 69 0 6 2 0 2 2 0 8 0 uaddrrnd 24 1122 0 1102 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1122 0 1102 1 0 1 1 0 8 0 vmmpekpl 168 13858 0 13827 2 0 2 2 0 8 0 vmmpepl 168 147524 0 145330 185 59 126 127 0 357 30 vmsppl 368 1118 0 1102 2 0 2 2 0 8 0 pdppl 4096 2251 0 2210 8 2 6 6 0 8 0 pvpl 32 390283 0 370415 231 44 187 206 0 265 21 pmappl 232 1121 0 1105 4 3 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 676 0 19 19 0 19 19 0 8 0