login: uvm_fault(0xffffffff827b0b88, 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(0xffffffff827b0b88, 0xfffffd000000001c, 0, 1) -> e m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 end trace frame: 0xffff800021ef8cb0, count: 0 ddb{0}> trace m_free(fffffd0000000000) at m_free+0x58 sys/sys/percpu.h:125 ml_purge(ffff800021ef8cc8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800021ef8cc8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000ac6000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000ac6000) at if_down+0x9c sys/net/if.c:1619 if_setrdomain(ffff800000ac6000,6) at if_setrdomain+0x17c sys/net/if.c:1871 ifioctl(fffffd807b9b5018,8020699f,ffff800021ef8f00,ffff800020e09608) at ifioctl+0x16ad sys/net/if.c:2139 soo_ioctl(fffffd8066f085f0,8020699f,ffff800021ef8f00,ffff800020e09608) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e09608,ffff800021ef9018,ffff800021ef9060) at sys_ioctl+0x4a5 syscall(ffff800021ef90e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021ef90e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x98e249dcda0, count: -10 ddb{0}> show registers rdi 0x7 rsi 0x5e107 acpi_pdirpa+0x49f6f rbp 0xffff800021ef8c70 rbx 0x1 rdx 0x5e106 acpi_pdirpa+0x49f6e rcx 0xffffffff82764440 mbstat_boot_boot_cpumem rax 0x7 r8 0xffffffff8121bf9c ifioctl+0x135c r9 0x5 r10 0xe368d3e23dff1570 r11 0x5082d04f367d430c r12 0xfffffd8066e99100 r13 0x3 r14 0xfffffd0000000000 r15 0xfffffd0000000000 rip 0xffffffff81eadbb8 m_free+0x58 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800021ef8c30 ss 0x10 m_free+0x58: movswq 0x1c(%r14),%rsi ddb{0}> show proc PROC (syz-executor.0) pid=501229 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff800020e08eb8,0xffffffff828d0c00 process=0xffff800020e23738 user=0xffff800021ef4000, vmspace=0xfffffd8067ade5d0 estcpu=22, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48506 39237 99253 0 2 0 syz-executor.0 *48506 501229 99253 0 7 0x4000000 syz-executor.0 68807 363188 1 0 3 0x100083 ttyin getty 48828 401463 46426 0 7 0x2 syz-executor.1 99253 387750 46426 0 3 0x82 nanosleep syz-executor.0 46426 399731 47408 0 3 0x82 nanosleep syz-fuzzer 46426 389658 47408 0 3 0x4000082 nanosleep syz-fuzzer 46426 451343 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 9496 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 2375 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 320850 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 221851 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 451624 47408 0 3 0x4000082 thrsleep syz-fuzzer 46426 487617 47408 0 3 0x4000082 kqread syz-fuzzer 46426 212407 47408 0 3 0x4000082 thrsleep syz-fuzzer 47408 205155 50134 0 3 0x10008a pause ksh 50134 263135 47410 0 3 0x92 select sshd 47410 478395 1 0 3 0x80 select sshd 64542 397261 82958 74 3 0x100092 bpf pflogd 82958 210567 1 0 3 0x80 netio pflogd 53891 380011 20414 73 3 0x100090 kqread syslogd 20414 90682 1 0 3 0x100082 netio syslogd 7855 514051 1 77 2 0x100090 dhclient 56181 454447 1 0 3 0x80 poll dhclient 16735 336471 0 0 3 0x14200 bored smr 38026 140461 0 0 3 0x14200 pgzero zerothread 6499 302235 0 0 3 0x14200 aiodoned aiodoned 8636 1826 0 0 3 0x14200 syncer update 87109 290929 0 0 3 0x14200 cleaner cleaner 99952 321736 0 0 3 0x14200 reaper reaper 2573 237777 0 0 3 0x14200 pgdaemon pagedaemon 11680 9034 0 0 3 0x14200 bored crynlk 43090 16946 0 0 3 0x14200 bored crypto 47554 483200 0 0 3 0x40014200 acpi0 acpi0 90189 35640 0 0 3 0x40014200 idle1 66238 395899 0 0 3 0x14200 bored softnet 54757 248095 0 0 3 0x14200 bored systqmp 34393 458933 0 0 3 0x14200 bored systq 3933 141457 0 0 3 0x40014200 bored softclock 79919 172614 0 0 3 0x40014200 idle0 1 438580 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 48506 (syz-executor.0) thread 0xffff800020e09608 (501229) exclusive rwlock netlock r = 0 (0xffffffff826f65a8) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 ifioctl+0x16a0 sys/net/if.c:2139 #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 (0xffffffff828c9810) #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 Process 48828 (syz-executor.1) thread 0xffff800020ddd118 (401463) exclusive rrwlock inode r = 0 (0xfffffd80646e5f88) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806899e2c0) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9541 6437K 6749K 78643K 11280 0 pcb 13 8K 8K 78643K 124 0 rtable 121 8K 10K 78643K 576 0 ifaddr 105 20K 20K 78643K 222 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1578 0 iov 0 0K 24K 78643K 87 0 mount 1 1K 1K 78643K 1 0 vnodes 1218 77K 77K 78643K 1490 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 1K 1K 78643K 63 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 512 0 sigio 0 0K 0K 78643K 3 0 proc 62 63K 95K 78643K 486 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 42 0 in_multi 99 4K 4K 78643K 229 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 2 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 245 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 88K 104K 78643K 2876 0 UVM aobj 11 4K 4K 78643K 13 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 121 0 NDP 15 0K 0K 78643K 44 0 temp 125 3871K 3940K 78643K 18183 0 kqueue 3 4K 10K 78643K 23 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 8 0 1 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 86 0 45 2 0 2 2 0 8 0 unpcb 120 228 0 218 1 0 1 1 0 8 0 syncache 264 11 0 11 5 5 0 1 0 8 0 tcpqe 32 924 0 924 2 2 0 1 0 8 0 tcpcb 544 211 0 206 1 0 1 1 0 8 0 inpcb 296 654 0 644 7 5 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 28 0 25 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pffrag 232 7 0 7 4 4 0 1 0 482 0 pffrnode 88 7 0 7 4 4 0 1 0 8 0 pffrent 40 229 0 229 4 4 0 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 90 0 82 2 1 1 2 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 18 0 14 1 0 1 1 0 8 0 pfstkey 112 20 0 16 1 0 1 1 0 8 0 pfstate 328 18 0 15 2 0 2 2 0 8 0 pfrule 1360 50 0 30 5 3 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 316 0 132 14 1 13 13 0 8 0 art_table 32 318 0 132 2 0 2 2 0 8 0 art_node 16 85 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 9 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 45 0 35 1 0 1 1 0 8 0 shmpl 112 11 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2287 0 880 89 0 89 89 0 8 0 ffsino 272 2287 0 880 96 1 95 95 0 8 0 nchpl 144 3315 0 1713 60 0 60 60 0 8 0 uvmvnodes 72 2471 0 0 45 0 45 45 0 8 0 vnodes 208 2471 0 0 131 0 131 131 0 8 0 namei 1024 10360 0 10360 2 1 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 560 11 0 4 1 0 1 1 0 8 0 pfiaddrpl 120 25 0 18 1 0 1 1 0 8 0 scxspl 192 10458 0 10458 13 12 1 7 0 8 1 plimitpl 152 54 0 46 1 0 1 1 0 8 0 sigapl 424 728 0 697 4 0 4 4 0 8 0 futexpl 56 8644 0 8644 1 0 1 1 0 8 1 knotepl 112 83 0 64 1 0 1 1 0 8 0 kqueuepl 144 142 0 139 1 0 1 1 0 8 0 pipelkpl 48 146 0 136 1 0 1 1 0 8 0 pipepl 120 292 0 273 1 0 1 1 0 8 0 fdescpl 496 713 0 697 3 0 3 3 0 8 0 filepl 152 5396 0 5293 6 1 5 5 0 8 0 lockfpl 104 1358 0 1357 1 0 1 1 0 8 0 lockfspl 48 364 0 363 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 1481 0 1471 1 0 1 1 0 8 0 zombiepl 144 697 0 697 2 1 1 1 0 8 1 processpl 984 728 0 697 6 1 5 5 0 8 0 procpl 624 2065 0 2024 4 0 4 4 0 8 0 sockpl 400 919 0 897 6 3 3 4 0 8 0 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 183 0 0 22 0 22 22 0 8 0 mtagpl 96 49 0 0 2 0 2 2 0 8 0 mbufpl 256 441 0 0 25 1 24 24 0 8 0 bufpl 280 5228 0 137 364 0 364 364 0 8 0 anonpl 16 88800 0 72962 113 32 81 81 0 124 14 amapchunkpl 152 4863 0 4715 29 19 10 20 0 158 3 amappl16 192 3867 0 2994 79 23 56 56 0 8 11 amappl15 184 228 0 226 2 1 1 1 0 8 0 amappl14 176 27 0 21 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 261 0 255 1 0 1 1 0 8 0 amappl11 152 292 0 274 1 0 1 1 0 8 0 amappl10 144 15 0 12 1 0 1 1 0 8 0 amappl9 136 388 0 387 1 0 1 1 0 8 0 amappl8 128 367 0 329 2 0 2 2 0 8 0 amappl7 120 117 0 106 1 0 1 1 0 8 0 amappl6 112 259 0 249 1 0 1 1 0 8 0 amappl5 104 642 0 623 1 0 1 1 0 8 0 amappl4 96 725 0 695 1 0 1 1 0 8 0 amappl3 88 135 0 130 1 0 1 1 0 8 0 amappl2 80 4734 0 4664 2 0 2 2 0 8 0 amappl1 72 25780 0 25334 23 13 10 18 0 8 0 amappl 80 2329 0 2280 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 12 0 2 1 0 1 1 0 8 0 uaddrrnd 24 724 0 701 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 724 0 701 1 0 1 1 0 8 0 vmmpekpl 168 9702 0 9669 2 0 2 2 0 8 0 vmmpepl 168 94160 0 92098 142 36 106 108 0 357 9 vmsppl 368 723 0 701 3 0 3 3 0 8 0 pdppl 4096 1455 0 1409 8 1 7 7 0 8 0 pvpl 32 266219 0 247526 245 55 190 190 0 265 29 pmappl 232 723 0 701 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 287 0 13 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(ffff800021ef8cc8) at ml_purge+0x50 m_freem sys/kern/uipc_mbuf.c:538 [inline] ml_purge(ffff800021ef8cc8) at ml_purge+0x50 sys/kern/uipc_mbuf.c:1628 ifq_purge(ffff800000ac6278) at ifq_purge+0x9a sys/net/ifq.c:462 if_down(ffff800000ac6000) at if_down+0x9c if_linkstate sys/net/if.c:1668 [inline] if_down(ffff800000ac6000) at if_down+0x9c sys/net/if.c:1619 if_setrdomain(ffff800000ac6000,6) at if_setrdomain+0x17c sys/net/if.c:1871 ifioctl(fffffd807b9b5018,8020699f,ffff800021ef8f00,ffff800020e09608) at ifioctl+0x16ad sys/net/if.c:2139 soo_ioctl(fffffd8066f085f0,8020699f,ffff800021ef8f00,ffff800020e09608) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e09608,ffff800021ef9018,ffff800021ef9060) at sys_ioctl+0x4a5 syscall(ffff800021ef90e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021ef90e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x98e249dcda0, 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 __mp_lock(ffffffff828c9608) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828c9608) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828c9608,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435 sleep_finish(ffff8000230f29e0,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff8000230f29e0,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff8000230f29e0,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd807c97c370,11,ffffffff8246c455,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 biowait(fffffd807c97c370) at biowait+0xa6 sys/kern/vfs_bio.c:1256 bwrite(fffffd807c97c370) at bwrite+0x1e4 sys/kern/vfs_bio.c:765 ffs_update(fffffd80646e5ef0,1) at ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 ffs_truncate(fffffd80646e5ef0,0,4,fffffd807f7bf8a0) at ffs_truncate+0xc76 ufs_rmdir(ffff8000230f2e08) at ufs_rmdir+0x3af sys/ufs/ufs/ufs_vnops.c:1355 VOP_RMDIR(fffffd8067b9e9c8,fffffd806474eec0,ffff8000230f2f08) at VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474 dounlinkat(ffff800020ddd118,ffffff9c,7f7ffffe6010,8) at dounlinkat+0x14c sys/kern/vfs_syscalls.c:1886 syscall(ffff8000230f3080) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000230f3080) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe6000, count: -18