uvm_fault(0xffffffff82887150, 0xfffffd000000001c, 0, 1) -> e kernel: page fault trap, code=0 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel page fault uvm_fault(0xffffffff82887150, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff8000230f1d80, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff8000230f1d98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff8000230f1d98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac5278) at ifq_purge+0x9a sys/net/ifq.c:529 if_down(ffff800000ac5000) at if_down+0x9c if_linkstate sys/net/if.c:1671 [inline] if_down(ffff800000ac5000) at if_down+0x9c sys/net/if.c:1622 ifioctl(fffffd80647741e8,80206910,ffff8000230f1f60,ffff800020e09c48) at ifioctl+0x177d sys/net/if.c:2009 soo_ioctl(fffffd80683f8ab0,80206910,ffff8000230f1f60,ffff800020e09c48) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e09c48,ffff8000230f2078,ffff8000230f20c0) at sys_ioctl+0x4a5 syscall(ffff8000230f2140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230f2140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8ef70e1cbf0, count: -9 ddb{0}> show registers rdi 0x7 rsi 0x6ce03 acpi_pdirpa+0x58c6b rbp 0xffff8000230f1d40 rbx 0 rdx 0x6ce02 acpi_pdirpa+0x58c6a rcx 0xffffffff8271f900 mbstat_boot_boot_cpumem rax 0x7 r8 0xffffffff81c05172 tun_ioctl+0x42 r9 0x7 r10 0x345cde6966ec100a r11 0x9ee77af5cf634985 r12 0xfffffd806f27a300 r13 0x52cc7f52 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff8168e158 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000230f1d00 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.0) pid=505628 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020e09018,0xffffffff828ed3c0 process=0xffff800020ec9768 user=0xffff8000230ed000, vmspace=0xfffffd807f000000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46438 26709 10109 0 7 0 syz-executor.0 *46438 505628 10109 0 7 0x4000000 syz-executor.0 9697 83668 1 0 3 0x100083 ttyin getty 46835 204434 0 0 3 0x14200 bored sosplice 73869 405491 82660 0 3 0x82 piperd syz-executor.1 10109 357159 82660 0 3 0x82 nanosleep syz-executor.0 82660 263374 78490 0 3 0x82 thrsleep syz-fuzzer 82660 265394 78490 0 3 0x4000082 nanosleep syz-fuzzer 82660 70621 78490 0 3 0x4000082 thrsleep syz-fuzzer 82660 252126 78490 0 3 0x4000082 thrsleep syz-fuzzer 82660 460805 78490 0 3 0x4000082 kqread syz-fuzzer 82660 468539 78490 0 3 0x4000082 thrsleep syz-fuzzer 82660 519089 78490 0 3 0x4000082 thrsleep syz-fuzzer 82660 225347 78490 0 3 0x4000082 thrsleep syz-fuzzer 82660 240395 78490 0 2 0x4000002 syz-fuzzer 82660 523694 78490 0 3 0x4000082 thrsleep syz-fuzzer 78490 324413 54514 0 3 0x10008a pause ksh 54514 59595 11630 0 3 0x92 select sshd 11630 261542 1 0 3 0x80 select sshd 47762 469600 76049 74 3 0x100092 bpf pflogd 76049 152240 1 0 3 0x80 netio pflogd 31949 191652 17452 73 3 0x100090 kqread syslogd 17452 34869 1 0 3 0x100082 netio syslogd 38941 217819 1 77 3 0x100090 poll dhclient 48295 376277 1 0 3 0x80 poll dhclient 11732 103669 0 0 3 0x14200 bored smr 50319 85195 0 0 2 0x14200 zerothread 30976 516039 0 0 3 0x14200 aiodoned aiodoned 41890 463848 0 0 3 0x14200 syncer update 2972 158826 0 0 3 0x14200 cleaner cleaner 47750 336648 0 0 3 0x14200 reaper reaper 59088 315675 0 0 3 0x14200 pgdaemon pagedaemon 48611 154098 0 0 3 0x14200 bored crynlk 79164 344173 0 0 3 0x14200 bored crypto 8945 456140 0 0 3 0x40014200 acpi0 acpi0 11994 119539 0 0 3 0x40014200 idle1 13698 30474 0 0 3 0x14200 bored softnet 46433 376384 0 0 3 0x14200 bored systqmp 66816 458182 0 0 3 0x14200 bored systq 72738 515157 0 0 3 0x40014200 bored softclock 80500 6278 0 0 3 0x40014200 idle0 1 222826 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 46438 (syz-executor.0) thread 0xffff800020e09c48 (505628) exclusive rwlock netlock r = 0 (0xffffffff82711af8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 ifioctl+0x120b sys/net/if.c:1998 #2 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #3 sys_ioctl+0x4a5 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff828eb410) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 soo_ioctl+0x26a sys/kern/sys_socket.c:138 #2 sys_ioctl+0x4a5 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9529 6429K 6677K 78643K 11345 0 pcb 14 8K 8K 78643K 124 0 rtable 114 9K 11K 78643K 407 0 ifaddr 99 20K 20K 78643K 165 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 47 0 ioctlops 0 0K 4K 78643K 1565 0 iov 0 0K 16K 78643K 67 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1456 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 12 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 101 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 707 0 sigio 0 0K 0K 78643K 12 0 proc 61 63K 95K 78643K 533 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 32 0 in_multi 79 3K 4K 78643K 193 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 7 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 240 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 133 40K 55K 78643K 2912 0 UVM aobj 30 4K 4K 78643K 32 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 295 0 NDP 13 0K 0K 78643K 31 0 temp 143 3869K 3933K 78643K 12450 0 kqueue 3 4K 22K 78643K 42 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 55 0 53 1 0 1 1 0 8 0 rtentry 112 83 0 48 2 0 2 2 0 8 0 unpcb 120 399 0 388 2 1 1 2 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 sackhl 24 2 0 2 2 1 1 1 0 8 1 tcpqe 32 11 0 11 1 1 0 1 0 8 0 tcpcb 544 500 0 496 1 0 1 1 0 8 0 inpcb 296 1700 0 1691 3 1 2 2 0 8 1 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 25 0 20 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 pffrag 232 5 0 4 2 1 1 1 0 482 0 pffrnode 88 5 0 4 2 1 1 1 0 8 0 pffrent 40 188 0 187 4 3 1 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 pfrktable 1344 31 0 20 3 2 1 2 0 8 0 pfstitem 24 22 0 14 1 0 1 1 0 8 0 pfstkey 112 22 0 14 1 0 1 1 0 8 0 pfstate 328 22 0 14 2 0 2 2 0 8 0 pfsrctr 152 29 0 29 1 1 0 1 0 8 0 pfrule 1360 43 0 21 3 1 2 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 328 0 168 14 1 13 14 0 8 0 art_table 32 329 0 168 2 0 2 2 0 8 0 art_node 16 82 0 52 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 99 0 89 1 0 1 1 0 8 0 shmpl 112 29 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2284 0 878 90 2 88 89 0 8 0 ffsino 272 2284 0 878 96 2 94 95 0 8 0 nchpl 144 3503 0 1892 60 0 60 60 0 8 0 uvmvnodes 72 2493 0 0 46 0 46 46 0 8 0 vnodes 208 2493 0 0 132 0 132 132 0 8 0 namei 1024 9439 0 9439 2 1 1 1 0 8 1 percpumem 16 34 0 2 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 13 0 5 1 0 1 1 0 8 0 scxspl 192 9963 0 9963 9 8 1 7 0 8 1 plimitpl 152 67 0 59 1 0 1 1 0 8 0 sigapl 424 924 0 892 4 0 4 4 0 8 0 futexpl 56 12752 0 12752 2 1 1 1 0 8 1 knotepl 112 149 0 130 2 1 1 2 0 8 0 kqueuepl 144 86 0 84 1 0 1 1 0 8 0 pipepl 304 168 0 158 2 1 1 2 0 8 0 fdescpl 496 908 0 892 3 0 3 3 0 8 0 filepl 152 5576 0 5473 8 3 5 7 0 8 0 lockfpl 104 181 0 180 1 0 1 1 0 8 0 lockfspl 48 55 0 54 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 581 0 572 1 0 1 1 0 8 0 zombiepl 144 892 0 892 3 2 1 1 0 8 1 processpl 992 924 0 892 6 1 5 5 0 8 0 procpl 624 2106 0 2064 4 0 4 4 0 8 0 sosppl 128 13 0 13 4 3 1 1 0 8 1 sockpl 400 2166 0 2144 13 10 3 8 0 8 0 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 207 0 0 25 0 25 25 0 8 1 mtagpl 96 56 0 0 2 0 2 2 0 8 0 mbufpl 256 538 0 0 30 0 30 30 0 8 0 bufpl 280 4822 0 137 335 0 335 335 0 8 0 anonpl 16 94538 0 77023 82 2 80 81 0 124 0 amapchunkpl 152 4590 0 4436 21 13 8 20 0 158 0 amappl16 192 3782 0 2711 56 2 54 55 0 8 0 amappl15 184 389 0 385 1 0 1 1 0 8 0 amappl14 176 26 0 19 1 0 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 5 0 4 1 0 1 1 0 8 0 amappl11 152 59 0 44 1 0 1 1 0 8 0 amappl10 144 399 0 392 1 0 1 1 0 8 0 amappl9 136 681 0 679 1 0 1 1 0 8 0 amappl8 128 645 0 610 2 0 2 2 0 8 0 amappl7 120 120 0 107 1 0 1 1 0 8 0 amappl6 112 29 0 22 2 1 1 1 0 8 0 amappl5 104 807 0 788 1 0 1 1 0 8 0 amappl4 96 500 0 470 1 0 1 1 0 8 0 amappl3 88 130 0 122 1 0 1 1 0 8 0 amappl2 80 6720 0 6646 2 0 2 2 0 8 0 amappl1 72 33285 0 32835 23 13 10 18 0 8 0 amappl 80 2364 0 2315 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 31 0 2 1 0 1 1 0 8 0 uaddrrnd 24 914 0 894 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 914 0 894 1 0 1 1 0 8 0 vmmpekpl 168 9899 0 9864 2 0 2 2 0 8 0 vmmpepl 168 119345 0 117072 130 25 105 119 0 357 4 vmsppl 368 913 0 894 2 0 2 2 0 8 0 pdppl 4096 1835 0 1792 7 1 6 6 0 8 0 pvpl 32 301027 0 280336 188 2 186 188 0 265 0 pmappl 232 913 0 894 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 297 0 20 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff8000230f1d98) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff8000230f1d98) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac5278) at ifq_purge+0x9a sys/net/ifq.c:529 if_down(ffff800000ac5000) at if_down+0x9c if_linkstate sys/net/if.c:1671 [inline] if_down(ffff800000ac5000) at if_down+0x9c sys/net/if.c:1622 ifioctl(fffffd80647741e8,80206910,ffff8000230f1f60,ffff800020e09c48) at ifioctl+0x177d sys/net/if.c:2009 soo_ioctl(fffffd80683f8ab0,80206910,ffff8000230f1f60,ffff800020e09c48) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e09c48,ffff8000230f2078,ffff8000230f20c0) at sys_ioctl+0x4a5 syscall(ffff8000230f2140) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230f2140) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8ef70e1cbf0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __sanitizer_cov_trace_cmp8(7f7fffecffff,7f7ffffce138) at __sanitizer_cov_trace_cmp8+0x3b kd_curproc sys/dev/kcov.c:411 [inline] __sanitizer_cov_trace_cmp8(7f7fffecffff,7f7ffffce138) at __sanitizer_cov_trace_cmp8+0x3b trace_cmp sys/dev/kcov.c:104 [inline] __sanitizer_cov_trace_cmp8(7f7fffecffff,7f7ffffce138) at __sanitizer_cov_trace_cmp8+0x3b sys/dev/kcov.c:142 uvm_map_inentry(ffff800020e09018,ffff800020e09078,7f7ffffce138,ffffffff82424640,ffffffff821cad40,0) at uvm_map_inentry+0x76 uvm_map_inentry_recheck sys/uvm/uvm_map.c:1837 [inline] uvm_map_inentry(ffff800020e09018,ffff800020e09078,7f7ffffce138,ffffffff82424640,ffffffff821cad40,0) at uvm_map_inentry+0x76 sys/uvm/uvm_map.c:1888 syscall(ffff800023100dc0) at syscall+0x397 mi_syscall sys/sys/syscall_mi.h:81 [inline] syscall(ffff800023100dc0) at syscall+0x397 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffce1b0, count: -7