uvm_fault(0xffffffff827db1f0, 0xfffffd000000001c, 0, 1) -> e kernel: page fault trap, code=0 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel page fault uvm_fault(0xffffffff827db1f0, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800021efb310, count: 0 ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800021efb328) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800021efb328) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af7278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000af7000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000af7000) at if_down+0x9c sys/net/if.c:1619 ifioctl(fffffd806b140b00,80206910,ffff800021efb4f0,ffff8000230fa778) at ifioctl+0x177d sys/net/if.c:2006 soo_ioctl(fffffd806ca59140,80206910,ffff800021efb4f0,ffff8000230fa778) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff8000230fa778,ffff800021efb608,ffff800021efb650) at sys_ioctl+0x4a5 syscall(ffff800021efb6d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021efb6d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x447b0330eb0, count: -9 ddb{1}> show registers rdi 0x7 rsi 0x3babb acpi_pdirpa+0x27923 rbp 0xffff800021efb2d0 rbx 0 rdx 0x3baba acpi_pdirpa+0x27922 rcx 0xffff800000676d80 rax 0x7 r8 0xffffffff8235c0d2 tun_ioctl+0x42 r9 0x7 r10 0x4cea6142d80503db r11 0x594cbd5575ce055b r12 0xfffffd806a3f4f00 r13 0x3 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81104dc8 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800021efb290 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> show proc PROC (syz-executor.1) pid=247928 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000230fa508,0xffff8000230fac68 process=0xffff8000230f8030 user=0xffff800021ef6000, vmspace=0xfffffd8064b5e460 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 11253 138054 58538 0 2 0 syz-executor.0 83031 411880 530 0 7 0 syz-executor.1 *83031 247928 530 0 7 0x4000000 syz-executor.1 89280 307556 0 0 3 0x14280 nfsidl nfsio 85899 371821 0 0 3 0x14280 nfsidl nfsio 6935 374758 0 0 3 0x14280 nfsidl nfsio 86318 136145 0 0 3 0x14280 nfsidl nfsio 30296 106610 0 0 3 0x14280 nfsidl nfsio 43697 277390 0 0 3 0x14280 nfsidl nfsio 35777 423902 0 0 3 0x14280 nfsidl nfsio 11451 346178 0 0 3 0x14280 nfsidl nfsio 2539 451601 0 0 3 0x14280 nfsidl nfsio 26942 31422 0 0 3 0x14280 nfsidl nfsio 83663 65937 0 0 3 0x14280 nfsidl nfsio 37361 392206 0 0 3 0x14280 nfsidl nfsio 312 430746 0 0 3 0x14280 nfsidl nfsio 67799 423986 0 0 3 0x14280 nfsidl nfsio 52654 211362 0 0 3 0x14280 nfsidl nfsio 56016 362410 0 0 3 0x14280 nfsidl nfsio 10924 22333 0 0 3 0x14280 nfsidl nfsio 47635 130288 0 0 3 0x14280 nfsidl nfsio 86174 318274 0 0 3 0x14280 nfsidl nfsio 23020 281876 0 0 3 0x14280 nfsidl nfsio 58538 59895 34986 0 2 0x2 syz-executor.0 11117 84665 0 0 3 0x14200 bored sosplice 530 282630 34986 0 3 0x82 nanosleep syz-executor.1 34986 295997 91233 0 3 0x82 thrsleep syz-fuzzer 34986 413641 91233 0 3 0x4000082 nanosleep syz-fuzzer 34986 145017 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 106161 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 55074 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 61693 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 3318 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 215247 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 194977 91233 0 3 0x4000082 thrsleep syz-fuzzer 34986 115491 91233 0 3 0x4000082 kqread syz-fuzzer 91233 327554 34183 0 3 0x10008a pause ksh 34183 271261 707 0 3 0x92 select sshd 81798 266411 1 0 3 0x100083 ttyin getty 707 45811 1 0 3 0x80 select sshd 66587 449896 21780 74 3 0x100092 bpf pflogd 21780 226475 1 0 3 0x80 netio pflogd 91990 475512 88911 73 3 0x100090 kqread syslogd 88911 403876 1 0 3 0x100082 netio syslogd 492 380447 1 77 3 0x100090 poll dhclient 70159 203402 1 0 3 0x80 poll dhclient 71772 245390 0 0 3 0x14200 bored smr 16271 51426 0 0 3 0x14200 pgzero zerothread 63099 210169 0 0 3 0x14200 aiodoned aiodoned 79417 347902 0 0 3 0x14200 syncer update 6488 480767 0 0 3 0x14200 cleaner cleaner 94489 280825 0 0 3 0x14200 reaper reaper 7628 59087 0 0 3 0x14200 pgdaemon pagedaemon 75941 298764 0 0 3 0x14200 bored crynlk 65620 241428 0 0 3 0x14200 bored crypto 46293 233505 0 0 3 0x40014200 acpi0 acpi0 90179 325455 0 0 3 0x40014200 idle1 69046 98528 0 0 3 0x14200 bored softnet 39590 168518 0 0 3 0x14200 bored systqmp 98558 190624 0 0 3 0x14200 bored systq 91760 10300 0 0 3 0x40014200 bored softclock 80986 83820 0 0 3 0x40014200 idle0 1 93298 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 83031 (syz-executor.1) thread 0xffff8000230fa778 (247928) exclusive rwlock netlock r = 0 (0xffffffff8275a628) #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:1995 #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 (0xffffffff82910c78) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9590 7099K 7195K 78643K 12355 0 pcb 14 8K 8K 78643K 76 0 rtable 118 6K 6K 78643K 410 0 ifaddr 94 17K 17K 78643K 164 0 counters 43 33K 34K 78643K 59 0 ioctlops 0 0K 4K 78643K 1547 0 iov 0 0K 24K 78643K 81 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1699 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 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 139 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 477 0 sigio 0 0K 0K 78643K 7 0 proc 61 63K 95K 78643K 506 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 20 0 in_multi 61 3K 3K 78643K 160 0 ether_multi 1 0K 0K 78643K 14 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 255 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 152 137K 142K 78643K 2580 0 UVM aobj 34 2K 2K 78643K 36 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 16 0K 0K 78643K 38 0 temp 130 3874K 3938K 78643K 13234 0 kqueue 3 4K 8K 78643K 17 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 14 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 46 0 44 1 0 1 1 0 8 0 rtentry 112 88 0 44 2 0 2 2 0 8 0 unpcb 120 228 0 217 1 0 1 1 0 8 0 syncache 264 10 0 10 2 2 0 1 0 8 0 tcpqe 32 12 0 12 2 2 0 1 0 8 0 tcpcb 544 171 0 167 1 0 1 1 0 8 0 inpcb 296 896 0 886 2 0 2 2 0 8 0 nd6 48 24 0 20 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 5 0 5 2 2 0 1 0 482 0 pffrnode 88 5 0 5 2 2 0 1 0 8 0 pffrent 40 53 0 53 2 2 0 1 0 8 0 pfosfp 40 847 0 423 5 0 5 5 0 8 0 pfosfpen 112 1429 0 714 21 0 21 21 0 8 0 pfrktable 1344 10 0 5 1 0 1 1 0 8 0 pfstitem 24 57 0 18 1 0 1 1 0 8 0 pfstkey 112 57 0 18 2 0 2 2 0 8 0 pfstate 328 56 0 18 4 0 4 4 0 8 0 pfrule 1360 27 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 340 0 143 15 1 14 14 0 8 0 art_table 32 341 0 143 2 0 2 2 0 8 0 art_node 16 87 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 133 0 123 1 0 1 1 0 8 0 shmpl 112 34 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2046 0 640 89 0 89 89 0 8 0 ffsino 272 2046 0 640 95 0 95 95 0 8 0 nchpl 144 2888 0 1293 60 0 60 60 0 8 0 uvmvnodes 72 2495 0 0 46 0 46 46 0 8 0 vnodes 208 2495 0 0 132 0 132 132 0 8 0 namei 1024 8289 0 8289 1 0 1 1 0 8 1 percpumem 16 40 0 8 1 0 1 1 0 8 0 vcpupl 1984 13 0 0 2 0 2 2 0 8 0 vmpool 560 17 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 5 0 1 1 0 1 1 0 8 0 scxspl 192 9120 0 9120 8 4 4 4 0 8 4 plimitpl 152 34 0 26 1 0 1 1 0 8 0 sigapl 424 710 0 657 6 0 6 6 0 8 0 futexpl 56 7761 0 7761 1 0 1 1 0 8 1 knotepl 112 90 0 71 1 0 1 1 0 8 0 kqueuepl 144 59 0 57 1 0 1 1 0 8 0 pipepl 304 135 0 125 3 2 1 2 0 8 0 fdescpl 496 674 0 657 3 0 3 3 0 8 0 filepl 152 4162 0 4058 5 0 5 5 0 8 1 lockfpl 104 108 0 107 1 0 1 1 0 8 0 lockfspl 48 42 0 41 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 317 0 308 1 0 1 1 0 8 0 zombiepl 144 657 0 657 1 0 1 1 0 8 1 processpl 984 710 0 657 7 0 7 7 0 8 0 procpl 624 1721 0 1658 6 0 6 6 0 8 0 sosppl 128 10 0 10 3 3 0 1 0 8 0 sockpl 400 1174 0 1151 5 1 4 4 0 8 1 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 182 0 0 22 0 22 22 0 8 0 mtagpl 96 171 0 0 5 0 5 5 0 8 0 mbufpl 256 655 0 0 40 0 40 40 0 8 0 bufpl 280 4739 0 132 330 0 330 330 0 8 0 anonpl 16 78988 0 62241 85 3 82 84 0 124 13 amapchunkpl 152 4629 0 4475 23 12 11 20 0 158 2 amappl16 192 2961 0 2058 58 6 52 58 0 8 6 amappl15 184 225 0 221 1 0 1 1 0 8 0 amappl14 176 114 0 108 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 9 0 7 2 1 1 1 0 8 0 amappl11 152 140 0 125 1 0 1 1 0 8 0 amappl10 144 241 0 231 1 0 1 1 0 8 0 amappl9 136 519 0 517 1 0 1 1 0 8 0 amappl8 128 506 0 471 2 0 2 2 0 8 0 amappl7 120 128 0 115 1 0 1 1 0 8 0 amappl6 112 107 0 104 1 0 1 1 0 8 0 amappl5 104 484 0 467 1 0 1 1 0 8 0 amappl4 96 588 0 558 1 0 1 1 0 8 0 amappl3 88 118 0 113 1 0 1 1 0 8 0 amappl2 80 4593 0 4516 2 0 2 2 0 8 0 amappl1 72 24709 0 24269 23 13 10 18 0 8 0 amappl 80 1995 0 1939 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 35 0 2 1 0 1 1 0 8 0 uaddrrnd 24 691 0 661 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 691 0 661 1 0 1 1 0 8 0 vmmpekpl 168 9176 0 9140 2 0 2 2 0 8 0 vmmpepl 168 88470 0 86315 134 22 112 125 0 357 17 vmsppl 368 690 0 661 3 0 3 3 0 8 0 pdppl 4096 1389 0 1335 7 0 7 7 0 8 0 pvpl 32 246504 0 226527 201 3 198 200 0 265 34 pmappl 232 690 0 661 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 296 0 5 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82715ff0) 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_cmp4(acb4f,acb50) at __sanitizer_cov_trace_cmp4+0x13 kd_curproc sys/dev/kcov.c:397 [inline] __sanitizer_cov_trace_cmp4(acb4f,acb50) at __sanitizer_cov_trace_cmp4+0x13 trace_cmp sys/dev/kcov.c:104 [inline] __sanitizer_cov_trace_cmp4(acb4f,acb50) at __sanitizer_cov_trace_cmp4+0x13 sys/dev/kcov.c:135 __mp_lock(ffffffff82910a70) at __mp_lock+0x139 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82910a70) at __mp_lock+0x139 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffdec90, count: -7 ddb{0}> machine ddbcpu 1 Stopped at m_free+0x58: movswq 0x1c(%r14),%rsi ddb{1}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800021efb328) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800021efb328) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af7278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000af7000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000af7000) at if_down+0x9c sys/net/if.c:1619 ifioctl(fffffd806b140b00,80206910,ffff800021efb4f0,ffff8000230fa778) at ifioctl+0x177d sys/net/if.c:2006 soo_ioctl(fffffd806ca59140,80206910,ffff800021efb4f0,ffff8000230fa778) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff8000230fa778,ffff800021efb608,ffff800021efb650) at sys_ioctl+0x4a5 syscall(ffff800021efb6d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021efb6d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x447b0330eb0, count: -9