panic: pr_find_pagehead: mbufpl: incorrect page Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *484113 84162 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d51c1) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8256d2d0,fffffd80569f0000) at pool_do_put+0x36a pool_put(ffffffff8256d2d0,fffffd80569f0000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd80569f0000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001e486c08) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001e486c08) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff8000009fea78) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff8000009fe800) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff8000009fe800) at if_down+0x9c sys/net/if.c:1626 if_setrdomain(ffff8000009fe800,2) at if_setrdomain+0x17c sys/net/if.c:1878 ifioctl(fffffd806b6fc830,8020699f,ffff80001e486dd0,ffff80001d35d4f8) at ifioctl+0x169d sys/net/if.c:2146 sys_ioctl(ffff80001d35d4f8,ffff80001e486ee8,ffff80001e486f30) at sys_ioctl+0x4a1 syscall(ffff80001e486fb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbdebf4ab8f0, count: 2 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic pr_find_pagehead: mbufpl: incorrect page ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d51c1) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff8256d2d0,fffffd80569f0000) at pool_do_put+0x36a pool_put(ffffffff8256d2d0,fffffd80569f0000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd80569f0000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001e486c08) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001e486c08) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff8000009fea78) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff8000009fe800) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff8000009fe800) at if_down+0x9c sys/net/if.c:1626 if_setrdomain(ffff8000009fe800,2) at if_setrdomain+0x17c sys/net/if.c:1878 ifioctl(fffffd806b6fc830,8020699f,ffff80001e486dd0,ffff80001d35d4f8) at ifioctl+0x169d sys/net/if.c:2146 sys_ioctl(ffff80001d35d4f8,ffff80001e486ee8,ffff80001e486f30) at sys_ioctl+0x4a1 syscall(ffff80001e486fb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbdebf4ab8f0, count: -13 ddb> show registers rdi 0xffffffff820ee047 db_enter+0x17 rsi 0x23d0 __ALIGN_SIZE+0x13d0 rbp 0xffff80001e4869b0 rbx 0xffff80001e486a60 rdx 0x23d1 __ALIGN_SIZE+0x13d1 rcx 0xffff80001f623000 rax 0xffff80001f623000 r8 0xffff80001e486970 r9 0x1 r10 0xffff8000009fc880 r11 0xcc5f0ca567702331 r12 0x3000000008 r13 0xffff80001e4869c0 r14 0x100 r15 0x1 rip 0xffffffff820ee048 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e4869a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=484113 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff80001d35e398,0xffffffff82590870 process=0xffff8000ffffb190 user=0xffff80001e482000, vmspace=0xfffffd80569f4448 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84162 513381 41834 0 2 0 syz-executor.1 *84162 484113 41834 0 7 0x4000000 syz-executor.1 79081 402924 25982 0 2 0 syz-executor.0 79081 338729 25982 0 3 0x4000080 fsleep syz-executor.0 25982 114400 49145 0 3 0x82 nanosleep syz-executor.0 99538 355902 0 0 3 0x14200 acct acct 61379 479803 0 0 3 0x14200 bored sosplice 41834 398631 49145 0 3 0x82 nanosleep syz-executor.1 49145 182377 61383 0 3 0x82 thrsleep syz-fuzzer 49145 21776 61383 0 3 0x4000082 nanosleep syz-fuzzer 49145 336750 61383 0 3 0x4000082 thrsleep syz-fuzzer 49145 321628 61383 0 3 0x4000082 thrsleep syz-fuzzer 49145 111790 61383 0 3 0x4000082 thrsleep syz-fuzzer 49145 291109 61383 0 3 0x4000082 thrsleep syz-fuzzer 49145 403810 61383 0 3 0x4000082 thrsleep syz-fuzzer 49145 436002 61383 0 3 0x4000082 kqread syz-fuzzer 61383 160906 38831 0 3 0x10008a pause ksh 38831 150871 82915 0 3 0x92 select sshd 61251 431918 1 0 3 0x100083 ttyin getty 82915 243115 1 0 3 0x80 select sshd 33965 515654 26605 73 3 0x100090 kqread syslogd 26605 453317 1 0 3 0x100082 netio syslogd 98064 151603 1 77 2 0x100090 dhclient 47553 196417 1 0 3 0x80 poll dhclient 69373 182663 0 0 3 0x14200 bored smr 80611 126289 0 0 2 0x14200 zerothread 92458 443953 0 0 3 0x14200 aiodoned aiodoned 89663 155433 0 0 3 0x14200 syncer update 5460 265810 0 0 3 0x14200 cleaner cleaner 76442 450607 0 0 3 0x14200 reaper reaper 28263 80867 0 0 3 0x14200 pgdaemon pagedaemon 54179 297796 0 0 3 0x14200 bored crynlk 77585 157193 0 0 3 0x14200 bored crypto 99271 380345 0 0 3 0x40014200 acpi0 acpi0 36611 450950 0 0 3 0x14200 bored softnet 26909 70195 0 0 3 0x14200 bored systqmp 37300 470033 0 0 3 0x14200 bored systq 55415 75787 0 0 3 0x40014200 bored softclock 64054 88753 0 0 3 0x40014200 idle0 1 350895 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9516 6418K 7830K 78643K 12509 0 pcb 14 10K 12K 78643K 110 0 rtable 100 3K 4K 78643K 338 0 ifaddr 78 15K 15K 78643K 125 0 counters 21 16K 16K 78643K 28 0 ioctlops 0 0K 2K 78643K 37 0 iov 0 0K 24K 78643K 218 0 mount 1 1K 1K 78643K 1 0 vnodes 1233 78K 78K 78643K 1762 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 9 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 42 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 6 17K 21K 78643K 397 0 sigio 0 0K 0K 78643K 6 0 proc 50 38K 55K 78643K 443 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 292 0 in_multi 71 3K 4K 78643K 147 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 13 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 254 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 113 54K 59K 78643K 1808 0 UVM aobj 39 2K 3K 78643K 41 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 65 0 NDP 12 0K 0K 78643K 26 0 temp 129 3022K 3092K 78643K 9826 0 kqueue 3 4K 12K 78643K 27 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 3 1 0 1 1 0 8 0 rtpcb 80 48 0 46 1 0 1 1 0 8 0 rtentry 112 69 0 32 2 0 2 2 0 8 0 unpcb 120 235 0 227 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 0 1 1 0 8 1 tcpqe 32 40 0 40 2 2 0 1 0 8 0 tcpcb 544 469 0 464 14 7 7 14 0 8 6 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 90 0 90 2 2 0 1 0 8 0 inpcb 280 996 0 984 9 2 7 9 0 8 6 rttmr 72 6 0 6 1 0 1 1 0 8 1 nd6 48 11 0 4 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 420 0 265 13 1 12 13 0 8 2 art_table 32 422 0 265 2 0 2 2 0 8 0 art_node 16 68 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 29 1 0 1 1 0 8 0 semapl 112 38 0 28 1 0 1 1 0 8 0 shmpl 112 39 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1983 0 582 46 0 46 46 0 8 0 ffsino 240 1983 0 582 83 0 83 83 0 8 0 nchpl 144 2823 0 1229 60 0 60 60 0 8 0 uvmvnodes 72 2473 0 0 45 0 45 45 0 8 0 vnodes 208 2473 0 0 131 0 131 131 0 8 0 namei 1024 8161 0 8161 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 8 0 4 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 0 1 1 0 8 1 scxspl 192 9445 0 9445 1 0 1 1 0 8 1 plimitpl 152 50 0 43 1 0 1 1 0 8 0 sigapl 424 582 0 551 4 0 4 4 0 8 0 futexpl 56 12295 0 12294 1 0 1 1 0 8 0 knotepl 112 97 0 78 1 0 1 1 0 8 0 kqueuepl 144 333 0 331 5 2 3 5 0 8 2 pipelkpl 16 161 0 151 1 0 1 1 0 8 0 pipepl 120 322 0 303 1 0 1 1 0 8 0 fdescpl 432 566 0 551 2 0 2 2 0 8 0 filepl 120 4821 0 4721 11 2 9 11 0 8 5 lockfpl 104 161 0 160 1 0 1 1 0 8 0 lockfspl 48 58 0 57 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 541 0 534 1 0 1 1 0 8 0 zombiepl 144 551 0 551 1 0 1 1 0 8 1 processpl 896 582 0 551 4 0 4 4 0 8 0 procpl 624 1052 0 1012 4 0 4 4 0 8 0 sosppl 128 20 0 20 1 0 1 1 0 8 1 sockpl 400 1297 0 1275 14 6 8 14 0 8 5 mcl64k 65536 37 0 37 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 2 2 0 1 0 8 0 mcl12k 12288 17 0 17 1 0 1 1 0 8 1 mcl9k 9216 8 0 8 1 0 1 1 0 8 1 mcl8k 8192 24 0 24 1 0 1 1 0 8 1 mcl4k 4096 64 0 64 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 2 1 1 1 0 8 1 mcl2k 2048 66986 0 66946 13 7 6 11 0 8 0 mtagpl 80 241 0 69 5 1 4 4 0 8 0 mbufpl 256 109641 0 109194 37 8 29 33 0 8 0 bufpl 280 5546 0 164 385 0 385 385 0 8 0 anonpl 16 70216 0 53777 85 16 69 83 0 107 2 amapchunkpl 152 3197 0 3061 20 9 11 20 0 158 4 amappl16 192 2667 0 1749 54 7 47 54 0 8 1 amappl15 184 350 0 345 1 0 1 1 0 8 0 amappl14 176 84 0 79 2 1 1 1 0 8 0 amappl13 168 124 0 123 1 0 1 1 0 8 0 amappl12 160 7 0 5 1 0 1 1 0 8 0 amappl11 152 66 0 54 1 0 1 1 0 8 0 amappl10 144 17 0 10 1 0 1 1 0 8 0 amappl9 136 372 0 368 1 0 1 1 0 8 0 amappl8 128 300 0 275 1 0 1 1 0 8 0 amappl7 120 112 0 101 1 0 1 1 0 8 0 amappl6 112 24 0 20 1 0 1 1 0 8 0 amappl5 104 433 0 419 1 0 1 1 0 8 0 amappl4 96 547 0 519 1 0 1 1 0 8 0 amappl3 88 300 0 294 1 0 1 1 0 8 0 amappl2 80 3845 0 3772 3 1 2 3 0 8 0 amappl1 72 19629 0 19205 26 16 10 20 0 8 0 amappl 80 1299 0 1252 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 40 0 2 1 0 1 1 0 8 0 uaddrrnd 24 574 0 555 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 574 0 555 1 0 1 1 0 8 0 vmmpekpl 168 7700 0 7672 2 0 2 2 0 8 0 vmmpepl 168 74531 0 72441 138 19 119 121 0 357 28 vmsppl 272 573 0 555 2 0 2 2 0 8 0 pdppl 4096 1154 0 1114 7 1 6 6 0 8 0 pvpl 32 213851 0 194350 196 14 182 196 0 265 22 pmappl 200 573 0 555 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 201 0 35 6 0 6 6 0 8 0