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(ffff80002a1d7800,ffff80002a266b10,ffff80002a266b60) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002a1d7800,ffff80002a266b10,ffff80002a266b60) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002a266be0) at syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc492b96c420, count: -3 ddb{0}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002a266b00 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0xffff80002a1d7800 rax 0xffffffff82c45ff0 cpu_info_full_primary+0x1ff0 r8 0x7f7fffffc000 r9 0 r10 0xc3a16fd33ba3c300 r11 0x322235d53044c70f r12 0xfffffd8072267f50 r13 0xdeaf4152deaf4152 r14 0xffff800000d01000 r15 0x8 rip 0xffffffff81475ebf sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a266a70 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.0) tid=494970 pid=96413 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=36, usrpri=64, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1d7aa8,0xffff80002a1d72c0 process=0xffff8000ffff4440 user=0xffff80002a261000, vmspace=0xfffffd806f158918 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96413 426012 31247 0 7 0 syz-executor.0 96413 183045 31247 0 3 0x4000080 fsleep syz-executor.0 *96413 494970 31247 0 7 0x4000000 syz-executor.0 96413 94849 31247 0 3 0x4000080 fsleep syz-executor.0 31247 56343 29953 0 3 0x82 nanoslp syz-executor.0 29953 258035 92837 0 3 0x2000082 thrsleep syz-execprog 29953 456213 92837 0 3 0x6000082 thrsleep syz-execprog 29953 247713 92837 0 3 0x6000082 kqread syz-execprog 29953 69423 92837 0 3 0x6000082 thrsleep syz-execprog 29953 206086 92837 0 3 0x6000082 thrsleep syz-execprog 29953 197096 92837 0 3 0x6000082 thrsleep syz-execprog 29953 396667 92837 0 3 0x6000082 thrsleep syz-execprog 29953 8610 92837 0 3 0x6000082 thrsleep syz-execprog 29953 485888 92837 0 3 0x6000082 thrsleep syz-execprog 29953 494124 92837 0 3 0x6000082 wait syz-execprog 29953 277983 92837 0 3 0x6000082 thrsleep syz-execprog 92837 316938 2747 0 3 0x10008a sigsusp ksh 2747 218133 6122 0 3 0x9a kqread sshd 14768 359685 1 0 3 0x100083 ttyin getty 6122 303874 1 0 3 0x88 kqread sshd 31218 394520 45144 73 3 0x1100090 kqread syslogd 45144 493414 1 0 3 0x100082 netio syslogd 83933 201003 1 0 3 0x100080 kqread resolvd 38058 257090 60123 77 3 0x100092 kqread dhcpleased 73471 45756 60123 77 3 0x100092 kqread dhcpleased 60123 383591 1 0 3 0x80 kqread dhcpleased 13364 493082 0 0 3 0x14200 bored smr 43309 250273 0 0 3 0x14200 pgzero zerothread 3478 456986 0 0 3 0x14200 aiodoned aiodoned 6162 335370 0 0 3 0x14200 syncer update 32917 329695 0 0 3 0x14200 cleaner cleaner 68629 154126 0 0 3 0x14200 reaper reaper 89039 340384 0 0 3 0x14200 pgdaemon pagedaemon 28494 274694 0 0 3 0x14200 bored viomb 94663 343829 0 0 3 0x40014200 acpi0 acpi0 41077 168529 0 0 3 0x40014200 idle1 75880 61442 0 0 3 0x14200 bored softnet3 72291 418873 0 0 3 0x14200 bored softnet2 1092 480662 0 0 3 0x14200 bored softnet1 61820 42873 0 0 3 0x14200 bored softnet0 21451 175246 0 0 3 0x14200 bored systqmp 78269 480630 0 0 3 0x14200 bored systq 9269 121051 0 0 3 0x14200 tmoslp softclockmp 53725 351289 0 0 3 0x40014200 tmoslp softclock 55155 368633 0 0 3 0x40014200 idle0 1 251706 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 96413 (syz-executor.0) thread 0xffff80002a1d7800 (494970) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c7a120) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46d 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 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1785 #6 uvm_fault_check+0x3e sys/uvm/uvm_fault.c:672 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:600 #8 kpageflttrap+0x252 sys/arch/amd64/amd64/trap.c:279 #9 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:332 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x57 #12 syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10162 6392K 6421K 166960K 11243 0 pcb 13 8K 8K 166960K 13 0 rtable 80 2K 2K 166960K 170 0 pf 15 6K 6K 166960K 18 0 ifaddr 16 10K 10K 166960K 20 0 ifgroup 22 1K 1K 166960K 27 0 counters 50 34K 34K 166960K 52 0 ioctlops 0 0K 2K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1187 74K 74K 166960K 1200 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 4 9K 17K 166960K 55 0 proc 56 78K 91K 166960K 303 0 subproc 0 0K 0K 166960K 13 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 22 1K 1K 166960K 33 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 313 0 tdb 3 0K 0K 166960K 3 0 pagedep 1 8K 8K 166960K 1 0 inodedep 1 32K 32K 166960K 1 0 newblk 1 0K 0K 166960K 1 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 157 14K 15K 166960K 3784 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 4 0K 0K 166960K 9 0 temp 19 5920K 5984K 166960K 3944 0 kqueue 12 18K 18K 166960K 34 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 24 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 12 1 0 1 1 0 8 0 unpcb 144 95 0 82 1 0 1 1 0 8 0 syncache 312 8 0 8 2 1 1 1 0 8 1 tcpqe 32 309 0 309 2 2 0 1 0 8 0 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 120 6 0 2 1 0 1 1 0 8 0 inpcb 368 47 0 40 1 0 1 1 0 8 0 nd6 136 6 0 3 2 1 1 1 0 8 0 kcovpl 48 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 192 0 48 12 3 9 9 0 8 0 art_table 32 193 0 48 3 1 2 2 0 8 0 art_node 16 44 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 26 1 0 1 1 0 8 1 semapl 112 9 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1484 0 79 90 1 89 89 0 8 1 ffsino 272 1484 0 79 94 0 94 94 0 8 0 nchpl 144 1769 0 131 61 0 61 61 0 8 0 uvmvnodes 80 1506 0 0 31 0 31 31 0 8 0 vnodes 216 1506 0 0 84 0 84 84 0 8 0 namei 1024 6406 0 6406 3 2 1 2 0 8 1 percpumem 16 40 0 1 1 0 1 1 0 8 0 kstatmem 264 10 0 2 1 0 1 1 0 8 0 scxspl 216 7305 0 7305 10 7 3 8 1 8 3 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 424 394 0 361 6 1 5 5 0 8 1 futexpl 64 162 0 160 2 1 1 1 0 8 0 knotepl 120 83 0 0 4 1 3 3 0 8 0 kqueuepl 216 30 0 22 1 0 1 1 0 8 0 pipepl 320 162 0 155 4 2 2 2 0 8 1 fdescpl 496 376 0 361 7 3 4 4 0 8 2 filepl 152 1924 0 1858 5 1 4 4 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 25 0 16 1 0 1 1 0 8 0 ucredpl 104 96 0 86 1 0 1 1 0 8 0 zombiepl 144 361 0 361 2 1 1 1 0 8 1 processpl 1072 394 0 361 5 1 4 4 0 8 1 procpl 680 450 0 404 7 2 5 5 0 8 0 sockpl 488 166 0 143 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 309 0 0 39 0 39 39 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 340 0 0 22 0 22 22 0 8 0 bufpl 288 4717 0 139 327 0 327 327 0 8 0 anonpl 24 312905 0 309277 62 15 47 53 0 186 14 amapchunkpl 152 14407 0 14042 38 15 23 26 0 158 6 amappl16 200 9237 0 9156 11 5 6 6 0 8 0 amappl15 192 24 0 24 2 2 0 1 0 8 0 amappl14 184 199 0 187 3 1 2 2 0 8 1 amappl13 176 32 0 31 2 1 1 1 0 8 0 amappl12 168 1023 0 1006 4 2 2 2 0 8 1 amappl11 160 64 0 53 1 0 1 1 0 8 0 amappl10 152 42 0 39 2 1 1 1 0 8 0 amappl9 144 414 0 413 2 1 1 1 0 8 0 amappl8 136 240 0 219 3 1 2 2 0 8 1 amappl7 128 227 0 210 3 1 2 2 0 8 0 amappl6 120 178 0 171 1 0 1 1 0 8 0 amappl5 112 160 0 152 1 0 1 1 0 8 0 amappl4 104 568 0 545 3 1 2 2 0 8 1 amappl3 96 3229 0 3184 3 1 2 2 0 8 0 amappl2 88 945 0 891 4 1 3 3 0 8 1 amappl1 80 13594 0 13142 32 12 20 22 0 8 8 amappl 88 3191 0 3093 6 2 4 4 0 92 1 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 377 0 362 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 377 0 362 1 0 1 1 0 8 0 vmmpekpl 168 13428 0 13408 2 0 2 2 0 8 0 vmmpepl 168 59106 0 57884 126 17 109 111 0 357 51 vmsppl 464 376 0 362 7 3 4 4 0 8 2 rwobjpl 56 29351 0 27021 54 10 44 45 0 8 0 pdppl 4096 761 0 724 105 60 45 61 0 8 8 pvpl 32 42148 0 0 341 1 340 340 0 265 0 pmappl 248 376 0 362 4 2 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 712 0 71 19 0 19 19 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff80002a1d7800,ffff80002a266b10,ffff80002a266b60) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002a1d7800,ffff80002a266b10,ffff80002a266b60) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002a266be0) at syscall+0x4e6 sys/arch/amd64/amd64/trap.c:606 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc492b96c420, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029d3bff0) 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 __mp_lock(ffffffff82c79f18) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c79f18) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002a2b2840) at syscall+0x4cc mi_syscall sys/sys/syscall_mi.h:103 [inline] syscall(ffff80002a2b2840) at syscall+0x4cc sys/arch/amd64/amd64/trap.c:606 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b3207612f50, count: -6