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(ffff8000212d3348,ffff80002e4579d8,ffff80002e457a20) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d3348,ffff80002e4579d8,ffff80002e457a20) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e457aa0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e457aa0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd0ab6211960, count: -3 ddb{1}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002e4579c0 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff8000212d3348 r8 0x7f7fffffc000 r9 0x1 r10 0xe2d13d3dc045e0fe r11 0x1ca7e63f8a60f104 r12 0xfffffd8070a00de8 r13 0xdeadbeefdeadbeef r14 0xffff800000d1b200 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e457930 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.3) pid=78353 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=59, nice=20 forw=0xffffffffffffffff, list=0xffff8000212d3b70,0xffff8000212d25c0 process=0xffff8000ffff6198 user=0xffff80002e452000, vmspace=0xfffffd80684ae6f8 estcpu=19, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13788 91369 68114 32767 2 0x10 syz-executor.1 49911 348899 33226 32767 7 0x10 syz-executor.3 *49911 78353 33226 32767 7 0x4000010 syz-executor.3 49911 414483 33226 32767 2 0x4000010 syz-executor.3 49911 395943 33226 32767 2 0x4000010 syz-executor.3 49911 161076 33226 32767 2 0x4000010 syz-executor.3 49911 288450 33226 32767 2 0x4000010 syz-executor.3 33230 97310 97678 32767 2 0x10 syz-executor.5 33230 484119 97678 32767 3 0x4000090 fsleep syz-executor.5 33230 219853 97678 32767 3 0x4000090 fsleep syz-executor.5 33230 126122 97678 32767 2 0x4000010 syz-executor.5 80438 62287 42906 32767 2 0x10 syz-executor.4 80438 235973 42906 32767 3 0x4000090 netio syz-executor.4 80438 235268 42906 32767 3 0x4000090 netio syz-executor.4 80438 208268 42906 32767 2 0x4000010 syz-executor.4 80438 280850 42906 32767 2 0x4000010 syz-executor.4 78160 466546 0 0 3 0x14200 bored sosplice 57535 458099 94937 32767 2 0x81010 syz-executor.7 57535 86442 94937 32767 2 0x4081010 syz-executor.7 57535 462102 94937 32767 2 0x4081010 syz-executor.7 57535 299096 94937 32767 2 0x4081010 syz-executor.7 57535 277541 94937 32767 3 0x4003010 suspend syz-executor.7 10056 380733 71521 32767 2 0x10 syz-executor.2 94937 108074 29684 32767 3 0x90 nanoslp syz-executor.7 55254 455988 41290 32767 3 0x90 nanoslp syz-executor.6 29684 367234 79678 0 3 0x82 wait syz-executor.7 33226 173320 53617 32767 3 0x90 nanoslp syz-executor.3 41290 18674 79678 0 3 0x82 wait syz-executor.6 68114 463796 99850 32767 2 0x10 syz-executor.1 97678 310660 1810 32767 3 0x90 nanoslp syz-executor.5 99850 119594 79678 0 3 0x82 wait syz-executor.1 42906 335696 9545 32767 3 0x90 nanoslp syz-executor.4 1810 313387 79678 0 3 0x82 wait syz-executor.5 71521 183506 63182 32767 2 0x10 syz-executor.2 53617 70406 79678 0 3 0x82 wait syz-executor.3 91014 21290 46598 32767 3 0x90 nanoslp syz-executor.0 63182 257792 79678 0 3 0x82 wait syz-executor.2 9545 109473 79678 0 3 0x82 wait syz-executor.4 46598 511000 79678 0 3 0x82 wait syz-executor.0 79678 494316 44596 0 3 0x82 thrsleep syz-fuzzer 79678 155684 44596 0 3 0x4000082 nanoslp syz-fuzzer 79678 125120 44596 0 3 0x4000082 wait syz-fuzzer 79678 188175 44596 0 3 0x4000082 wait syz-fuzzer 79678 37636 44596 0 3 0x4000082 wait syz-fuzzer 79678 462540 44596 0 3 0x4000082 thrsleep syz-fuzzer 79678 461147 44596 0 3 0x4000082 wait syz-fuzzer 79678 365216 44596 0 3 0x4000082 wait syz-fuzzer 79678 329922 44596 0 3 0x4000082 thrsleep syz-fuzzer 79678 451402 44596 0 3 0x4000082 thrsleep syz-fuzzer 79678 429779 44596 0 3 0x4000082 wait syz-fuzzer 79678 375959 44596 0 3 0x4000082 wait syz-fuzzer 79678 165379 44596 0 3 0x4000082 wait syz-fuzzer 79678 319222 44596 0 3 0x4000082 thrsleep syz-fuzzer 79678 189088 44596 0 3 0x4000082 kqread syz-fuzzer 44596 51753 79061 0 3 0x10008a sigsusp ksh 79061 300916 35849 0 3 0x9a kqread sshd 27223 371960 1 0 3 0x100083 ttyin getty 35849 178895 1 0 3 0x88 kqread sshd 12089 101298 90402 73 3 0x1100090 kqread syslogd 90402 507225 1 0 3 0x100082 netio syslogd 8495 114395 1 0 3 0x100080 kqread resolvd 71718 214791 82052 77 3 0x100092 kqread dhcpleased 64376 328540 82052 77 3 0x100092 kqread dhcpleased 82052 363956 1 0 3 0x80 kqread dhcpleased 96603 75219 0 0 3 0x14200 bored smr 28829 520435 0 0 2 0x14200 zerothread 56462 20590 0 0 3 0x14200 aiodoned aiodoned 69917 83647 0 0 3 0x14200 syncer update 62265 333851 0 0 3 0x14200 cleaner cleaner 54217 107165 0 0 3 0x14200 reaper reaper 55190 239173 0 0 3 0x14200 pgdaemon pagedaemon 15197 296667 0 0 3 0x14200 bored viomb 84568 352916 0 0 3 0x40014200 acpi0 acpi0 39528 159841 0 0 3 0x40014200 idle1 81401 394890 0 0 3 0x14200 bored softnet 57267 418274 0 0 3 0x14200 bored softnet 26425 109027 0 0 3 0x14200 bored softnet 92334 426399 0 0 3 0x14200 bored softnet 19957 20081 0 0 3 0x14200 bored systqmp 44804 444550 0 0 3 0x14200 bored systq 59752 204717 0 0 3 0x40014200 bored softclock 40530 499661 0 0 3 0x40014200 idle0 1 233547 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49911 (syz-executor.3) thread 0xffff8000212d3348 (78353) 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 10196 6409K 6421K 78643K 11286 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 351 0 ifaddr 73 24K 24K 78643K 75 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 27 0 iov 0 0K 12K 78643K 18 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1286 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 110 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 117K 78643K 268 0 proc 56 78K 115K 78643K 467 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 6 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 364 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 310 82K 82K 78643K 3570 0 UVM aobj 18 2K 2K 78643K 21 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 3 0 NDP 11 0K 2K 78643K 27 0 temp 102 5772K 5836K 78643K 4459 0 kqueue 12 18K 22K 78643K 40 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 39 0 36 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 160 0 145 4 0 4 4 0 8 3 syncache 296 6 0 6 2 1 1 1 0 8 1 tcpqe 32 1284 0 1284 3 3 0 2 0 8 0 tcpcb 776 41 0 37 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 142 0 134 2 0 2 2 0 8 0 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 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 12 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 108 0 98 1 0 1 1 0 8 0 shmpl 112 18 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1608 0 177 90 0 90 90 0 8 0 ffsino 272 1608 0 177 96 0 96 96 0 8 0 nchpl 144 2031 0 360 63 0 63 63 0 8 0 uvmvnodes 80 1721 0 0 36 0 36 36 0 8 0 vnodes 216 1721 0 0 96 0 96 96 0 8 0 namei 1024 7005 0 7005 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 7217 0 7217 9 1 8 8 0 8 8 plimitpl 152 42 0 19 2 0 2 2 0 8 1 sigapl 424 561 0 506 7 0 7 7 0 8 0 futexpl 64 1512 0 1510 1 0 1 1 0 8 0 knotepl 120 110 0 0 4 0 4 4 0 8 0 kqueuepl 216 121 0 113 5 4 1 5 0 8 0 pipepl 320 215 0 187 8 0 8 8 0 8 5 fdescpl 496 543 0 507 7 1 6 6 0 8 1 filepl 152 2720 0 2482 20 2 18 18 0 8 8 lockfpl 104 8 0 6 1 0 1 1 0 8 0 lockfspl 48 5 0 3 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 23 0 7 1 0 1 1 0 8 0 ucredpl 104 156 0 138 1 0 1 1 0 8 0 zombiepl 144 508 0 506 1 0 1 1 0 8 0 processpl 1072 561 0 506 5 0 5 5 0 8 1 procpl 696 865 0 780 9 1 8 8 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 488 341 0 315 14 2 12 14 0 8 8 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 295 0 0 36 0 36 36 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 1777 0 0 111 0 111 111 0 8 0 bufpl 288 4202 0 145 290 0 290 290 0 8 0 anonpl 24 160939 0 147608 107 3 104 104 0 186 20 amapchunkpl 152 10173 0 9226 37 0 37 37 0 158 0 amappl16 200 3368 0 3042 31 2 29 29 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 146 0 134 2 1 1 2 0 8 0 amappl13 176 13 0 12 1 0 1 1 0 8 0 amappl12 168 395 0 393 1 0 1 1 0 8 0 amappl11 160 44 0 33 1 0 1 1 0 8 0 amappl10 152 35 0 27 1 0 1 1 0 8 0 amappl9 144 961 0 960 1 0 1 1 0 8 0 amappl8 136 171 0 127 2 0 2 2 0 8 0 amappl7 128 145 0 123 2 0 2 2 0 8 0 amappl6 120 168 0 157 2 1 1 2 0 8 0 amappl5 112 119 0 112 1 0 1 1 0 8 0 amappl4 104 456 0 431 2 1 1 2 0 8 0 amappl3 96 1036 0 971 2 0 2 2 0 8 0 amappl2 88 923 0 841 3 1 2 3 0 8 0 amappl1 80 14694 0 13897 27 9 18 26 0 8 0 amappl 88 3089 0 2874 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 20 0 3 1 0 1 1 0 8 0 uaddrrnd 24 543 0 507 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 543 0 507 1 0 1 1 0 8 0 vmmpekpl 168 10420 0 10358 3 0 3 3 0 8 0 vmmpepl 168 59222 0 56360 138 0 138 138 0 357 12 vmsppl 440 542 0 507 5 0 5 5 0 8 0 rwobjpl 56 20098 0 16892 51 3 48 48 0 8 1 pdppl 4096 1093 0 1014 111 30 81 91 0 8 2 pvpl 32 385848 0 365841 360 30 330 360 0 265 162 pmappl 248 542 0 507 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 778 0 33 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 __mp_lock(ffffffff82c2c890) at __mp_lock+0x120 __mp_lock_spin sys/kern/kern_lock.c:117 [inline] __mp_lock(ffffffff82c2c890) at __mp_lock+0x120 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7fffff3a70, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff8000212d3348,ffff80002e4579d8,ffff80002e457a20) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212d3348,ffff80002e4579d8,ffff80002e457a20) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e457aa0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e457aa0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd0ab6211960, count: -3