kernel: protection fault trap, code=0 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sys_msgrcv(ffff80002129f2b8,ffff80002fed1c70,ffff80002fed1cc0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002129f2b8,ffff80002fed1c70,ffff80002fed1cc0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002fed1d40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fed1d40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5dc592fdc30, count: -3 ddb{0}> show registers rdi 0x8 rsi 0x20001148 rbp 0xffff80002fed1c60 rbx 0x8 rdx 0 rcx 0xffff80002129f2b8 rax 0xffffffff82b6cff0 cpu_info_full_primary+0x1ff0 r8 0x7f7fffffc000 r9 0xfffffd807f7d6750 r10 0xce255219cf0f568c r11 0xe514e3815be23006 r12 0xfffffd8062ae4e10 r13 0xdeadbeefdeadbeef r14 0xffff800000d7dc00 r15 0x8 rip 0xffffffff813afa2f sys_msgrcv+0x2df cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80002fed1bd0 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.3) pid=38785 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=54, nice=20 forw=0xffffffffffffffff, list=0xffff80002129ed68,0xffff80002129f818 process=0xffff80002128f258 user=0xffff80002fecc000, vmspace=0xfffffd807eff8cb0 estcpu=4, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3219 78965 32303 0 2 0 syz-executor.4 625 386326 10498 0 7 0 syz-executor.3 625 164556 10498 0 3 0x4000080 fsleep syz-executor.3 625 141129 10498 0 2 0x4000000 syz-executor.3 * 625 38785 10498 0 7 0x4000000 syz-executor.3 54533 151769 66173 0 2 0 syz-executor.6 54533 221954 66173 0 2 0x4000000 syz-executor.6 19548 517162 95507 0 3 0x80 nanoslp syz-executor.7 19548 282505 95507 0 2 0x4000000 syz-executor.7 19548 301549 95507 0 3 0x4000080 fsleep syz-executor.7 19548 438556 95507 0 2 0x4000000 syz-executor.7 73059 432942 90201 0 2 0 syz-executor.0 73059 310650 90201 0 3 0x4000080 pipewr syz-executor.0 73059 328630 90201 0 3 0x4000080 pipewr syz-executor.0 75010 401375 2589 0 2 0 syz-executor.5 75010 184067 2589 0 3 0x4000080 fsleep syz-executor.5 75010 350529 2589 0 3 0x4000080 fsleep syz-executor.5 75010 227779 2589 0 3 0x4000080 fsleep syz-executor.5 18181 107958 45473 0 2 0 syz-executor.1 5529 388159 0 0 3 0x14280 nfsidl nfsio 47768 294177 0 0 3 0x14280 nfsidl nfsio 28713 435444 0 0 3 0x14280 nfsidl nfsio 9813 426752 0 0 3 0x14280 nfsidl nfsio 71187 522406 0 0 3 0x14280 nfsidl nfsio 77709 397821 0 0 3 0x14280 nfsidl nfsio 6544 243029 0 0 3 0x14280 nfsidl nfsio 82761 164095 0 0 3 0x14280 nfsidl nfsio 85766 222334 0 0 3 0x14280 nfsidl nfsio 75426 396258 0 0 3 0x14280 nfsidl nfsio 29563 273418 0 0 3 0x14280 nfsidl nfsio 32931 157694 0 0 3 0x14280 nfsidl nfsio 95255 18405 0 0 3 0x14280 nfsidl nfsio 41124 51830 0 0 3 0x14280 nfsidl nfsio 85577 278941 0 0 3 0x14280 nfsidl nfsio 80344 498674 0 0 3 0x14280 nfsidl nfsio 35923 393927 0 0 3 0x14280 nfsidl nfsio 48279 16834 0 0 3 0x14280 nfsidl nfsio 73687 486849 0 0 3 0x14280 nfsidl nfsio 25129 413804 0 0 3 0x14280 nfsidl nfsio 11085 137445 67415 0 2 0x2 syz-executor.2 95507 451159 67415 0 3 0x82 nanoslp syz-executor.7 66173 147074 67415 0 3 0x82 nanoslp syz-executor.6 33811 162539 8141 0 3 0x100082 netio arp 8141 207624 1 0 3 0x10008a sigsusp sh 2589 173887 67415 0 3 0x82 nanoslp syz-executor.5 32303 497379 67415 0 3 0x82 nanoslp syz-executor.4 10498 325324 67415 0 3 0x82 nanoslp syz-executor.3 45473 136131 67415 0 3 0x82 nanoslp syz-executor.1 90201 93327 67415 0 3 0x82 nanoslp syz-executor.0 67415 238392 41688 0 3 0x2000082 thrsleep syz-fuzzer 67415 141238 41688 0 3 0x6000082 nanoslp syz-fuzzer 67415 303089 41688 0 3 0x6000082 wait syz-fuzzer 67415 81732 41688 0 3 0x6000082 wait syz-fuzzer 67415 112091 41688 0 3 0x6000082 wait syz-fuzzer 67415 74602 41688 0 3 0x6000082 wait syz-fuzzer 67415 137570 41688 0 3 0x6000082 wait syz-fuzzer 67415 71411 41688 0 3 0x6000082 wait syz-fuzzer 67415 232243 41688 0 3 0x6000082 wait syz-fuzzer 67415 292150 41688 0 3 0x6000082 thrsleep syz-fuzzer 67415 128579 41688 0 3 0x6000082 thrsleep syz-fuzzer 67415 300964 41688 0 3 0x6000082 kqread syz-fuzzer 67415 101268 41688 0 3 0x6000082 thrsleep syz-fuzzer 67415 317784 41688 0 3 0x6000082 wait syz-fuzzer 67415 11135 41688 0 3 0x6000082 thrsleep syz-fuzzer 41688 118288 48730 0 3 0x10008a sigsusp ksh 48730 84361 42583 0 3 0x9a kqread sshd 35452 377213 1 0 3 0x100083 ttyin getty 42583 323283 1 0 3 0x88 kqread sshd 38314 464917 31212 74 3 0x1100092 bpf pflogd 31212 64624 1 0 3 0x80 netio pflogd 41816 475509 60744 73 3 0x1100090 kqread syslogd 60744 81383 1 0 3 0x100082 netio syslogd 5617 334837 1 0 3 0x100080 kqread resolvd 22790 500935 58471 77 3 0x100092 kqread dhcpleased 19122 175688 58471 77 3 0x100092 kqread dhcpleased 58471 51828 1 0 3 0x80 kqread dhcpleased 53109 69901 0 0 3 0x14200 bored smr 84454 148406 0 0 2 0x14200 zerothread 44005 161485 0 0 3 0x14200 aiodoned aiodoned 69871 126788 0 0 3 0x14200 syncer update 31627 353263 0 0 3 0x14200 cleaner cleaner 27920 165417 0 0 3 0x14200 reaper reaper 88638 497364 0 0 3 0x14200 pgdaemon pagedaemon 80088 166463 0 0 3 0x14200 bored viomb 37235 19104 0 0 3 0x40014200 acpi0 acpi0 26908 159074 0 0 3 0x40014200 idle1 5369 243 0 0 3 0x14200 bored softnet3 29583 370654 0 0 3 0x14200 bored softnet2 24255 300207 0 0 3 0x14200 bored softnet1 35882 88104 0 0 3 0x14200 bored softnet0 91811 63834 0 0 3 0x14200 bored systqmp 22522 7163 0 0 3 0x14200 bored systq 57047 418887 0 0 3 0x40014200 bored softclock 6901 472704 0 0 3 0x40014200 idle0 1 491885 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 625 (syz-executor.3) thread 0xffff80002129f2b8 (38785) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82ce8748) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46b sys/kern/sched_bsd.c:470 #3 sleep_finish+0x19b sys/kern/kern_synch.c:414 #4 rw_enter+0x341 sys/kern/kern_rwlock.c:285 #5 uvm_fault_check+0x41a sys/uvm/uvm_fault.c:782 #6 uvm_fault+0xf2 sys/uvm/uvm_fault.c:600 #7 kpageflttrap+0x252 sys/arch/amd64/amd64/trap.c:279 #8 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:332 #9 alltraps_kern_meltdown+0x7b #10 copyout+0x57 #11 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #11 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #12 Xsyscall+0x128 Process 11085 (syz-executor.2) thread 0xffff80002120e818 (137445) exclusive rrwlock inode r = 0 (0xfffffd806800e5e8) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 ufs_ihashins+0x46 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1343 #6 ffs_inode_alloc+0x1c2 sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf8 sys/ufs/ufs/ufs_vnops.c:1149 #8 VOP_MKDIR+0xc3 sys/kern/vfs_vops.c:388 #9 domkdirat+0x125 sys/kern/vfs_syscalls.c:3073 #10 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #10 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806800e4d8) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 domkdirat+0x79 sys/kern/vfs_syscalls.c:3058 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10204 6613K 6863K 78643K 11584 0 pcb 13 8K 8K 78643K 15 0 rtable 236 6K 6K 78643K 362 0 pf 32 9K 10K 78643K 45 0 ifaddr 45 15K 15K 78643K 49 0 ifgroup 55 2K 2K 78643K 59 0 counters 60 35K 35K 78643K 62 0 ioctlops 0 0K 4K 78643K 1486 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1360 85K 85K 78643K 1460 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 93K 78643K 293 0 proc 68 91K 128K 78643K 556 0 subproc 117 7K 7K 78643K 117 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 7K 7K 78643K 100 0 ether_multi 1 0K 0K 78643K 1 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 444 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 343 85K 85K 78643K 5173 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 29 0 temp 72 5915K 5979K 78643K 4981 0 kqueue 12 18K 22K 78643K 32 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 36 0 32 1 0 1 1 0 8 0 rtentry 112 115 0 4 4 0 4 4 0 8 0 unpcb 144 87 0 72 1 0 1 1 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 187 0 187 2 2 0 1 0 8 0 tcpcb 808 14 0 10 1 0 1 1 0 8 0 arp 120 19 0 1 1 0 1 1 0 8 0 inpcb 368 85 0 78 1 0 1 1 0 8 0 nd6 136 25 0 0 1 0 1 1 0 8 0 kcovpl 48 9 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 28 0 23 1 0 1 1 0 8 0 pfstkey 128 28 0 23 1 0 1 1 0 8 0 pfstate 376 28 0 23 3 2 1 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 469 0 3 30 0 30 30 0 8 0 art_table 32 470 0 3 4 0 4 4 0 8 0 art_node 16 114 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 3 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1707 0 259 91 0 91 91 0 8 0 ffsino 272 1707 0 259 97 0 97 97 0 8 0 nchpl 144 2197 0 547 64 0 64 64 0 8 0 uvmvnodes 80 1952 0 0 40 0 40 40 0 8 0 vnodes 216 1952 0 0 109 0 109 109 0 8 0 namei 1024 7968 0 7967 3 2 1 2 0 8 0 percpumem 16 44 0 1 1 0 1 1 0 8 0 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scxspl 216 7640 0 7640 12 11 1 8 1 8 1 plimitpl 152 38 0 21 1 0 1 1 0 8 0 sigapl 424 628 0 559 10 2 8 8 0 8 0 futexpl 64 1394 0 1389 2 1 1 1 0 8 0 knotepl 120 106 0 0 4 0 4 4 0 8 0 kqueuepl 216 52 0 44 1 0 1 1 0 8 0 pipepl 320 231 0 199 8 0 8 8 0 8 5 fdescpl 496 591 0 559 5 0 5 5 0 8 0 filepl 152 2729 0 2467 17 1 16 16 0 8 5 lockfpl 104 203 0 198 2 0 2 2 0 8 1 lockfspl 48 104 0 99 1 0 1 1 0 8 0 sessionpl 144 25 0 7 1 0 1 1 0 8 0 pgrppl 48 25 0 7 1 0 1 1 0 8 0 ucredpl 104 275 0 263 1 0 1 1 0 8 0 zombiepl 144 559 0 559 2 1 1 1 0 8 1 processpl 1072 628 0 559 5 0 5 5 0 8 0 procpl 680 962 0 867 11 2 9 9 0 8 0 sockpl 488 208 0 182 5 0 5 5 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 260 0 0 33 1 32 33 0 8 0 mtagpl 96 18 0 0 1 0 1 1 0 8 0 mbufpl 256 274 0 0 18 0 18 18 0 8 0 bufpl 288 4317 0 143 299 0 299 299 0 8 0 anonpl 24 202170 0 189491 79 2 77 77 0 186 0 amapchunkpl 152 16727 0 15826 37 0 37 37 0 158 1 amappl16 200 5367 0 5040 18 0 18 18 0 8 0 amappl15 192 17 0 16 1 0 1 1 0 8 0 amappl14 184 167 0 152 2 0 2 2 0 8 0 amappl13 176 16 0 16 1 1 0 1 0 8 0 amappl12 168 1261 0 1228 4 2 2 3 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 26 0 17 1 0 1 1 0 8 0 amappl9 144 188 0 187 1 0 1 1 0 8 0 amappl8 136 176 0 124 2 0 2 2 0 8 0 amappl7 128 66 0 52 2 0 2 2 0 8 0 amappl6 120 287 0 268 2 1 1 2 0 8 0 amappl5 112 167 0 156 1 0 1 1 0 8 0 amappl4 104 587 0 543 3 1 2 3 0 8 0 amappl3 96 3688 0 3597 4 1 3 3 0 8 0 amappl2 88 865 0 793 3 1 2 3 0 8 0 amappl1 80 10757 0 10175 23 9 14 23 0 8 0 amappl 88 4646 0 4403 6 0 6 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 592 0 560 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 592 0 560 1 0 1 1 0 8 0 vmmpekpl 168 11006 0 10949 3 0 3 3 0 8 0 vmmpepl 168 59266 0 56923 133 29 104 119 0 357 0 vmsppl 464 591 0 560 5 0 5 5 0 8 0 rwobjpl 56 23664 0 20250 50 1 49 49 0 8 0 pdppl 4096 1192 0 1120 158 84 74 84 0 8 2 pvpl 32 447482 0 428525 343 82 261 342 0 265 107 pmappl 248 591 0 560 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 753 0 91 19 0 19 19 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff80002129f2b8,ffff80002fed1c70,ffff80002fed1cc0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002129f2b8,ffff80002fed1c70,ffff80002fed1cc0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002fed1d40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fed1d40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5dc592fdc30, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 sys/dev/kcov.c:158 __mp_lock(ffffffff82ce8540) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82ce8540) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff80002fe24f80) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe24f80) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e8765e84e60, count: -7