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(ffff8000295b78b8,ffff80002e46bd08,ffff80002e46bd50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000295b78b8,ffff80002e46bd08,ffff80002e46bd50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e46bdd0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e46bdd0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86b549b3c30, count: -3 ddb{1}> show registers rdi 0xf5 rsi 0x200001c8 rbp 0xffff80002e46bcf0 rbx 0xf5 rdx 0 rcx 0 rax 0xffff8000295b78b8 r8 0x7f7fffffc000 r9 0x1 r10 0x932940c21287a5f9 r11 0xa73c9f3c0a4966a2 r12 0xfffffd8062f15cd0 r13 0xdeafbeaddeafbead r14 0xffff800000d3c300 r15 0xf5 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e46bc60 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.4) pid=469303 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=63, nice=20 forw=0xffffffffffffffff, list=0xffff8000295b7600,0xffff8000295b6de8 process=0xffff8000ffff6198 user=0xffff80002e466000, vmspace=0xfffffd806472e898 estcpu=13, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 87637 326777 59441 32767 2 0x10 syz-executor.2 87637 107983 59441 32767 3 0x4000090 fsleep syz-executor.2 6868 179236 80769 32767 3 0x90 nanoslp syz-executor.6 6868 357559 80769 32767 3 0x4000090 msgwait syz-executor.6 6868 187307 80769 32767 3 0x4000090 fsleep syz-executor.6 6868 186466 80769 32767 3 0x4000090 fsleep syz-executor.6 68420 380373 51025 32767 7 0x10 syz-executor.4 *68420 469303 51025 32767 7 0x4000010 syz-executor.4 68420 134021 51025 32767 2 0x4000010 syz-executor.4 68420 103700 51025 32767 2 0x4000010 syz-executor.4 68420 287861 51025 32767 2 0x4000010 syz-executor.4 28744 265865 29062 32767 2 0x10 syz-executor.1 28744 369426 29062 32767 3 0x4000090 fsleep syz-executor.1 97533 207458 48740 32767 3 0x90 nanoslp syz-executor.7 97533 400650 48740 32767 3 0x4000090 fsleep syz-executor.7 48740 519658 9797 32767 3 0x90 nanoslp syz-executor.7 26241 379743 83530 32767 3 0x90 nanoslp syz-executor.5 9797 141181 70870 0 3 0x82 wait syz-executor.7 80769 473349 80215 32767 3 0x90 nanoslp syz-executor.6 1282 382361 26308 32767 3 0x10 biowait syz-executor.3 80215 216324 70870 0 3 0x82 wait syz-executor.6 26308 508085 70870 0 3 0x82 wait syz-executor.3 83530 44312 70870 0 3 0x82 wait syz-executor.5 51025 369885 17786 32767 3 0x90 nanoslp syz-executor.4 17786 400937 70870 0 3 0x82 wait syz-executor.4 59441 232421 12982 32767 3 0x90 nanoslp syz-executor.2 50571 163632 72365 32767 3 0x90 nanoslp syz-executor.0 12982 395285 70870 0 3 0x82 wait syz-executor.2 29062 63046 78731 32767 3 0x90 nanoslp syz-executor.1 78731 270386 70870 0 3 0x82 wait syz-executor.1 72365 314320 70870 0 3 0x82 wait syz-executor.0 70870 60211 75895 0 3 0x82 wait syz-fuzzer 70870 171022 75895 0 3 0x4000082 nanoslp syz-fuzzer 70870 296841 75895 0 3 0x4000082 thrsleep syz-fuzzer 70870 354178 75895 0 3 0x4000082 thrsleep syz-fuzzer 70870 102620 75895 0 3 0x4000082 wait syz-fuzzer 70870 391587 75895 0 3 0x4000082 wait syz-fuzzer 70870 155234 75895 0 3 0x4000082 wait syz-fuzzer 70870 3034 75895 0 3 0x4000082 wait syz-fuzzer 70870 461828 75895 0 3 0x4000082 wait syz-fuzzer 70870 160738 75895 0 3 0x4000082 thrsleep syz-fuzzer 70870 231209 75895 0 3 0x4000082 thrsleep syz-fuzzer 70870 342693 75895 0 3 0x4000082 wait syz-fuzzer 70870 456046 75895 0 3 0x4000082 wait syz-fuzzer 70870 446928 75895 0 3 0x4000082 kqread syz-fuzzer 70870 502805 75895 0 3 0x4000082 thrsleep syz-fuzzer 75895 73530 19867 0 3 0x10008a sigsusp ksh 19867 177188 5834 0 3 0x9a kqread sshd 59970 214834 1 0 3 0x100083 ttyin getty 5834 431200 1 0 3 0x88 kqread sshd 54366 280672 81564 73 3 0x1100090 kqread syslogd 81564 324608 1 0 3 0x100082 netio syslogd 17521 324392 1 0 3 0x100080 kqread resolvd 48074 274935 9820 77 3 0x100092 kqread dhcpleased 2157 362111 9820 77 3 0x100092 kqread dhcpleased 9820 33643 1 0 3 0x80 kqread dhcpleased 5921 242361 0 0 3 0x14200 bored smr 90700 401485 0 0 2 0x14200 zerothread 20899 207562 0 0 3 0x14200 aiodoned aiodoned 61798 472844 0 0 3 0x14200 syncer update 78612 32286 0 0 3 0x14200 cleaner cleaner 34541 295701 0 0 3 0x14200 reaper reaper 33555 318552 0 0 3 0x14200 pgdaemon pagedaemon 20332 375825 0 0 3 0x14200 bored viomb 72286 48530 0 0 3 0x40014200 acpi0 acpi0 11578 489135 0 0 3 0x40014200 idle1 56855 244264 0 0 3 0x14200 bored softnet 19038 403274 0 0 3 0x14200 bored softnet 55198 76939 0 0 3 0x14200 bored softnet 53103 4152 0 0 3 0x14200 bored softnet 29030 146982 0 0 3 0x14200 bored systqmp 95969 33261 0 0 3 0x14200 bored systq 90473 424768 0 0 3 0x40014200 bored softclock 11728 412613 0 0 3 0x40014200 idle0 1 143557 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 68420 (syz-executor.4) thread 0xffff8000295b78b8 (469303) 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 Process 1282 (syz-executor.3) thread 0xffff8000212942e8 (382361) exclusive rrwlock inode r = 0 (0xfffffd807beba818) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vget+0x1fc sys/kern/vfs_subr.c:676 #6 ufs_ihashget+0x121 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x7c sys/ufs/ffs/ffs_vfsops.c:1324 #8 ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x58 sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e5 sys/kern/vfs_lookup.c:566 #11 namei+0x55a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1848 #13 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #13 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8066c47b40) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:465 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1848 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10194 6409K 6421K 78643K 11284 0 pcb 13 10K 12K 78643K 15 0 rtable 236 6K 6K 78643K 345 0 ifaddr 73 24K 24K 78643K 75 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 30 0 iov 0 0K 8K 78643K 12 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1316 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 77 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 117K 78643K 238 0 proc 56 78K 115K 78643K 483 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 12 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 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 356 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 298 80K 84K 78643K 3221 0 UVM aobj 77 3K 3K 78643K 77 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 11 0K 2K 78643K 27 0 temp 101 5768K 5832K 78643K 4639 0 kqueue 13 20K 22K 78643K 32 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 35 0 31 1 0 1 1 0 8 0 rtentry 112 112 0 1 4 0 4 4 0 8 0 unpcb 144 98 0 82 2 0 2 2 0 8 1 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 395 0 395 3 1 2 2 0 8 2 tcpcb 776 196 0 92 11 0 11 11 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 365 0 357 13 0 13 13 0 8 11 nd6 48 25 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 466 0 0 30 0 30 30 0 8 0 art_table 32 467 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 10 1 0 1 1 0 8 0 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 74 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1633 0 201 90 0 90 90 0 8 0 ffsino 272 1633 0 201 96 0 96 96 0 8 0 nchpl 144 2041 0 370 63 0 63 63 0 8 0 uvmvnodes 80 1746 0 0 36 0 36 36 0 8 0 vnodes 216 1746 0 0 97 0 97 97 0 8 0 namei 1024 7064 0 7064 2 0 2 2 0 8 2 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 7045 0 7044 5 1 4 4 0 8 3 plimitpl 152 36 0 12 1 0 1 1 0 8 0 sigapl 424 519 0 466 7 0 7 7 0 8 0 futexpl 64 1480 0 1475 1 0 1 1 0 8 0 knotepl 120 116 0 0 4 0 4 4 0 8 0 kqueuepl 216 41 0 31 1 0 1 1 0 8 0 pipepl 320 192 0 164 6 0 6 6 0 8 3 fdescpl 496 502 0 468 7 1 6 6 0 8 0 filepl 152 2679 0 2438 15 0 15 15 0 8 4 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 23 0 7 1 0 1 1 0 8 0 pgrppl 48 92 0 76 1 0 1 1 0 8 0 ucredpl 104 237 0 219 1 0 1 1 0 8 0 zombiepl 144 468 0 466 1 0 1 1 0 8 0 processpl 1072 519 0 466 4 0 4 4 0 8 0 procpl 696 722 0 645 9 1 8 8 0 8 0 sockpl 488 504 0 477 20 0 20 20 0 8 16 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 6 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 288 0 0 35 0 35 35 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 344 0 0 21 0 21 21 0 8 0 bufpl 288 4305 0 145 298 0 298 298 0 8 0 anonpl 24 144667 0 131495 85 2 83 83 0 186 0 amapchunkpl 152 9241 0 8508 31 0 31 31 0 158 0 amappl16 200 2577 0 2249 18 0 18 18 0 8 0 amappl15 192 26 0 23 1 0 1 1 0 8 0 amappl14 184 144 0 132 2 0 2 2 0 8 1 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 384 0 383 1 0 1 1 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 37 0 27 1 0 1 1 0 8 0 amappl9 144 967 0 965 1 0 1 1 0 8 0 amappl8 136 156 0 113 2 0 2 2 0 8 0 amappl7 128 139 0 118 2 0 2 2 0 8 0 amappl6 120 166 0 149 2 0 2 2 0 8 1 amappl5 112 123 0 117 1 0 1 1 0 8 0 amappl4 104 457 0 430 2 0 2 2 0 8 1 amappl3 96 874 0 813 2 0 2 2 0 8 0 amappl2 88 855 0 777 3 0 3 3 0 8 1 amappl1 80 13599 0 12822 26 6 20 26 0 8 2 amappl 88 2751 0 2550 6 1 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 76 0 0 2 0 2 2 0 8 0 uaddrrnd 24 502 0 468 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 502 0 468 1 0 1 1 0 8 0 vmmpekpl 168 10015 0 9948 4 0 4 4 0 8 0 vmmpepl 168 54986 0 52263 131 0 131 131 0 357 1 vmsppl 440 501 0 468 5 0 5 5 0 8 0 rwobjpl 56 18319 0 15053 50 2 48 48 0 8 1 pdppl 4096 1011 0 936 111 30 81 91 0 8 6 pvpl 32 361602 0 342449 360 26 334 360 0 265 173 pmappl 248 501 0 468 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 707 0 32 20 0 20 20 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+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c2c890) at __mp_lock+0x122 sys/kern/kern_lock.c:147 intr_handler(ffff80002bffaf90,ffff80000006ba00) at intr_handler+0x5e sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f end of kernel end trace frame: 0x7f7ffffd99b0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff8000295b78b8,ffff80002e46bd08,ffff80002e46bd50) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000295b78b8,ffff80002e46bd08,ffff80002e46bd50) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e46bdd0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e46bdd0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x86b549b3c30, count: -3