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(ffff800021408d30,ffff80002152da08,ffff80002152da50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021408d30,ffff80002152da08,ffff80002152da50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002152dad0) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002152dad0) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc3a724b2610, count: -3 ddb{1}> show registers rdi 0x1b rsi 0x20003b08 rbp 0xffff80002152d9f0 rbx 0x1b rdx 0xffff800021528000 rcx 0 rax 0 r8 0x7f7fffffc000 r9 0x1 r10 0x2c72ac73f3fb09b8 r11 0xfe99f1c681c60488 r12 0xfffffd807e789b18 r13 0xdeafbeaddeafbead r14 0xffff800000bff600 r15 0x1b rip 0xffffffff820ece9f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002152d960 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.1) pid=387735 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800021409270,0xffff8000214082c0 process=0xffff800021480450 user=0xffff800021528000, vmspace=0xfffffd80716d7018 estcpu=2, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 35489 206354 93335 32767 3 0x90 nanoslp syz-executor.1 35489 96908 93335 32767 3 0x4000090 fsleep syz-executor.1 *35489 387735 93335 32767 7 0x4000010 syz-executor.1 35489 125820 93335 32767 3 0x4000090 fsleep syz-executor.1 35489 449887 93335 32767 3 0x4000090 fsleep syz-executor.1 35489 323714 93335 32767 3 0x4000090 fsleep syz-executor.1 35489 39360 93335 32767 2 0x4000010 syz-executor.1 35489 227818 93335 32767 2 0x4000010 syz-executor.1 35489 28548 93335 32767 3 0x4000090 fsleep syz-executor.1 35489 383270 93335 32767 3 0x4000090 fsleep syz-executor.1 19660 507849 6058 32767 3 0x90 nanoslp syz-executor.5 19660 431052 6058 32767 3 0x4000090 fsleep syz-executor.5 19660 201850 6058 32767 3 0x4000090 fsleep syz-executor.5 19660 33209 6058 32767 3 0x4000090 msgwait syz-executor.5 19660 517466 6058 32767 3 0x4000090 fsleep syz-executor.5 19660 403128 6058 32767 3 0x4000090 fsleep syz-executor.5 19660 123080 6058 32767 3 0x4000090 msgwait syz-executor.5 60071 266306 77884 32767 3 0x90 nanoslp syz-executor.2 60071 151141 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 131086 77884 32767 3 0x4000090 msgwait syz-executor.2 60071 173263 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 405959 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 60862 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 35567 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 76621 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 178625 77884 32767 3 0x4000090 fsleep syz-executor.2 60071 316547 77884 32767 3 0x4000090 msgwait syz-executor.2 56028 198090 26580 32767 3 0x90 nanoslp syz-executor.6 56028 472270 26580 32767 3 0x4000090 fsleep syz-executor.6 56028 180311 26580 32767 3 0x4000090 msgwait syz-executor.6 56028 510090 26580 32767 3 0x4000090 fsleep syz-executor.6 56028 343649 26580 32767 3 0x4000090 fsleep syz-executor.6 56028 198985 26580 32767 3 0x4000090 fsleep syz-executor.6 56028 24355 26580 32767 3 0x4000090 msgwait syz-executor.6 14420 76144 78207 32767 3 0x90 nanoslp syz-executor.0 14420 75394 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 364442 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 422046 78207 32767 3 0x4000090 msgwait syz-executor.0 14420 456666 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 38247 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 189092 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 120496 78207 32767 3 0x4000090 fsleep syz-executor.0 14420 505812 78207 32767 3 0x4000090 msgwait syz-executor.0 270 160963 34538 32767 3 0x90 nanoslp syz-executor.4 270 115359 34538 32767 3 0x4000090 msgwait syz-executor.4 270 138880 34538 32767 3 0x4000090 fsleep syz-executor.4 270 218308 34538 32767 3 0x4000090 fsleep syz-executor.4 270 383969 34538 32767 3 0x4000090 fsleep syz-executor.4 270 245625 34538 32767 3 0x4000090 fsleep syz-executor.4 270 9361 34538 32767 3 0x4000090 fsleep syz-executor.4 270 232175 34538 32767 3 0x4000090 msgwait syz-executor.4 8988 505307 14518 32767 3 0x90 nanoslp syz-executor.3 8988 179681 14518 32767 3 0x4000090 msgwait syz-executor.3 8988 338215 14518 32767 3 0x4000090 fsleep syz-executor.3 8988 141196 14518 32767 3 0x4000090 fsleep syz-executor.3 8988 314824 14518 32767 3 0x4000090 fsleep syz-executor.3 8988 175205 14518 32767 3 0x4000090 msgwait syz-executor.3 8988 313212 14518 32767 3 0x4000090 fsleep syz-executor.3 77884 465398 80925 32767 3 0x90 nanoslp syz-executor.2 93335 481590 896 32767 3 0x90 nanoslp syz-executor.1 80925 460906 91340 0 3 0x82 wait syz-executor.2 26580 278307 82264 32767 3 0x90 nanoslp syz-executor.6 896 297439 91340 0 3 0x82 wait syz-executor.1 82264 523277 91340 0 3 0x82 wait syz-executor.6 6058 510530 63054 32767 3 0x90 nanoslp syz-executor.5 63054 196271 91340 0 3 0x82 wait syz-executor.5 34538 103001 92489 32767 2 0x10 syz-executor.4 14518 441094 50187 32767 7 0x10 syz-executor.3 50187 346369 91340 0 3 0x82 wait syz-executor.3 23638 162625 327 32767 3 0x90 nanoslp syz-executor.7 327 245764 91340 0 3 0x82 wait syz-executor.7 78207 496909 13538 32767 3 0x90 nanoslp syz-executor.0 92489 284242 91340 0 3 0x82 wait syz-executor.4 13538 198348 91340 0 3 0x82 wait syz-executor.0 91340 220763 35226 0 3 0x82 thrsleep syz-execprog 91340 437556 35226 0 3 0x4000082 thrsleep syz-execprog 91340 378609 35226 0 3 0x4000082 wait syz-execprog 91340 263796 35226 0 3 0x4000082 thrsleep syz-execprog 91340 168048 35226 0 3 0x4000082 wait syz-execprog 91340 189976 35226 0 3 0x4000082 wait syz-execprog 91340 198797 35226 0 3 0x4000082 wait syz-execprog 91340 459440 35226 0 3 0x4000082 wait syz-execprog 91340 171982 35226 0 3 0x4000082 thrsleep syz-execprog 91340 106165 35226 0 3 0x4000082 wait syz-execprog 91340 251914 35226 0 3 0x4000082 wait syz-execprog 91340 52554 35226 0 3 0x4000082 wait syz-execprog 91340 109912 35226 0 3 0x4000082 kqread syz-execprog 91340 182365 35226 0 3 0x4000082 thrsleep syz-execprog 91340 319350 35226 0 3 0x4000082 thrsleep syz-execprog 35226 457537 22623 0 3 0x10008a sigsusp ksh 22623 273953 30632 0 3 0x9a kqread sshd 41490 184510 1 0 3 0x100083 ttyin getty 30632 523411 1 0 3 0x88 kqread sshd 89472 291417 68964 73 3 0x1100090 kqread syslogd 68964 137529 1 0 3 0x100082 netio syslogd 9504 219337 1 0 3 0x100080 kqread resolvd 1411 151645 49339 77 3 0x100092 kqread dhcpleased 92352 379192 49339 77 3 0x100092 kqread dhcpleased 49339 357625 1 0 3 0x80 kqread dhcpleased 12424 232914 0 0 3 0x14200 bored smr 35799 509583 0 0 2 0x14200 zerothread 63044 494842 0 0 3 0x14200 aiodoned aiodoned 10710 506829 0 0 3 0x14200 syncer update 28239 210465 0 0 3 0x14200 cleaner cleaner 70066 395905 0 0 3 0x14200 reaper reaper 24134 290963 0 0 3 0x14200 pgdaemon pagedaemon 48058 56410 0 0 3 0x14200 bored viomb 93036 499816 0 0 3 0x40014200 acpi0 acpi0 68629 427195 0 0 3 0x40014200 idle1 76013 302251 0 0 3 0x14200 bored softnet 14102 156373 0 0 3 0x14200 bored softnet 81057 523647 0 0 3 0x14200 bored softnet 63294 522211 0 0 3 0x14200 bored softnet 81041 265467 0 0 3 0x14200 bored systqmp 51452 361516 0 0 3 0x14200 bored systq 49506 95432 0 0 3 0x40014200 bored softclock 53443 227419 0 0 3 0x40014200 idle0 1 18042 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 35489 (syz-executor.1) thread 0xffff800021408d30 (387735) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a01680) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3bb sys/kern/sched_bsd.c:415 #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:277 #9 kerntrap+0xef sys/arch/amd64/amd64/trap.c:332 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x53 #12 syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] #12 syscall+0x438 sys/arch/amd64/amd64/trap.c:599 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 6408K 6420K 78643K 11275 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 343 0 ifaddr 71 16K 16K 78643K 73 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 27 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 25 93K 121K 78643K 162 0 proc 56 78K 115K 78643K 464 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 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 349 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 321 76K 76K 78643K 2687 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 11 0K 2K 78643K 27 0 temp 91 4688K 4752K 78643K 3889 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 33 0 30 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 123 0 98 2 0 2 2 0 8 0 syncache 296 5 0 5 1 0 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 18 0 0 1 0 1 1 0 8 0 inpcb 368 57 0 51 1 0 1 1 0 8 0 nd6 48 24 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 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 84 0 72 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1492 0 62 90 0 90 90 0 8 0 ffsino 272 1492 0 62 96 0 96 96 0 8 0 nchpl 144 1763 0 95 63 0 63 63 0 8 0 uvmvnodes 80 1501 0 0 31 0 31 31 0 8 0 vnodes 216 1501 0 0 84 0 84 84 0 8 0 namei 1024 5818 0 5818 2 0 2 2 0 8 2 percpumem 16 42 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5822 0 5822 2 1 1 2 0 8 1 plimitpl 152 33 0 10 1 0 1 1 0 8 0 sigapl 424 445 0 391 7 0 7 7 0 8 0 futexpl 64 309 0 274 1 0 1 1 0 8 0 knotepl 120 110 0 0 4 0 4 4 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 320 128 0 100 3 0 3 3 0 8 0 fdescpl 496 428 0 392 7 1 6 6 0 8 0 filepl 152 1595 0 1455 6 0 6 6 0 8 0 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 9 1 0 1 1 0 8 0 pgrppl 48 25 0 9 1 0 1 1 0 8 0 ucredpl 104 90 0 72 1 0 1 1 0 8 0 zombiepl 144 392 0 391 1 0 1 1 0 8 0 processpl 1072 445 0 391 5 0 5 5 0 8 0 procpl 672 609 0 490 11 0 11 11 0 8 0 sockpl 488 213 0 179 5 0 5 5 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 254 0 0 32 0 32 32 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 304 0 0 19 0 19 19 0 8 0 bufpl 288 3983 0 138 275 0 275 275 0 8 0 anonpl 24 121768 0 114304 53 5 48 48 0 186 0 amapchunkpl 152 7085 0 6373 30 1 29 29 0 158 0 amappl16 200 2161 0 2079 9 4 5 5 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 155 0 142 2 0 2 2 0 8 1 amappl13 176 5 0 3 1 0 1 1 0 8 0 amappl12 168 396 0 394 1 0 1 1 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 31 0 22 2 1 1 1 0 8 0 amappl9 144 941 0 938 1 0 1 1 0 8 0 amappl8 136 127 0 99 2 0 2 2 0 8 0 amappl7 128 122 0 105 2 0 2 2 0 8 0 amappl6 120 151 0 142 1 0 1 1 0 8 0 amappl5 112 113 0 106 1 0 1 1 0 8 0 amappl4 104 467 0 441 3 1 2 3 0 8 1 amappl3 96 696 0 614 3 0 3 3 0 8 0 amappl2 88 744 0 665 3 0 3 3 0 8 1 amappl1 80 12254 0 11374 22 0 22 22 0 8 3 amappl 88 2246 0 2008 6 0 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 428 0 392 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 428 0 392 1 0 1 1 0 8 0 vmmpekpl 168 9389 0 9359 2 0 2 2 0 8 0 vmmpepl 168 45129 0 42589 118 3 115 115 0 357 1 vmsppl 368 427 0 392 4 0 4 4 0 8 0 rwobjpl 56 16263 0 13474 45 2 43 43 0 8 3 pdppl 4096 863 0 784 105 18 87 93 0 8 8 pvpl 32 301274 0 287753 261 4 257 257 0 265 146 pmappl 248 427 0 392 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 662 0 20 19 0 19 19 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff829ceff0) 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 __mp_lock(ffffffff82a01478) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a01478) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002139ccf0) at syscall+0x424 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002139ccf0) at syscall+0x424 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd850, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff800021408d30,ffff80002152da08,ffff80002152da50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021408d30,ffff80002152da08,ffff80002152da50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002152dad0) at syscall+0x438 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002152dad0) at syscall+0x438 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc3a724b2610, count: -3 ddb{1}>