panic: pr_find_pagehead: mbufpl: incorrect page Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *272722 22675 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e2f1d) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82595600,fffffd8057d70000) at pool_do_put+0x36a pool_put(ffffffff82595600,fffffd8057d70000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd8057d70000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001fe5cd98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001fe5cd98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000a09278) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff800000a09000) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff800000a09000) at if_down+0x9c sys/net/if.c:1626 if_clone_destroy(ffff80001fe5cf40) at if_clone_destroy+0x11c sys/net/if.c:1303 ifioctl(fffffd80580b7b00,80206979,ffff80001fe5cf40,ffff80001d75eae8) at ifioctl+0x3de sys/net/if.c:1936 sys_ioctl(ffff80001d75eae8,ffff80001fe5d058,ffff80001fe5d0a0) at sys_ioctl+0x4a1 syscall(ffff80001fe5d120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64110457610, 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(ffffffff821e2f1d) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82595600,fffffd8057d70000) at pool_do_put+0x36a pool_put(ffffffff82595600,fffffd8057d70000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd8057d70000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001fe5cd98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001fe5cd98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000a09278) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff800000a09000) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff800000a09000) at if_down+0x9c sys/net/if.c:1626 if_clone_destroy(ffff80001fe5cf40) at if_clone_destroy+0x11c sys/net/if.c:1303 ifioctl(fffffd80580b7b00,80206979,ffff80001fe5cf40,ffff80001d75eae8) at ifioctl+0x3de sys/net/if.c:1936 sys_ioctl(ffff80001d75eae8,ffff80001fe5d058,ffff80001fe5d0a0) at sys_ioctl+0x4a1 syscall(ffff80001fe5d120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64110457610, count: -13 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001fe5cb40 rbx 0xffff80001fe5cbf0 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81ca883f kprintf+0x15f r9 0x1 r10 0x2 r11 0x52edb663059336c3 r12 0x3000000008 r13 0xffff80001fe5cb50 r14 0x100 r15 0x1 rip 0xffffffff81963dc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001fe5cb30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=272722 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff80001d75ed58,0xffffffff825c0e20 process=0xffff8000ffffb938 user=0xffff80001fe58000, vmspace=0xfffffd8057c15558 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 22675 368563 63579 0 2 0 syz-executor.0 *22675 272722 63579 0 7 0x4000000 syz-executor.0 57893 330314 0 0 3 0x14200 acct acct 63579 26724 65740 0 3 0x82 nanosleep syz-executor.0 6264 162189 65740 0 3 0x82 piperd syz-executor.1 91377 462035 0 0 3 0x14200 bored sosplice 65740 400318 76781 0 3 0x82 thrsleep syz-fuzzer 65740 403576 76781 0 3 0x4000082 nanosleep syz-fuzzer 65740 186343 76781 0 2 0x4000002 syz-fuzzer 65740 442916 76781 0 3 0x4000082 thrsleep syz-fuzzer 65740 49210 76781 0 3 0x4000082 thrsleep syz-fuzzer 65740 102956 76781 0 3 0x4000082 thrsleep syz-fuzzer 65740 47124 76781 0 3 0x4000082 thrsleep syz-fuzzer 65740 481655 76781 0 3 0x4000082 thrsleep syz-fuzzer 76781 262279 79374 0 3 0x10008a pause ksh 79374 356968 74114 0 3 0x92 select sshd 42693 364784 1 0 3 0x100083 ttyin getty 74114 164270 1 0 3 0x80 select sshd 15225 321626 2653 73 3 0x100090 kqread syslogd 2653 181592 1 0 3 0x100082 netio syslogd 50368 181365 1 77 3 0x100090 poll dhclient 27106 461171 1 0 3 0x80 poll dhclient 646 255989 0 0 3 0x14200 bored smr 33202 191815 0 0 2 0x14200 zerothread 10938 434885 0 0 3 0x14200 aiodoned aiodoned 22206 517388 0 0 3 0x14200 syncer update 4086 147784 0 0 3 0x14200 cleaner cleaner 61213 139776 0 0 3 0x14200 reaper reaper 67332 98481 0 0 3 0x14200 pgdaemon pagedaemon 49649 446053 0 0 3 0x14200 bored crynlk 34008 94792 0 0 3 0x14200 bored crypto 90811 414632 0 0 3 0x40014200 acpi0 acpi0 3850 57125 0 0 3 0x14200 bored softnet 49846 6326 0 0 3 0x14200 bored systqmp 38716 354836 0 0 3 0x14200 bored systq 32259 408462 0 0 3 0x40014200 bored softclock 89153 445025 0 0 3 0x40014200 idle0 1 76375 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 9534 6363K 6866K 78643K 11666 0 pcb 15 8K 8K 78643K 177 0 rtable 86 3K 4K 78643K 463 0 ifaddr 104 19K 20K 78643K 210 0 counters 21 16K 16K 78643K 35 0 ioctlops 0 0K 2K 78643K 45 0 iov 0 0K 32K 78643K 164 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1631 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 16 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 124 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 684 0 sigio 0 0K 0K 78643K 10 0 proc 49 38K 63K 78643K 527 0 subproc 32 2K 2K 78643K 68 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 66 0 in_multi 99 4K 4K 78643K 214 0 ether_multi 1 0K 0K 78643K 22 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 298 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 140 104K 136K 78643K 2508 0 UVM aobj 31 2K 3K 78643K 39 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 120 0 NDP 16 0K 0K 78643K 42 0 temp 135 3036K 3100K 78643K 32868 0 kqueue 3 4K 12K 78643K 51 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 10 0 4 1 0 1 1 0 8 0 rtpcb 80 63 0 61 1 0 1 1 0 8 0 rtentry 112 87 0 56 3 1 2 2 0 8 0 unpcb 120 470 0 461 1 0 1 1 0 8 0 syncache 264 13 0 13 4 4 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 544 275 0 271 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 781 0 772 4 3 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 18 0 15 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 429 0 276 15 3 12 13 0 8 0 art_table 32 431 0 276 2 0 2 2 0 8 0 art_node 16 86 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 10 2 1 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 118 0 108 1 0 1 1 0 8 0 shmpl 112 37 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2363 0 962 88 0 88 88 0 8 0 ffsino 240 2363 0 962 83 0 83 83 0 8 0 nchpl 144 3929 0 2342 60 0 60 60 0 8 0 uvmvnodes 72 2692 0 0 49 0 49 49 0 8 0 vnodes 208 2692 0 0 142 0 142 142 0 8 0 namei 1024 10960 0 10960 2 1 1 1 0 8 1 vcpupl 1984 10 0 0 2 0 2 2 0 8 0 vmpool 528 15 0 5 1 0 1 1 0 8 0 scxspl 192 12411 0 12411 1 0 1 1 0 8 1 plimitpl 152 82 0 75 1 0 1 1 0 8 0 sigapl 424 866 0 836 4 0 4 4 0 8 0 futexpl 56 14276 0 14276 2 1 1 1 0 8 1 knotepl 112 133 0 114 1 0 1 1 0 8 0 kqueuepl 144 127 0 123 1 0 1 1 0 8 0 pipelkpl 16 170 0 160 1 0 1 1 0 8 0 pipepl 120 340 0 321 1 0 1 1 0 8 0 fdescpl 432 850 0 836 2 0 2 2 0 8 0 filepl 120 6029 0 5932 5 1 4 4 0 8 1 lockfpl 104 242 0 241 1 0 1 1 0 8 0 lockfspl 48 87 0 86 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 25 0 15 1 0 1 1 0 8 0 ucredpl 96 780 0 773 1 0 1 1 0 8 0 zombiepl 144 836 0 836 1 0 1 1 0 8 1 processpl 920 866 0 836 4 0 4 4 0 8 0 procpl 624 1658 0 1620 4 0 4 4 0 8 0 sosppl 128 14 0 14 4 4 0 1 0 8 0 sockpl 400 1320 0 1300 8 5 3 4 0 8 0 mcl64k 65536 586 0 586 36 36 0 32 0 8 0 mcl16k 16384 6 0 6 4 4 0 1 0 8 0 mcl12k 12288 31 0 31 7 6 1 1 0 8 1 mcl9k 9216 11 0 11 6 5 1 1 0 8 1 mcl8k 8192 19 0 19 5 5 0 1 0 8 0 mcl4k 4096 70 0 70 8 7 1 1 0 8 1 mcl2k2 2112 6 0 6 2 2 0 1 0 8 0 mcl2k 2048 65537 0 65495 16 9 7 12 0 8 1 mtagpl 80 66 0 33 3 2 1 1 0 8 0 mbufpl 256 109925 0 109774 42 25 17 21 0 8 1 bufpl 280 5993 0 632 384 0 384 384 0 8 0 anonpl 16 110320 0 95758 99 38 61 77 0 107 0 amapchunkpl 152 5018 0 4881 45 32 13 20 0 158 7 amappl16 192 4840 0 4007 78 36 42 54 0 8 0 amappl15 184 114 0 113 1 0 1 1 0 8 0 amappl14 176 207 0 200 1 0 1 1 0 8 0 amappl13 168 35 0 34 1 0 1 1 0 8 0 amappl12 160 140 0 133 2 1 1 1 0 8 0 amappl11 152 377 0 366 1 0 1 1 0 8 0 amappl10 144 20 0 15 1 0 1 1 0 8 0 amappl9 136 293 0 291 1 0 1 1 0 8 0 amappl8 128 383 0 340 2 0 2 2 0 8 0 amappl7 120 121 0 107 1 0 1 1 0 8 0 amappl6 112 356 0 343 1 0 1 1 0 8 0 amappl5 104 906 0 895 1 0 1 1 0 8 0 amappl4 96 503 0 477 1 0 1 1 0 8 0 amappl3 88 318 0 313 1 0 1 1 0 8 0 amappl2 80 5963 0 5897 2 0 2 2 0 8 0 amappl1 72 24428 0 24022 24 15 9 17 0 8 0 amappl 80 1932 0 1885 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 38 0 8 1 0 1 1 0 8 0 uaddrrnd 24 865 0 841 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 865 0 841 1 0 1 1 0 8 0 vmmpekpl 168 8937 0 8909 2 0 2 2 0 8 0 vmmpepl 168 109820 0 107863 132 43 89 115 0 357 0 vmsppl 272 864 0 841 2 0 2 2 0 8 0 pdppl 4096 1736 0 1692 7 1 6 6 0 8 0 pvpl 32 312352 0 295158 215 69 146 182 0 265 0 pmappl 200 864 0 841 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 328 0 98 9 1 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e2f1d) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82595600,fffffd8057d70000) at pool_do_put+0x36a pool_put(ffffffff82595600,fffffd8057d70000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd8057d70000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001fe5cd98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001fe5cd98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000a09278) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff800000a09000) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff800000a09000) at if_down+0x9c sys/net/if.c:1626 if_clone_destroy(ffff80001fe5cf40) at if_clone_destroy+0x11c sys/net/if.c:1303 ifioctl(fffffd80580b7b00,80206979,ffff80001fe5cf40,ffff80001d75eae8) at ifioctl+0x3de sys/net/if.c:1936 sys_ioctl(ffff80001d75eae8,ffff80001fe5d058,ffff80001fe5d0a0) at sys_ioctl+0x4a1 syscall(ffff80001fe5d120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64110457610, count: -13 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e2f1d) at panic+0x15c sys/kern/subr_prf.c:207 pool_do_put(ffffffff82595600,fffffd8057d70000) at pool_do_put+0x36a pool_put(ffffffff82595600,fffffd8057d70000) at pool_put+0x4b sys/kern/subr_pool.c:794 m_free(fffffd8057d70000) at m_free+0x119 sys/kern/uipc_mbuf.c:459 ml_purge(ffff80001fe5cd98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff80001fe5cd98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000a09278) at ifq_purge+0x97 sys/net/ifq.c:462 if_down(ffff800000a09000) at if_down+0x9c if_linkstate sys/net/if.c:1675 [inline] if_down(ffff800000a09000) at if_down+0x9c sys/net/if.c:1626 if_clone_destroy(ffff80001fe5cf40) at if_clone_destroy+0x11c sys/net/if.c:1303 ifioctl(fffffd80580b7b00,80206979,ffff80001fe5cf40,ffff80001d75eae8) at ifioctl+0x3de sys/net/if.c:1936 sys_ioctl(ffff80001d75eae8,ffff80001fe5d058,ffff80001fe5d0a0) at sys_ioctl+0x4a1 syscall(ffff80001fe5d120) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x64110457610, count: -13