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(ffff800021228dc0,ffff800021292f48,ffff800021292f90) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021228dc0,ffff800021292f48,ffff800021292f90) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800021293010) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021293010) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde9d7e32a0, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff800021292f30 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0xffff80002128e000 rcx 0 rax 0 r8 0x7f7fffffc000 r9 0x1 r10 0xae27abccbd36cb9d r11 0xb85c92539cb0f97 r12 0xfffffd806aeddeb0 r13 0xdeafbeaddeafbead r14 0xffff800000cde000 r15 0x8 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800021292ea0 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.0) pid=190987 stat=onproc flags process=0 proc=4000000 pri=36, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021228b08,0xffff800021228038 process=0xffff8000ffff8438 user=0xffff80002128e000, vmspace=0xfffffd807effb898 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35796 49712 48115 0 7 0 syz-executor.0 *35796 190987 48115 0 7 0x4000000 syz-executor.0 35796 408506 48115 0 2 0x4000000 syz-executor.0 35796 481239 48115 0 2 0x4000000 syz-executor.0 35796 387443 48115 0 2 0x4000000 syz-executor.0 48115 181645 42215 0 3 0x82 nanoslp syz-executor.0 42215 409598 73344 0 3 0x82 thrsleep syz-execprog 42215 46105 73344 0 3 0x4000082 thrsleep syz-execprog 42215 362963 73344 0 3 0x4000082 thrsleep syz-execprog 42215 305838 73344 0 3 0x4000082 kqread syz-execprog 42215 320101 73344 0 3 0x4000082 wait syz-execprog 42215 3983 73344 0 3 0x4000082 thrsleep syz-execprog 42215 184328 73344 0 3 0x4000082 thrsleep syz-execprog 42215 41461 73344 0 3 0x4000082 thrsleep syz-execprog 42215 338953 73344 0 3 0x4000082 thrsleep syz-execprog 42215 365758 73344 0 3 0x4000082 thrsleep syz-execprog 42215 143342 73344 0 3 0x4000082 thrsleep syz-execprog 73344 419509 44187 0 3 0x10008a sigsusp ksh 44187 36383 71379 0 3 0x9a kqread sshd 90615 345447 1 0 3 0x100083 ttyin getty 71379 451799 1 0 3 0x88 kqread sshd 49581 364376 85485 73 3 0x1100090 kqread syslogd 85485 105674 1 0 3 0x100082 netio syslogd 91461 264885 1 0 3 0x100080 kqread resolvd 37618 495946 73541 77 3 0x100092 kqread dhcpleased 79987 220223 73541 77 3 0x100092 kqread dhcpleased 73541 310255 1 0 3 0x80 kqread dhcpleased 71238 60340 0 0 3 0x14200 bored smr 66061 469804 0 0 2 0x14200 zerothread 18349 484989 0 0 3 0x14200 aiodoned aiodoned 95651 265336 0 0 3 0x14200 syncer update 23814 330836 0 0 3 0x14200 cleaner cleaner 9306 135953 0 0 3 0x14200 reaper reaper 44958 173181 0 0 3 0x14200 pgdaemon pagedaemon 89722 33940 0 0 3 0x14200 bored viomb 70452 448284 0 0 3 0x40014200 acpi0 acpi0 52736 266158 0 0 3 0x40014200 idle1 41711 27585 0 0 3 0x14200 bored softnet 63790 286313 0 0 3 0x14200 bored softnet 6676 357033 0 0 3 0x14200 bored softnet 84284 97266 0 0 3 0x14200 bored softnet 96381 472575 0 0 3 0x14200 bored systqmp 37613 66116 0 0 3 0x14200 bored systq 78305 407064 0 0 3 0x40014200 bored softclock 34741 217830 0 0 3 0x40014200 idle0 1 336461 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35796 (syz-executor.0) thread 0xffff800021228dc0 (190987) 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 10170 6392K 6421K 78643K 11260 0 pcb 13 8K 8K 78643K 13 0 rtable 80 2K 2K 78643K 139 0 ifaddr 31 16K 16K 78643K 31 0 counters 46 34K 34K 78643K 46 0 ioctlops 0 0K 2K 78643K 20 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1167 73K 73K 78643K 1180 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 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 4 9K 13K 78643K 25 0 proc 55 78K 91K 78643K 267 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 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 25 122K 122K 78643K 25 0 exec 0 0K 1K 78643K 271 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 157 14K 14K 78643K 2019 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 4 0K 0K 78643K 6 0 temp 26 5762K 5825K 78643K 3104 0 kqueue 12 18K 18K 78643K 25 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 22 0 19 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpqe 32 48 0 48 1 1 0 1 0 8 0 tcpcb 776 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 368 29 0 23 1 0 1 1 0 8 0 nd6 48 3 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 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1448 0 53 88 0 88 88 0 8 0 ffsino 272 1448 0 53 94 0 94 94 0 8 1 nchpl 144 1687 0 66 61 0 61 61 0 8 0 uvmvnodes 80 1457 0 0 30 0 30 30 0 8 0 vnodes 216 1457 0 0 81 0 81 81 0 8 0 namei 1024 5167 0 5167 3 1 2 2 0 8 2 percpumem 16 36 0 0 1 0 1 1 0 8 0 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 6232 0 6232 10 8 2 8 0 8 2 plimitpl 152 18 0 10 1 0 1 1 0 8 0 sigapl 424 339 0 307 5 0 5 5 0 8 1 futexpl 64 10 0 10 1 0 1 1 0 8 1 knotepl 120 66 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 320 107 0 100 3 1 2 2 0 8 1 fdescpl 496 322 0 307 5 1 4 4 0 8 2 filepl 152 1378 0 1313 4 0 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 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 307 0 307 2 1 1 1 0 8 1 processpl 1072 339 0 307 3 0 3 3 0 8 0 procpl 696 361 0 315 6 1 5 5 0 8 0 sockpl 488 84 0 62 3 0 3 3 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 266 0 0 34 0 34 34 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 311 0 0 20 0 20 20 0 8 0 bufpl 288 3924 0 140 271 0 271 271 0 8 0 anonpl 24 110568 0 106442 67 12 55 55 0 186 28 amapchunkpl 152 5389 0 5072 22 1 21 21 0 158 8 amappl16 200 2199 0 2138 10 5 5 5 0 8 0 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 132 0 120 2 0 2 2 0 8 1 amappl13 176 5 0 4 2 1 1 1 0 8 0 amappl12 168 321 0 318 1 0 1 1 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 36 0 32 1 0 1 1 0 8 0 amappl9 144 944 0 944 2 1 1 1 0 8 1 amappl8 136 82 0 60 3 1 2 2 0 8 1 amappl7 128 128 0 113 2 0 2 2 0 8 0 amappl6 120 132 0 124 2 0 2 2 0 8 1 amappl5 112 95 0 87 1 0 1 1 0 8 0 amappl4 104 403 0 378 3 1 2 3 0 8 1 amappl3 96 492 0 459 2 0 2 2 0 8 1 amappl2 88 640 0 584 3 0 3 3 0 8 1 amappl1 80 10461 0 9909 27 7 20 26 0 8 8 amappl 88 1601 0 1517 4 0 4 4 0 92 2 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 322 0 307 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 322 0 307 1 0 1 1 0 8 0 vmmpekpl 168 9164 0 9144 2 0 2 2 0 8 0 vmmpepl 168 37014 0 35631 131 4 127 127 0 357 66 vmsppl 440 321 0 307 3 0 3 3 0 8 1 rwobjpl 56 14284 0 11964 48 2 46 47 0 8 8 pdppl 4096 651 0 614 83 26 57 61 0 8 20 pvpl 32 290918 0 282777 379 43 336 361 0 265 265 pmappl 248 321 0 307 3 1 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 612 0 29 17 0 17 17 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 end of kernel end trace frame: 0x7f7ffffdf990, count: -3 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff800021228dc0,ffff800021292f48,ffff800021292f90) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021228dc0,ffff800021292f48,ffff800021292f90) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800021293010) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021293010) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfde9d7e32a0, count: -3 ddb{1}>