""""uvm_fault(0xffffffff827df520, 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(0xffffffff827df520, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800020ec59d0, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800020ec59e8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ec59e8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af6278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000af6000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000af6000) at if_down+0x9c sys/net/if.c:1619 if_clone_destroy(ffff800020ec5c00) at if_clone_destroy+0x13c sys/net/if.c:1296 ifioctl(fffffd8067d9f1b0,80206979,ffff800020ec5c00,ffff800020e47878) at ifioctl+0x3ea sys/net/if.c:1929 soo_ioctl(fffffd80668a01e0,80206979,ffff800020ec5c00,ffff800020e47878) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e47878,ffff800020ec5d18,ffff800020ec5d60) at sys_ioctl+0x4a5 syscall(ffff800020ec5de0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ec5de0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8dc34c08ec0, count: -10 ddb{0}> show registers rdi 0x7 rsi 0x61b43 acpi_pdirpa+0x4d9ab rbp 0xffff800020ec5990 rbx 0xfffffd8067d9f1b0 rdx 0x61b42 acpi_pdirpa+0x4d9aa rcx 0xffffffff826f19c0 mbstat_boot_boot_cpumem rax 0x7 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4cff7573be6f3e96 r11 0x9f0e65d01fe4dc00 r12 0xfffffd806c9bdb00 r13 0x3 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81200b58 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020ec5950 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.1) pid=58883 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020e47ae8,0xffffffff82915620 process=0xffff800020dfc3f8 user=0xffff800020ec0000, vmspace=0xfffffd806e914178 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 65406 208021 52941 0 7 0 syz-executor.1 *65406 58883 52941 0 7 0x4000000 syz-executor.1 52941 257205 5449 0 3 0x82 nanosleep syz-executor.1 57453 254622 0 0 3 0x14200 bored sosplice 41436 354333 5449 0 3 0x82 piperd syz-executor.0 5449 333938 86781 0 3 0x82 thrsleep syz-fuzzer 5449 233863 86781 0 3 0x4000082 nanosleep syz-fuzzer 5449 115547 86781 0 3 0x4000082 thrsleep syz-fuzzer 5449 171092 86781 0 2 0x4000002 syz-fuzzer 5449 286573 86781 0 3 0x4000082 thrsleep syz-fuzzer 5449 467113 86781 0 3 0x4000082 kqread syz-fuzzer 5449 512956 86781 0 3 0x4000082 thrsleep syz-fuzzer 5449 213971 86781 0 3 0x4000082 thrsleep syz-fuzzer 5449 423668 86781 0 3 0x4000082 thrsleep syz-fuzzer 5449 55178 86781 0 3 0x4000082 thrsleep syz-fuzzer 86781 391219 31031 0 3 0x10008a pause ksh 31031 269654 21960 0 3 0x92 select sshd 52611 28564 1 0 3 0x100083 ttyin getty 21960 45954 1 0 3 0x80 select sshd 36949 126585 46840 74 3 0x100092 bpf pflogd 46840 354625 1 0 3 0x80 netio pflogd 66376 444732 62146 73 3 0x100090 kqread syslogd 62146 103088 1 0 3 0x100082 netio syslogd 10108 14199 1 77 3 0x100090 poll dhclient 37230 354865 1 0 3 0x80 poll dhclient 40451 504000 0 0 3 0x14200 bored smr 45863 229081 0 0 2 0x14200 zerothread 11227 444530 0 0 3 0x14200 aiodoned aiodoned 67166 268054 0 0 3 0x14200 syncer update 68522 316049 0 0 3 0x14200 cleaner cleaner 77866 216217 0 0 3 0x14200 reaper reaper 94236 310959 0 0 3 0x14200 pgdaemon pagedaemon 55933 24330 0 0 3 0x14200 bored crynlk 24861 40221 0 0 3 0x14200 bored crypto 70471 321947 0 0 3 0x40014200 acpi0 acpi0 37891 221091 0 0 3 0x40014200 idle1 56317 272973 0 0 3 0x14200 bored softnet 90034 475587 0 0 3 0x14200 bored systqmp 42309 398791 0 0 3 0x14200 bored systq 58660 459855 0 0 3 0x40014200 bored softclock 40998 106276 0 0 3 0x40014200 idle0 1 391151 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 65406 (syz-executor.1) thread 0xffff800020e47878 (58883) exclusive rwlock netlock r = 0 (0xffffffff826f74b8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 if_clone_destroy+0xf3 sys/net/if.c:1292 #2 ifioctl+0x3ea sys/net/if.c:1929 #3 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #4 sys_ioctl+0x4a5 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff82910c50) #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 9544 6551K 7004K 78643K 12510 0 pcb 13 8K 8K 78643K 123 0 rtable 148 12K 12K 78643K 582 0 ifaddr 102 20K 21K 78643K 198 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1560 0 iov 0 0K 16K 78643K 85 0 mount 1 1K 1K 78643K 1 0 vnodes 1214 76K 77K 78643K 1727 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 17 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 106 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 796 0 sigio 0 0K 0K 78643K 10 0 proc 62 63K 95K 78643K 515 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 50 0 in_multi 94 4K 4K 78643K 252 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 271 0 pfkey data 0 0K 1K 78643K 2 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 138 56K 56K 78643K 3459 0 UVM aobj 33 2K 2K 78643K 39 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 91 0 NDP 14 0K 0K 78643K 52 0 temp 130 3869K 3933K 78643K 5739 0 kqueue 3 4K 9K 78643K 28 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 13 0 3 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 132 0 85 2 0 2 2 0 8 0 unpcb 120 1599 0 1588 6 5 1 2 0 8 0 syncache 264 10 0 10 4 4 0 1 0 8 0 tcpqe 32 116 0 116 1 1 0 1 0 8 0 tcpcb 544 408 0 404 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 296 924 0 915 9 7 2 2 0 8 1 rttmr 72 3 0 3 2 1 1 1 0 8 1 nd6 48 35 0 31 1 0 1 1 0 8 0 pkpcb 40 20 0 20 5 4 1 1 0 8 1 ppxss 1128 4 0 4 3 3 0 1 0 8 0 pffrag 232 6 0 6 3 3 0 1 0 482 0 pffrnode 88 6 0 6 3 3 0 1 0 8 0 pffrent 40 184 0 184 3 3 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 34 0 19 2 0 2 2 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 37 0 33 1 0 1 1 0 8 0 pfstkey 112 37 0 33 1 0 1 1 0 8 0 pfstate 328 37 0 33 3 1 2 3 0 8 0 pfrule 1360 42 0 28 4 2 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 532 0 328 16 2 14 14 0 8 0 art_table 32 534 0 328 2 0 2 2 0 8 0 art_node 16 129 0 86 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 25 3 2 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 104 0 94 1 0 1 1 0 8 0 shmpl 112 37 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2395 0 996 89 0 89 89 0 8 0 ffsino 272 2395 0 996 95 1 94 95 0 8 0 nchpl 144 3936 0 2341 60 0 60 60 0 8 0 uvmvnodes 72 2864 0 0 53 0 53 53 0 8 0 vnodes 208 2864 0 0 151 0 151 151 0 8 0 namei 1024 10510 0 10510 3 2 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 8 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 21 0 4 1 0 1 1 0 8 0 scxspl 192 10820 0 10820 12 11 1 7 0 8 1 plimitpl 152 68 0 60 1 0 1 1 0 8 0 sigapl 424 1009 0 977 4 0 4 4 0 8 0 futexpl 56 13642 0 13642 3 2 1 1 0 8 1 knotepl 112 108 0 89 1 0 1 1 0 8 0 kqueuepl 144 127 0 124 1 0 1 1 0 8 0 pipelkpl 48 164 0 154 1 0 1 1 0 8 0 pipepl 120 328 0 309 1 0 1 1 0 8 0 fdescpl 496 993 0 977 3 0 3 3 0 8 0 filepl 152 6841 0 6738 7 2 5 6 0 8 1 lockfpl 104 117 0 116 1 0 1 1 0 8 0 lockfspl 48 39 0 38 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 427 0 418 1 0 1 1 0 8 0 zombiepl 144 977 0 977 2 1 1 1 0 8 1 processpl 984 1009 0 977 5 0 5 5 0 8 0 procpl 624 2655 0 2613 4 0 4 4 0 8 0 sosppl 128 28 0 28 8 7 1 1 0 8 1 sockpl 400 2591 0 2569 15 12 3 5 0 8 0 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 174 0 0 21 0 21 21 0 8 0 mtagpl 96 179 0 0 4 0 4 4 0 8 0 mbufpl 256 677 0 0 35 0 35 35 0 8 0 bufpl 280 4694 0 138 326 0 326 326 0 8 0 anonpl 16 100146 0 83843 81 14 67 75 0 124 0 amapchunkpl 152 5620 0 5474 21 14 7 14 0 158 0 amappl16 192 4619 0 3711 62 15 47 53 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 25 0 22 1 0 1 1 0 8 0 amappl13 168 82 0 79 1 0 1 1 0 8 0 amappl12 160 689 0 687 2 1 1 1 0 8 0 amappl11 152 67 0 51 1 0 1 1 0 8 0 amappl10 144 26 0 21 1 0 1 1 0 8 0 amappl9 136 389 0 387 1 0 1 1 0 8 0 amappl8 128 384 0 344 2 0 2 2 0 8 0 amappl7 120 134 0 120 1 0 1 1 0 8 0 amappl6 112 29 0 22 1 0 1 1 0 8 0 amappl5 104 1564 0 1547 1 0 1 1 0 8 0 amappl4 96 560 0 530 1 0 1 1 0 8 0 amappl3 88 133 0 128 1 0 1 1 0 8 0 amappl2 80 7074 0 6998 2 0 2 2 0 8 0 amappl1 72 30699 0 30267 23 13 10 18 0 8 0 amappl 80 2888 0 2841 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 6 1 0 1 1 0 8 0 uaddrrnd 24 1001 0 981 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1001 0 981 1 0 1 1 0 8 0 vmmpekpl 168 11198 0 11164 2 0 2 2 0 8 0 vmmpepl 168 126633 0 124554 140 48 92 121 0 357 1 vmsppl 368 1000 0 981 2 0 2 2 0 8 0 pdppl 4096 2009 0 1966 7 1 6 6 0 8 0 pvpl 32 306051 0 286583 207 43 164 180 0 265 4 pmappl 232 1000 0 981 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 305 0 22 9 0 9 9 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(ffff800020ec59e8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800020ec59e8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000af6278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000af6000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000af6000) at if_down+0x9c sys/net/if.c:1619 if_clone_destroy(ffff800020ec5c00) at if_clone_destroy+0x13c sys/net/if.c:1296 ifioctl(fffffd8067d9f1b0,80206979,ffff800020ec5c00,ffff800020e47878) at ifioctl+0x3ea sys/net/if.c:1929 soo_ioctl(fffffd80668a01e0,80206979,ffff800020ec5c00,ffff800020e47878) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e47878,ffff800020ec5d18,ffff800020ec5d60) at sys_ioctl+0x4a5 syscall(ffff800020ec5de0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ec5de0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8dc34c08ec0, count: -10 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_pc() at __sanitizer_cov_trace_pc+0x36 kd_curproc sys/dev/kcov.c:411 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x36 sys/dev/kcov.c:79 syscall(ffff8000230f58e0) at syscall+0x55f mi_syscall_return sys/sys/syscall_mi.h:129 [inline] syscall(ffff8000230f58e0) at syscall+0x55f sys/arch/amd64/amd64/trap.c:592 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdea80, count: -6