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(ffff8000212d82f0,ffff8000212a96c8,ffff8000212a9710) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d82f0,ffff8000212a96c8,ffff8000212a9710) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff8000212a9790) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212a9790) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x98f270a8020, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff8000212a96b0 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff8000212d82f0 r8 0x7f7fffffc000 r9 0 r10 0x503675e5108c0b62 r11 0x5bfebeaa69ce81da r12 0xfffffd807dca4e88 r13 0xdeadbeefdeadbeef r14 0xffff800000d43a00 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff8000212a9620 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.1) pid=247347 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800024727600,0xffff8000212d8048 process=0xffff800028bc69f8 user=0xffff8000212a4000, vmspace=0xfffffd807028adc0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 38290 380021 22473 32767 7 0x10 syz-executor.1 *38290 247347 22473 32767 7 0x4000010 syz-executor.1 38290 182569 22473 32767 3 0x4000090 fsleep syz-executor.1 38290 485392 22473 32767 3 0x4000090 fsleep syz-executor.1 11892 180344 46679 32767 3 0x90 nanoslp syz-executor.7 11892 339533 46679 32767 3 0x4000090 kqpoll syz-executor.7 27185 211 0 0 3 0x14200 bored sosplice 94433 42905 81256 32767 3 0x90 piperd syz-executor.6 46679 74247 91884 32767 3 0x90 nanoslp syz-executor.7 46446 301769 14690 32767 3 0x90 piperd syz-executor.2 25123 233677 95206 32767 3 0x90 piperd syz-executor.5 91884 438258 92774 0 3 0x82 wait syz-executor.7 95206 3300 92774 0 3 0x82 wait syz-executor.5 81256 125678 92774 0 3 0x82 wait syz-executor.6 95004 180775 83327 32767 3 0x90 piperd syz-executor.4 30676 189443 11188 32767 3 0x90 piperd syz-executor.3 83327 74339 92774 0 3 0x82 wait syz-executor.4 14690 327118 92774 0 3 0x82 wait syz-executor.2 11188 249044 92774 0 3 0x82 wait syz-executor.3 22473 95788 71144 32767 3 0x90 nanoslp syz-executor.1 93241 359722 87656 32767 3 0x90 piperd syz-executor.0 71144 194960 92774 0 3 0x82 wait syz-executor.1 87656 184262 92774 0 3 0x82 wait syz-executor.0 92774 457866 70557 0 3 0x82 wait syz-fuzzer 92774 448465 70557 0 3 0x4000082 thrsleep syz-fuzzer 92774 471005 70557 0 3 0x4000082 wait syz-fuzzer 92774 195943 70557 0 3 0x4000082 wait syz-fuzzer 92774 164656 70557 0 3 0x4000082 wait syz-fuzzer 92774 395720 70557 0 3 0x4000082 thrsleep syz-fuzzer 92774 521528 70557 0 3 0x4000082 thrsleep syz-fuzzer 92774 80366 70557 0 3 0x4000082 kqread syz-fuzzer 92774 438750 70557 0 3 0x4000082 wait syz-fuzzer 92774 409082 70557 0 3 0x4000082 thrsleep syz-fuzzer 92774 519715 70557 0 3 0x4000082 wait syz-fuzzer 92774 136302 70557 0 3 0x4000082 wait syz-fuzzer 92774 517717 70557 0 3 0x4000082 wait syz-fuzzer 92774 102672 70557 0 3 0x4000082 thrsleep syz-fuzzer 92774 288352 70557 0 3 0x4000082 thrsleep syz-fuzzer 70557 308574 56585 0 3 0x10008a sigsusp ksh 56585 39863 37051 0 3 0x9a kqread sshd 95050 215843 1 0 3 0x100083 ttyin getty 37051 86371 1 0 3 0x88 kqread sshd 44149 347437 30313 73 3 0x1100090 kqread syslogd 30313 43186 1 0 3 0x100082 netio syslogd 88588 257645 1 0 3 0x100080 kqread resolvd 36432 147255 69209 77 3 0x100092 kqread dhcpleased 85832 309902 69209 77 3 0x100092 kqread dhcpleased 69209 429221 1 0 3 0x80 kqread dhcpleased 93145 315102 0 0 3 0x14200 bored smr 33112 328387 0 0 3 0x14200 pgzero zerothread 48022 502166 0 0 3 0x14200 aiodoned aiodoned 58903 282838 0 0 3 0x14200 syncer update 141 394691 0 0 3 0x14200 cleaner cleaner 51586 101536 0 0 3 0x14200 reaper reaper 99105 64299 0 0 3 0x14200 pgdaemon pagedaemon 63704 127855 0 0 3 0x14200 bored viomb 90531 484747 0 0 3 0x40014200 acpi0 acpi0 31000 78019 0 0 3 0x40014200 idle1 60715 284787 0 0 3 0x14200 bored softnet 79923 74958 0 0 3 0x14200 bored softnet 53359 159808 0 0 3 0x14200 bored softnet 71671 154502 0 0 3 0x14200 bored softnet 82768 183503 0 0 3 0x14200 bored systqmp 46550 417672 0 0 3 0x14200 bored systq 50292 212309 0 0 3 0x40014200 bored softclock 99955 447033 0 0 3 0x40014200 idle0 1 258645 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 38290 (syz-executor.1) thread 0xffff8000212d82f0 (247347) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c2ca98) #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 uvmfault_lookup+0xc9 sys/uvm/uvm_fault.c:1773 #6 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:673 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #8 kpageflttrap+0x22e sys/arch/amd64/amd64/trap.c:284 #9 kerntrap+0xef sys/arch/amd64/amd64/trap.c:339 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x53 #12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6410K 6421K 78643K 11292 0 pcb 13 12K 14K 78643K 17 0 rtable 234 6K 6K 78643K 363 0 ifaddr 73 24K 24K 78643K 75 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 31 0 iov 0 0K 24K 78643K 122 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1358 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 110 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 20 73K 121K 78643K 670 0 sigio 0 0K 0K 78643K 2 0 proc 56 78K 115K 78643K 513 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 892 0 in_multi 99 6K 6K 78643K 106 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 85 387K 387K 78643K 85 0 exec 0 0K 1K 78643K 442 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 283 81K 83K 78643K 6396 0 UVM aobj 9 2K 2K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 23 0 NDP 11 0K 2K 78643K 27 0 temp 104 5769K 5833K 78643K 5262 0 kqueue 12 18K 22K 78643K 74 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 119 0 116 3 0 3 3 0 8 2 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 542 0 529 7 3 4 5 0 8 3 syncache 296 7 0 7 2 2 0 1 0 8 0 tcpqe 32 70 0 70 2 2 0 1 0 8 0 tcpcb 776 696 0 692 16 8 8 12 0 8 7 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 1000 0 993 23 15 8 16 0 8 7 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 76 0 73 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 107 0 97 1 0 1 1 0 8 0 shmpl 112 9 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2192 0 756 90 0 90 90 0 8 0 ffsino 272 2192 0 756 96 0 96 96 0 8 0 nchpl 144 3174 0 1510 63 0 63 63 0 8 0 uvmvnodes 80 2305 0 0 48 0 48 48 0 8 0 vnodes 216 2305 0 0 129 0 129 129 0 8 0 namei 1024 10628 0 10628 2 1 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 10419 0 10419 9 8 1 8 0 8 1 plimitpl 152 66 0 43 2 1 1 2 0 8 0 sigapl 424 961 0 912 7 0 7 7 0 8 0 futexpl 64 5420 0 5418 1 0 1 1 0 8 0 knotepl 120 204 0 0 7 0 7 7 0 8 0 kqueuepl 216 315 0 306 5 4 1 5 0 8 0 pipepl 320 333 0 305 11 5 6 8 0 8 3 fdescpl 496 943 0 912 7 2 5 6 0 8 0 filepl 152 5765 0 5532 16 3 13 16 0 8 4 lockfpl 104 37 0 35 1 0 1 1 0 8 0 lockfspl 48 18 0 16 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 10 1 0 1 1 0 8 0 ucredpl 104 627 0 609 1 0 1 1 0 8 0 zombiepl 144 912 0 912 1 0 1 1 0 8 1 processpl 1072 961 0 912 5 1 4 5 0 8 0 procpl 696 2026 0 1959 10 2 8 9 0 8 0 sosppl 168 11 0 11 1 1 0 1 0 8 0 sockpl 488 1663 0 1640 44 31 13 24 0 8 10 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 493 0 0 61 0 61 61 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 539 0 0 34 0 34 34 0 8 0 bufpl 288 4696 0 140 326 0 326 326 0 8 0 anonpl 24 229644 0 216678 99 6 93 93 0 186 6 amapchunkpl 152 17885 0 17194 37 3 34 34 0 158 3 amappl16 200 3217 0 2858 21 0 21 21 0 8 0 amappl15 192 13 0 13 2 2 0 1 0 8 0 amappl14 184 156 0 142 2 1 1 2 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 395 0 394 1 0 1 1 0 8 0 amappl11 160 44 0 33 1 0 1 1 0 8 0 amappl10 152 36 0 26 1 0 1 1 0 8 0 amappl9 144 968 0 967 2 1 1 1 0 8 0 amappl8 136 168 0 125 2 0 2 2 0 8 0 amappl7 128 148 0 126 2 0 2 2 0 8 0 amappl6 120 173 0 160 2 1 1 2 0 8 0 amappl5 112 126 0 118 1 0 1 1 0 8 0 amappl4 104 457 0 432 2 1 1 2 0 8 0 amappl3 96 2328 0 2279 2 0 2 2 0 8 0 amappl2 88 1314 0 1239 3 1 2 3 0 8 0 amappl1 80 24012 0 23311 26 8 18 26 0 8 1 amappl 88 5892 0 5715 5 0 5 5 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 11 0 3 1 0 1 1 0 8 0 uaddrrnd 24 943 0 912 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 943 0 912 1 0 1 1 0 8 0 vmmpekpl 168 13393 0 13348 3 0 3 3 0 8 0 vmmpepl 168 94613 0 92125 137 6 131 135 0 357 7 vmsppl 440 942 0 912 5 0 5 5 0 8 0 rwobjpl 56 29619 0 25909 56 2 54 54 0 8 0 pdppl 4096 1893 0 1824 121 40 81 93 0 8 12 pvpl 32 519941 0 501287 360 43 317 360 0 265 151 pmappl 248 942 0 912 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 796 0 58 22 0 22 22 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82bc1ff0) 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(ffffffff82c2c890) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c2c890) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff80002e43b820) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e43b820) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc16d0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff8000212d82f0,ffff8000212a96c8,ffff8000212a9710) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d82f0,ffff8000212a96c8,ffff8000212a9710) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff8000212a9790) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000212a9790) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x98f270a8020, count: -3