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(ffff80002124b548,ffff80002e3e9830,ffff80002e3e9880) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002124b548,ffff80002e3e9830,ffff80002e3e9880) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e3e9900) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3e9900) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda97a8b3380, count: -3 ddb{1}> show registers rdi 0x108 rsi 0x20002708 rbp 0xffff80002e3e9820 rbx 0x108 rdx 0 rcx 0xffff80002124b548 rax 0xffff800020d58ff0 r8 0x7f7fffffc000 r9 0x1 r10 0x4251497595048ddc r11 0xf1cc2bf312a904f9 r12 0xfffffd8066190d98 r13 0xdeadbeefdeadbeef r14 0xffff800000d57200 r15 0x108 rip 0xffffffff812ce1bf sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e3e9790 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> show proc PROC (syz-executor.7) pid=61434 stat=onproc flags process=0 proc=4000000 pri=36, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff80002124ba98,0xffff8000211f5d68 process=0xffff80002126e9f8 user=0xffff80002e3e4000, vmspace=0xfffffd806efdb008 estcpu=30, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 62459 343356 88673 0 2 0 syz-executor.6 94103 505453 84888 0 7 0 syz-executor.7 *94103 61434 84888 0 7 0x4000000 syz-executor.7 94103 129524 84888 0 2 0x4000000 syz-executor.7 94103 202665 84888 0 2 0x4000000 syz-executor.7 88290 295879 3131 0 2 0 syz-executor.3 88290 448566 3131 0 3 0x4000080 msgwait syz-executor.3 88290 141593 3131 0 3 0x4000080 fsleep syz-executor.3 83399 422408 0 0 3 0x14200 acct acct 25112 399718 0 0 3 0x14200 bored sosplice 65726 56639 96355 0 3 0x82 nanoslp syz-executor.5 84888 190513 96355 0 3 0x82 nanoslp syz-executor.7 88673 184119 96355 0 2 0x2 syz-executor.6 60476 59097 96355 0 3 0x82 piperd syz-executor.4 3131 441679 96355 0 3 0x82 nanoslp syz-executor.3 90324 124187 96355 0 3 0x82 piperd syz-executor.1 84954 4026 96355 0 3 0x82 nanoslp syz-executor.2 6069 291454 96355 0 3 0x2 biowait syz-executor.0 96355 451324 78345 0 3 0x2000082 wait syz-fuzzer 96355 193664 78345 0 3 0x6000082 nanoslp syz-fuzzer 96355 130180 78345 0 3 0x6000082 thrsleep syz-fuzzer 96355 370409 78345 0 3 0x6000082 thrsleep syz-fuzzer 96355 108533 78345 0 3 0x6000082 wait syz-fuzzer 96355 257233 78345 0 3 0x6000082 thrsleep syz-fuzzer 96355 225953 78345 0 3 0x6000082 wait syz-fuzzer 96355 1725 78345 0 3 0x6000082 wait syz-fuzzer 96355 158282 78345 0 3 0x6000082 wait syz-fuzzer 96355 380773 78345 0 3 0x6000082 wait syz-fuzzer 96355 84135 78345 0 3 0x6000082 thrsleep syz-fuzzer 96355 511854 78345 0 3 0x6000082 wait syz-fuzzer 96355 17305 78345 0 3 0x6000082 wait syz-fuzzer 96355 221703 78345 0 3 0x6000082 thrsleep syz-fuzzer 96355 474205 78345 0 3 0x6000082 kqread syz-fuzzer 78345 141711 31843 0 3 0x10008a sigsusp ksh 31843 480119 60551 0 3 0x9a kqread sshd 52931 268481 1 0 3 0x100083 ttyin getty 60551 448911 1 0 3 0x88 kqread sshd 47947 175699 93800 74 3 0x1100092 bpf pflogd 93800 95308 1 0 3 0x80 netio pflogd 32683 337702 37048 73 3 0x1100090 kqread syslogd 37048 44733 1 0 3 0x100082 netio syslogd 49561 329670 1 0 3 0x100080 kqread resolvd 3979 472739 65116 77 3 0x100092 kqread dhcpleased 62299 117553 65116 77 3 0x100092 kqread dhcpleased 65116 1850 1 0 3 0x80 kqread dhcpleased 94828 31275 0 0 3 0x14200 bored smr 11780 509463 0 0 2 0x14200 zerothread 2321 340704 0 0 3 0x14200 aiodoned aiodoned 1158 472785 0 0 3 0x14200 syncer update 233 358994 0 0 3 0x14200 cleaner cleaner 18819 431493 0 0 3 0x14200 reaper reaper 87641 411096 0 0 3 0x14200 pgdaemon pagedaemon 56136 188086 0 0 3 0x14200 bored viomb 66648 342595 0 0 3 0x40014200 acpi0 acpi0 64384 40054 0 0 3 0x40014200 idle1 28782 505876 0 0 3 0x14200 bored softnet3 34073 66776 0 0 3 0x14200 bored softnet2 35202 174623 0 0 3 0x14200 bored softnet1 66951 440766 0 0 3 0x14200 bored softnet0 48240 499958 0 0 3 0x14200 bored systqmp 5599 370590 0 0 3 0x14200 bored systq 92472 353729 0 0 3 0x40014200 bored softclock 61159 6655 0 0 3 0x40014200 idle0 1 175847 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 94103 (syz-executor.7) thread 0xffff80002124b548 (61434) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c60e08) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46b sys/kern/sched_bsd.c:470 #3 sleep_finish+0x19b sys/kern/kern_synch.c:414 #4 rw_enter+0x341 sys/kern/kern_rwlock.c:285 #5 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1785 #6 uvm_fault_check+0x3e sys/uvm/uvm_fault.c:672 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:600 #8 kpageflttrap+0x252 sys/arch/amd64/amd64/trap.c:279 #9 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:332 #10 alltraps_kern_meltdown+0x7b #11 copyout+0x57 #12 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #12 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #13 Xsyscall+0x128 Process 6069 (syz-executor.0) thread 0xffff8000211f4818 (291454) exclusive rrwlock inode r = 0 (0xfffffd806fe675e8) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vget+0x200 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:1314 #8 ufs_lookup+0x13ba sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5c sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x6e2 sys/kern/vfs_lookup.c:566 #11 namei+0x55a sys/kern/vfs_lookup.c:250 #12 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #13 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #13 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80698a51b0) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x8c sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0x8b sys/kern/vfs_vops.c:518 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0xd5 sys/kern/vfs_lookup.c:418 #6 namei+0x55a sys/kern/vfs_lookup.c:250 #7 dounlinkat+0x9d sys/kern/vfs_syscalls.c:1847 #8 syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] #8 syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10192 6483K 6620K 78643K 11328 0 pcb 13 8K 8K 78643K 16 0 rtable 234 6K 6K 78643K 355 0 pf 32 9K 10K 78643K 43 0 ifaddr 45 15K 15K 78643K 47 0 ifgroup 55 2K 2K 78643K 55 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 1486 0 iov 0 0K 0K 78643K 6 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1283 80K 80K 78643K 1322 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 18 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 89K 78643K 376 0 proc 68 91K 115K 78643K 535 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 3 0 in_multi 99 7K 7K 78643K 105 0 ether_multi 1 0K 0K 78643K 4 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 392 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 308 81K 81K 78643K 5989 0 UVM aobj 20 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 28 0 temp 73 5915K 5979K 78643K 5007 0 kqueue 12 18K 20K 78643K 36 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 38 0 35 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 146 0 131 3 2 1 3 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 85 0 85 1 1 0 1 0 8 0 tcpcb 808 25 0 21 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 98 0 91 2 0 2 2 0 8 1 nd6 136 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pffrag 232 4 0 2 1 0 1 1 0 482 0 pffrnode 88 4 0 2 1 0 1 1 0 8 0 pffrent 40 9 0 7 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 31 0 3 1 0 1 1 0 8 0 pfstkey 128 31 0 3 1 0 1 1 0 8 0 pfstate 376 31 0 3 3 0 3 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 70 0 65 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 17 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1784 0 333 91 0 91 91 0 8 0 ffsino 272 1784 0 333 97 0 97 97 0 8 0 nchpl 144 2471 0 781 63 0 63 63 0 8 0 uvmvnodes 80 1922 0 0 40 0 40 40 0 8 0 vnodes 216 1922 0 0 107 0 107 107 0 8 0 namei 1024 8550 0 8550 2 1 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 vmpool 696 3 0 3 1 0 1 1 0 8 1 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 8331 0 8330 10 4 6 8 1 8 5 plimitpl 152 46 0 30 1 0 1 1 0 8 0 sigapl 424 696 0 649 8 2 6 7 0 8 0 futexpl 64 2242 0 2241 1 0 1 1 0 8 0 knotepl 120 108 0 0 4 0 4 4 0 8 0 kqueuepl 216 141 0 133 3 0 3 3 0 8 2 pipepl 320 172 0 144 3 0 3 3 0 8 0 fdescpl 496 677 0 651 5 1 4 5 0 8 0 filepl 152 3005 0 2765 13 2 11 13 0 8 1 lockfpl 104 44 0 42 1 0 1 1 0 8 0 lockfspl 48 23 0 21 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 7 1 0 1 1 0 8 0 ucredpl 104 209 0 197 1 0 1 1 0 8 0 zombiepl 144 651 0 649 1 0 1 1 0 8 0 processpl 1072 696 0 649 4 0 4 4 0 8 0 procpl 680 1199 0 1133 9 1 8 8 0 8 2 sosppl 168 7 0 7 1 0 1 1 0 8 1 sockpl 488 282 0 257 12 4 8 12 0 8 4 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 253 0 0 32 0 32 32 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 260 0 0 17 0 17 17 0 8 0 bufpl 288 4462 0 146 309 0 309 309 0 8 0 anonpl 24 215789 0 202325 85 2 83 83 0 186 0 amapchunkpl 152 19752 0 18924 39 0 39 39 0 158 3 amappl16 200 5933 0 5568 20 0 20 20 0 8 0 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 161 0 146 2 1 1 2 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 1367 0 1340 4 2 2 3 0 8 0 amappl11 160 63 0 48 1 0 1 1 0 8 0 amappl10 152 25 0 16 2 1 1 1 0 8 0 amappl9 144 164 0 163 1 0 1 1 0 8 0 amappl8 136 198 0 148 2 0 2 2 0 8 0 amappl7 128 69 0 59 2 0 2 2 0 8 0 amappl6 120 247 0 227 2 1 1 2 0 8 0 amappl5 112 203 0 189 1 0 1 1 0 8 0 amappl4 104 578 0 535 3 1 2 3 0 8 0 amappl3 96 4357 0 4282 4 1 3 3 0 8 0 amappl2 88 942 0 875 3 1 2 3 0 8 0 amappl1 80 10980 0 10435 23 10 13 23 0 8 1 amappl 88 5462 0 5253 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 19 0 0 1 0 1 1 0 8 0 uaddrrnd 24 680 0 654 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 680 0 654 1 0 1 1 0 8 0 vmmpekpl 168 11394 0 11328 4 0 4 4 0 8 0 vmmpepl 168 63914 0 61783 128 6 122 128 0 357 23 vmsppl 464 679 0 654 5 1 4 5 0 8 0 rwobjpl 56 25193 0 21812 53 4 49 49 0 8 0 pdppl 4096 1368 0 1308 122 52 70 82 0 8 10 pvpl 32 468006 0 449098 368 29 339 368 0 265 180 pmappl 248 679 0 654 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 723 0 56 20 0 20 20 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff82b90ff0) at x86_ipi_db+0x1e 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+0x27 __mp_lock(ffffffff82c60c00) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c60c00) at __mp_lock+0x122 sys/kern/kern_lock.c:147 intr_handler(ffff80002e3ef700,ffff80000006bc00) at intr_handler+0x62 sys/arch/amd64/amd64/intr.c:532 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __mp_lock(ffffffff82c60c00) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c60c00) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002e3ef8d0) at syscall+0x52b mi_syscall_return sys/sys/syscall_mi.h:138 [inline] syscall(ffff80002e3ef8d0) at syscall+0x52b sys/arch/amd64/amd64/trap.c:644 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bb0e34b7770, count: -9 ddb{0}> machine ddbcpu 1 Stopped at sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{1}> trace sys_msgrcv(ffff80002124b548,ffff80002e3e9830,ffff80002e3e9880) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002124b548,ffff80002e3e9830,ffff80002e3e9880) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e3e9900) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e3e9900) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xda97a8b3380, count: -3