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(ffff800021228850,ffff800021293a78,ffff800021293ac0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021228850,ffff800021293a78,ffff800021293ac0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800021293b40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021293b40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f0b32cb540, count: -3 ddb{0}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff800021293a60 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0xffff80002128e000 rcx 0 rax 0 r8 0x7f7fffffc000 r9 0 r10 0x1a2b2d031a51147c r11 0xd243cd6dd1ee6579 r12 0xfffffd806bb3cf50 r13 0xdeadbeefdeadbeef r14 0xffff800000cde200 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff8000212939d0 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.0) pid=103320 stat=onproc flags process=0 proc=4000000 pri=36, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800021228b08,0xffff800021229340 process=0xffff8000ffff8c98 user=0xffff80002128e000, vmspace=0xfffffd806f5cb378 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21997 326556 88301 0 7 0 syz-executor.0 *21997 103320 88301 0 7 0x4000000 syz-executor.0 21997 319591 88301 0 2 0x4000000 syz-executor.0 21997 457384 88301 0 2 0x4000000 syz-executor.0 21997 356009 88301 0 2 0x4000000 syz-executor.0 88301 512832 10178 0 3 0x82 nanoslp syz-executor.0 10178 341729 13093 0 3 0x82 thrsleep syz-execprog 10178 422197 13093 0 3 0x4000082 thrsleep syz-execprog 10178 375528 13093 0 3 0x4000082 thrsleep syz-execprog 10178 231244 13093 0 3 0x4000082 wait syz-execprog 10178 399544 13093 0 3 0x4000082 thrsleep syz-execprog 10178 248288 13093 0 3 0x4000082 thrsleep syz-execprog 10178 96909 13093 0 3 0x4000082 kqread syz-execprog 10178 167581 13093 0 3 0x4000082 thrsleep syz-execprog 10178 218108 13093 0 3 0x4000082 thrsleep syz-execprog 10178 227620 13093 0 3 0x4000082 thrsleep syz-execprog 10178 64470 13093 0 3 0x4000082 thrsleep syz-execprog 13093 42716 60193 0 3 0x10008a sigsusp ksh 60193 194867 72202 0 3 0x9a kqread sshd 12657 202726 1 0 3 0x100083 ttyin getty 72202 225083 1 0 3 0x88 kqread sshd 19498 90568 97305 73 3 0x1100090 kqread syslogd 97305 464612 1 0 3 0x100082 netio syslogd 54310 293684 1 0 3 0x100080 kqread resolvd 51843 321591 52165 77 3 0x100092 kqread dhcpleased 57767 123508 52165 77 3 0x100092 kqread dhcpleased 52165 235506 1 0 3 0x80 kqread dhcpleased 70207 488987 0 0 3 0x14200 bored smr 98957 121966 0 0 3 0x14200 pgzero zerothread 2700 352622 0 0 3 0x14200 aiodoned aiodoned 1947 289762 0 0 3 0x14200 syncer update 21170 387377 0 0 3 0x14200 cleaner cleaner 95579 70781 0 0 3 0x14200 reaper reaper 47515 124957 0 0 3 0x14200 pgdaemon pagedaemon 29207 518636 0 0 3 0x14200 bored viomb 54852 419540 0 0 3 0x40014200 acpi0 acpi0 14974 3822 0 0 3 0x40014200 idle1 90979 209365 0 0 3 0x14200 bored softnet 8115 512923 0 0 3 0x14200 bored softnet 79179 299801 0 0 3 0x14200 bored softnet 68492 42968 0 0 3 0x14200 bored softnet 90519 437462 0 0 3 0x14200 bored systqmp 98426 335700 0 0 3 0x14200 bored systq 75266 393778 0 0 3 0x40014200 bored softclock 29963 361714 0 0 3 0x40014200 idle0 1 435030 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 21997 (syz-executor.0) thread 0xffff800021228850 (103320) 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{0}> 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 24 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 155 15K 15K 78643K 2031 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 27 5762K 5826K 78643K 3151 0 kqueue 12 18K 18K 78643K 25 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 22 0 19 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 144 34 0 21 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpqe 32 71 0 71 1 1 0 1 0 8 0 tcpcb 776 12 0 7 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 368 37 0 28 2 0 2 2 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 2 0 2 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1447 0 52 88 0 88 88 0 8 0 ffsino 272 1447 0 52 94 0 94 94 0 8 0 nchpl 144 1685 0 64 61 0 61 61 0 8 0 uvmvnodes 80 1456 0 0 30 0 30 30 0 8 0 vnodes 216 1456 0 0 81 0 81 81 0 8 0 namei 1024 5160 0 5160 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 6290 0 6290 44 43 1 8 0 8 1 plimitpl 152 18 0 10 1 0 1 1 0 8 0 sigapl 424 338 0 306 5 0 5 5 0 8 1 futexpl 64 11 0 11 1 0 1 1 0 8 1 knotepl 120 66 0 0 2 0 2 2 0 8 0 kqueuepl 216 22 0 14 1 0 1 1 0 8 0 pipepl 320 107 0 100 3 1 2 2 0 8 1 fdescpl 496 321 0 306 5 1 4 4 0 8 2 filepl 152 1386 0 1318 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 306 0 306 2 1 1 1 0 8 1 processpl 1072 338 0 306 3 0 3 3 0 8 0 procpl 696 356 0 310 6 1 5 5 0 8 0 sockpl 488 93 0 68 4 0 4 4 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 37 8 29 37 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 372 0 0 22 0 22 22 0 8 0 bufpl 288 3926 0 144 271 0 271 271 0 8 0 anonpl 24 111043 0 106928 70 15 55 56 0 186 28 amapchunkpl 152 5572 0 5266 22 2 20 20 0 158 8 amappl16 200 2162 0 2100 10 5 5 5 0 8 0 amappl15 192 11 0 9 2 1 1 1 0 8 0 amappl14 184 137 0 123 2 0 2 2 0 8 1 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 317 0 314 2 1 1 1 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 32 0 30 2 1 1 1 0 8 0 amappl9 144 949 0 949 2 1 1 1 0 8 1 amappl8 136 97 0 72 2 0 2 2 0 8 1 amappl7 128 120 0 104 2 0 2 2 0 8 0 amappl6 120 132 0 123 2 0 2 2 0 8 1 amappl5 112 89 0 83 1 0 1 1 0 8 0 amappl4 104 406 0 379 2 0 2 2 0 8 1 amappl3 96 502 0 468 2 0 2 2 0 8 1 amappl2 88 646 0 588 3 0 3 3 0 8 1 amappl1 80 10299 0 9755 28 7 21 26 0 8 8 amappl 88 1616 0 1534 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 9162 0 9141 2 0 2 2 0 8 0 vmmpepl 168 36768 0 35383 134 7 127 127 0 357 63 vmsppl 440 321 0 307 3 0 3 3 0 8 1 rwobjpl 56 14064 0 11753 49 4 45 47 0 8 8 pdppl 4096 651 0 614 83 28 55 61 0 8 18 pvpl 32 291108 0 282949 368 34 334 345 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 618 0 39 17 0 17 17 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff800021228850,ffff800021293a78,ffff800021293ac0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021228850,ffff800021293a78,ffff800021293ac0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff800021293b40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800021293b40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f0b32cb540, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d68ff0) 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: 0x7f7ffffc7030, count: -3