kernel: protection fault trap, code=0 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace sys_msgrcv(ffff800021202010,ffff80002dbf5cb8,ffff80002dbf5d00) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021202010,ffff80002dbf5cb8,ffff80002dbf5d00) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002dbf5d80) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002dbf5d80) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e6b7e1830, count: -3 ddb{1}> show registers rdi 0x32 rsi 0x200003c8 rbp 0xffff80002dbf5ca0 rbx 0x32 rdx 0 rcx 0 rax 0xffff800021202010 r8 0x7f7fffffc000 r9 0xfffffd807f7d74e0 r10 0x9d76ded71cc9401 r11 0x60531ef45de3ecb4 r12 0xfffffd8069a6ddf0 r13 0xdeafbeaddeafbead r14 0xffff800000d1a200 r15 0x32 rip 0xffffffff81f3b4af sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002dbf5c10 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.7) pid=452683 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff800021202af0,0xffff8000212022d8 process=0xffff8000212ad0d8 user=0xffff80002dbf0000, vmspace=0xfffffd806b392dc0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79151 437369 5684 0 2 0 syz-executor.7 *79151 452683 5684 0 7 0x4000000 syz-executor.7 79151 234266 5684 0 2 0x4000000 syz-executor.7 79151 448880 5684 0 7 0x4000000 syz-executor.7 5684 320909 68344 0 3 0x82 nanoslp syz-executor.7 69859 480933 0 0 3 0x14200 bored sosplice 54297 184123 68344 0 3 0x82 piperd syz-executor.4 4855 211887 0 0 3 0x14280 nfsidl nfsio 56350 369454 0 0 3 0x14280 nfsidl nfsio 85173 376786 0 0 3 0x14280 nfsidl nfsio 64343 344381 0 0 3 0x14280 nfsidl nfsio 62310 413940 0 0 3 0x14280 nfsidl nfsio 40236 97709 0 0 3 0x14280 nfsidl nfsio 2253 386051 0 0 3 0x14280 nfsidl nfsio 38542 400019 0 0 3 0x14280 nfsidl nfsio 84536 402137 0 0 3 0x14280 nfsidl nfsio 39411 223403 0 0 3 0x14280 nfsidl nfsio 74601 188953 0 0 3 0x14280 nfsidl nfsio 54383 234706 0 0 3 0x14280 nfsidl nfsio 36053 265666 0 0 3 0x14280 nfsidl nfsio 60534 359168 0 0 3 0x14280 nfsidl nfsio 91041 280303 0 0 3 0x14280 nfsidl nfsio 8896 44434 0 0 3 0x14280 nfsidl nfsio 79808 195931 0 0 3 0x14280 nfsidl nfsio 14834 170614 0 0 3 0x14280 nfsidl nfsio 37384 3584 0 0 3 0x14280 nfsidl nfsio 18353 205371 0 0 3 0x14280 nfsidl nfsio 39525 478151 68344 0 3 0x82 piperd syz-executor.0 96865 123274 2023 0 3 0x100082 netio arp 83450 327868 68344 0 3 0x82 piperd syz-executor.6 2023 292085 1 0 3 0x10008a sigsusp sh 59467 303276 68344 0 3 0x82 piperd syz-executor.5 86167 96199 68344 0 3 0x82 piperd syz-executor.3 11667 217357 68344 0 3 0x82 piperd syz-executor.2 43398 302771 68344 0 3 0x82 piperd syz-executor.1 68344 118392 83754 0 3 0x82 wait syz-fuzzer 68344 4825 83754 0 3 0x4000082 nanoslp syz-fuzzer 68344 348431 83754 0 3 0x4000082 wait syz-fuzzer 68344 59925 83754 0 3 0x4000082 wait syz-fuzzer 68344 503712 83754 0 3 0x4000082 wait syz-fuzzer 68344 2239 83754 0 3 0x4000082 thrsleep syz-fuzzer 68344 188661 83754 0 3 0x4000082 wait syz-fuzzer 68344 259445 83754 0 3 0x4000082 thrsleep syz-fuzzer 68344 331474 83754 0 3 0x4000082 thrsleep syz-fuzzer 68344 22433 83754 0 3 0x4000082 wait syz-fuzzer 68344 381871 83754 0 3 0x4000082 thrsleep syz-fuzzer 68344 107671 83754 0 3 0x4000082 wait syz-fuzzer 68344 330716 83754 0 3 0x4000082 wait syz-fuzzer 68344 210269 83754 0 3 0x4000082 kqread syz-fuzzer 68344 140467 83754 0 3 0x4000082 thrsleep syz-fuzzer 83754 87207 7175 0 3 0x10008a sigsusp ksh 7175 74457 50131 0 3 0x9a kqread sshd 89779 146057 1 0 3 0x100083 ttyin getty 50131 95698 1 0 3 0x88 kqread sshd 14119 95051 63988 74 3 0x1100092 bpf pflogd 63988 507150 1 0 3 0x80 netio pflogd 28913 279496 44661 73 3 0x1100090 kqread syslogd 44661 504867 1 0 3 0x100082 netio syslogd 5405 199922 1 0 3 0x100080 kqread resolvd 39479 122934 0 0 3 0x14200 bored smr 2463 518969 0 0 2 0x14200 zerothread 86548 131577 0 0 3 0x14200 aiodoned aiodoned 4025 121524 0 0 3 0x14200 syncer update 75978 184362 0 0 3 0x14200 cleaner cleaner 73649 94490 0 0 3 0x14200 reaper reaper 93848 349884 0 0 3 0x14200 pgdaemon pagedaemon 81819 456829 0 0 3 0x14200 bored viomb 5888 514167 0 0 3 0x40014200 acpi0 acpi0 9730 305667 0 0 3 0x40014200 idle1 74683 104481 0 0 3 0x14200 bored softnet 19070 454299 0 0 3 0x14200 bored softnet 63596 521342 0 0 3 0x14200 bored softnet 54337 190838 0 0 3 0x14200 bored softnet 76311 517811 0 0 3 0x14200 bored systqmp 3458 206092 0 0 3 0x14200 bored systq 39836 116923 0 0 3 0x40014200 bored softclock 22666 92436 0 0 3 0x40014200 idle0 1 214437 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 79151 (syz-executor.7) thread 0xffff800021202010 (452683) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82db6228) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:405 #3 sleep_finish+0x180 sys/kern/kern_synch.c:417 #4 rw_enter+0x35a sys/kern/kern_rwlock.c:286 #5 uvm_fault_check+0x419 sys/uvm/uvm_fault.c:783 #6 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #7 kpageflttrap+0x22e sys/arch/amd64/amd64/trap.c:284 #8 kerntrap+0xef sys/arch/amd64/amd64/trap.c:339 #9 alltraps_kern_meltdown+0x7b #10 copyout+0x53 #11 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #11 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #12 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10204 6476K 6734K 78643K 11591 0 pcb 13 15K 18K 78643K 1262 0 rtable 205 15K 16K 78643K 536 0 ifaddr 75 24K 26K 78643K 182 0 counters 56 35K 36K 78643K 114 0 ioctlops 0 0K 4K 78643K 1564 0 iov 0 0K 28K 78643K 207 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1346 84K 85K 78643K 1798 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 14 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 270 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 93K 78643K 1229 0 sigio 0 0K 0K 78643K 49 0 proc 64 67K 128K 78643K 622 0 subproc 117 7K 7K 78643K 143 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 183 0 in_multi 81 5K 7K 78643K 148 0 ether_multi 1 0K 0K 78643K 6 0 mrt 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 97 440K 440K 78643K 97 0 exec 0 0K 1K 78643K 512 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 282 86K 102K 78643K 10524 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 19 0 NDP 14 0K 1K 78643K 53 0 temp 128 5778K 6791K 78643K 21338 0 kqueue 6 10K 28K 78643K 123 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 120 0 118 2 1 1 2 0 8 0 rtentry 112 165 0 74 4 0 4 4 0 8 0 unpcb 144 1419 0 1411 16 11 5 10 0 8 4 syncache 296 13 0 13 3 3 0 1 0 8 0 tcpqe 32 34 0 34 2 2 0 1 0 8 0 tcpcb 776 396 0 390 15 11 4 8 0 8 3 arp 120 25 0 10 1 0 1 1 0 8 0 inpcb 368 2493 0 2487 22 12 10 10 0 8 9 nd6 48 33 0 15 1 0 1 1 0 8 0 kcovpl 48 11 0 2 1 0 1 1 0 8 0 mppekey 1024 3 0 3 1 1 0 1 0 8 0 ppxss 1256 9 0 9 3 3 0 1 0 8 0 pppxif 1456 9 0 9 3 3 0 1 0 8 0 pffrag 232 4 0 3 2 1 1 1 0 482 0 pffrnode 88 4 0 3 2 1 1 1 0 8 0 pffrent 40 9 0 8 2 1 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 pfanchor 1280 7 0 0 1 0 1 1 0 8 0 pfqueue 264 3 0 3 1 1 0 1 0 8 0 pfstitem 24 46 0 22 1 0 1 1 0 8 0 pfstkey 128 46 0 22 1 0 1 1 0 8 0 pfstate 384 46 0 22 3 0 3 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 659 0 281 30 1 29 30 0 8 5 art_table 32 661 0 282 4 0 4 4 0 8 0 art_node 16 160 0 77 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 21 2 1 1 1 0 8 0 semapl 112 268 0 258 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3046 0 1609 91 0 91 91 0 8 0 ffsino 272 3046 0 1609 97 0 97 97 0 8 0 nchpl 144 4899 0 4390 63 39 24 63 0 8 0 uvmvnodes 80 3416 0 0 70 0 70 70 0 8 0 vnodes 216 3416 0 0 190 0 190 190 0 8 0 namei 1024 16964 0 16964 4 3 1 2 0 8 1 percpumem 16 70 0 29 1 0 1 1 0 8 0 vmpool 696 3 0 3 1 1 0 1 0 8 0 kstatmem 264 64 0 40 2 0 2 2 0 8 0 scxspl 216 14742 0 14742 16 15 1 8 0 8 1 plimitpl 152 196 0 180 1 0 1 1 0 8 0 sigapl 424 1564 0 1503 10 2 8 8 0 8 0 futexpl 64 10825 0 10825 2 1 1 1 0 8 1 knotepl 120 378 0 0 11 0 11 11 0 8 0 kqueuepl 216 435 0 430 16 14 2 8 0 8 1 pipepl 320 683 0 651 20 12 8 9 0 8 5 fdescpl 496 1526 0 1503 6 2 4 5 0 8 0 filepl 152 11733 0 11493 34 16 18 20 0 8 8 lockfpl 104 415 0 414 2 1 1 2 0 8 0 lockfspl 48 126 0 125 1 0 1 1 0 8 0 sessionpl 144 27 0 10 1 0 1 1 0 8 0 pgrppl 48 27 0 10 1 0 1 1 0 8 0 ucredpl 104 1292 0 1283 1 0 1 1 0 8 0 zombiepl 144 1503 0 1503 2 1 1 1 0 8 1 processpl 1072 1564 0 1503 5 0 5 5 0 8 0 procpl 696 3817 0 3739 12 2 10 11 0 8 2 srpgc 96 4 0 4 2 1 1 1 0 8 1 sosppl 168 7 0 7 2 2 0 1 0 8 0 sockpl 488 4036 0 4020 89 74 15 34 0 8 12 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 397 0 0 49 0 49 49 0 8 0 mtagpl 96 10 0 0 1 0 1 1 0 8 0 mbufpl 256 1101 0 0 59 0 59 59 0 8 0 bufpl 288 5990 0 156 417 0 417 417 0 8 0 anonpl 24 337001 0 321500 125 4 121 123 0 186 0 amapchunkpl 152 29720 0 28993 46 7 39 39 0 158 6 amappl16 200 3970 0 3419 31 0 31 31 0 8 0 amappl15 192 9 0 8 1 0 1 1 0 8 0 amappl14 184 168 0 157 2 1 1 2 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 488 0 482 1 0 1 1 0 8 0 amappl11 160 51 0 42 1 0 1 1 0 8 0 amappl10 152 42 0 33 1 0 1 1 0 8 0 amappl9 144 970 0 968 1 0 1 1 0 8 0 amappl8 136 202 0 143 3 0 3 3 0 8 0 amappl7 128 165 0 143 2 0 2 2 0 8 0 amappl6 120 192 0 179 2 1 1 2 0 8 0 amappl5 112 154 0 147 1 0 1 1 0 8 0 amappl4 104 567 0 532 2 0 2 2 0 8 0 amappl3 96 4046 0 4005 2 0 2 2 0 8 0 amappl2 88 1950 0 1893 3 1 2 3 0 8 0 amappl1 80 37543 0 36917 30 11 19 28 0 8 0 amappl 88 9921 0 9755 7 1 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 1529 0 1506 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1529 0 1506 1 0 1 1 0 8 0 vmmpekpl 168 19043 0 18983 4 0 4 4 0 8 0 vmmpepl 168 149125 0 146831 198 65 133 164 0 357 11 vmsppl 440 1528 0 1506 6 2 4 5 0 8 0 rwobjpl 56 44873 0 39742 74 0 74 74 0 8 0 pdppl 4096 3065 0 3012 175 112 63 83 0 8 10 pvpl 32 735902 0 715595 366 149 217 365 0 265 9 pmappl 248 1528 0 1506 4 2 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 965 0 135 24 0 24 24 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82b24ff0) at x86_ipi_db+0x1a 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+0x23 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 kd_curproc sys/dev/kcov.c:577 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x28 sys/dev/kcov.c:148 __mp_lock(ffffffff82db6020) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82db6020) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff80002dc01a90) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002dc01a90) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70ed802b5b0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff800021202010,ffff80002dbf5cb8,ffff80002dbf5d00) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021202010,ffff80002dbf5cb8,ffff80002dbf5d00) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002dbf5d80) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002dbf5d80) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70e6b7e1830, count: -3