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(ffff8000212b8b18,ffff80002e433cf8,ffff80002e433d40) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212b8b18,ffff80002e433cf8,ffff80002e433d40) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e433dc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e433dc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74e15519710, count: -3 ddb{0}> show registers rdi 0x106e __ALIGN_SIZE+0x6e rsi 0x20001cc8 rbp 0xffff80002e433ce0 rbx 0x106e __ALIGN_SIZE+0x6e rdx 0 rcx 0 rax 0xffff8000212b8b18 r8 0x7f7fffffc000 r9 0x1 r10 0xa95b9dfa6977324d r11 0x8c0dff839defd5e3 r12 0xfffffd8073e54dc0 r13 0xdeadbeefdeadbeef r14 0xffff800000d13300 r15 0x1c0 rip 0xffffffff81e3167f sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002e433c50 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.3) pid=498069 stat=onproc flags process=10 proc=4000000 pri=36, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000212b8dd0,0xffff8000212b98c0 process=0xffff8000261425c8 user=0xffff80002e42e000, vmspace=0xfffffd80667a2000 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 76991 305982 92466 32767 2 0x10 syz-executor.2 76991 228294 92466 32767 7 0x4000010 syz-executor.2 4205 40254 37395 32767 2 0x10 syz-executor.6 4205 379570 37395 32767 3 0x4000090 fsleep syz-executor.6 87144 458252 66573 32767 2 0x10 syz-executor.3 *87144 498069 66573 32767 7 0x4000010 syz-executor.3 87144 164476 66573 32767 3 0x4000090 fsleep syz-executor.3 87144 382650 66573 32767 2 0x4000010 syz-executor.3 99862 128826 69104 32767 3 0x90 nanoslp syz-executor.4 99862 133919 69104 32767 3 0x4000090 fsleep syz-executor.4 99862 9149 69104 32767 3 0x4000090 fsleep syz-executor.4 99862 395907 69104 32767 3 0x4000090 ttyretype syz-executor.4 37395 390931 5387 32767 3 0x90 nanoslp syz-executor.6 92466 104758 27135 32767 3 0x90 nanoslp syz-executor.2 5387 176248 28041 0 3 0x82 wait syz-executor.6 86425 308206 30637 32767 3 0x90 piperd syz-executor.7 69104 389397 6061 32767 3 0x90 nanoslp syz-executor.4 30637 260003 28041 0 3 0x82 wait syz-executor.7 37822 281180 81286 32767 3 0x90 nanoslp syz-executor.5 6061 241214 28041 0 3 0x82 wait syz-executor.4 81286 477922 28041 0 3 0x82 wait syz-executor.5 66573 77866 16255 32767 2 0x10 syz-executor.3 27135 112253 28041 0 3 0x82 wait syz-executor.2 16255 31754 28041 0 3 0x82 wait syz-executor.3 38186 232426 40529 32767 3 0x90 piperd syz-executor.1 95437 97616 10441 32767 3 0x90 piperd syz-executor.0 40529 354746 28041 0 3 0x82 wait syz-executor.1 10441 261502 28041 0 3 0x82 wait syz-executor.0 28041 443739 32462 0 3 0x82 wait syz-fuzzer 28041 315554 32462 0 2 0x4000002 syz-fuzzer 28041 66257 32462 0 3 0x4000082 thrsleep syz-fuzzer 28041 387756 32462 0 2 0x4000002 syz-fuzzer 28041 325722 32462 0 3 0x4000082 wait syz-fuzzer 28041 206420 32462 0 3 0x4000082 wait syz-fuzzer 28041 23826 32462 0 3 0x4000082 wait syz-fuzzer 28041 359389 32462 0 3 0x4000082 wait syz-fuzzer 28041 6221 32462 0 3 0x4000082 thrsleep syz-fuzzer 28041 203814 32462 0 3 0x4000082 wait syz-fuzzer 28041 238942 32462 0 3 0x4000082 thrsleep syz-fuzzer 28041 79117 32462 0 3 0x4000082 wait syz-fuzzer 28041 54426 32462 0 3 0x4000082 wait syz-fuzzer 28041 131917 32462 0 3 0x4000082 thrsleep syz-fuzzer 28041 40151 32462 0 3 0x4000082 kqread syz-fuzzer 28041 97623 32462 0 2 0x4000002 syz-fuzzer 32462 114950 14416 0 3 0x10008a sigsusp ksh 14416 105823 88686 0 3 0x9a kqread sshd 38395 10705 1 0 3 0x100083 ttyin getty 88686 88499 1 0 3 0x88 kqread sshd 76243 283057 49416 73 3 0x1100090 kqread syslogd 49416 109375 1 0 3 0x100082 netio syslogd 88578 123031 1 0 3 0x100080 kqread resolvd 92853 472046 88564 77 3 0x100092 kqread dhcpleased 10983 471877 88564 77 3 0x100092 kqread dhcpleased 88564 181974 1 0 3 0x80 kqread dhcpleased 22466 349025 0 0 3 0x14200 bored smr 6691 359427 0 0 2 0x14200 zerothread 80632 222146 0 0 3 0x14200 aiodoned aiodoned 34584 339684 0 0 3 0x14200 syncer update 96062 29701 0 0 3 0x14200 cleaner cleaner 19989 106942 0 0 3 0x14200 reaper reaper 91437 377054 0 0 3 0x14200 pgdaemon pagedaemon 97402 263796 0 0 3 0x14200 bored viomb 23005 457478 0 0 3 0x40014200 acpi0 acpi0 552 293608 0 0 3 0x40014200 idle1 82210 212367 0 0 3 0x14200 bored softnet 1532 327359 0 0 3 0x14200 bored softnet 41238 446763 0 0 3 0x14200 bored softnet 57115 36350 0 0 3 0x14200 bored softnet 52354 333248 0 0 3 0x14200 bored systqmp 44830 407671 0 0 3 0x14200 bored systq 39141 4809 0 0 3 0x40014200 bored softclock 21381 132790 0 0 3 0x40014200 idle0 1 23809 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 87144 (syz-executor.3) thread 0xffff8000212b8b18 (498069) 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 10202 6410K 6421K 78643K 11292 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 354 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 2K 78643K 38 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1271 79K 79K 78643K 1352 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 47 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 113K 78643K 225 0 sigio 0 0K 0K 78643K 3 0 proc 56 78K 103K 78643K 464 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 2 0K 0K 78643K 168 0 in_multi 99 6K 6K 78643K 101 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 91 413K 413K 78643K 91 0 exec 0 0K 1K 78643K 363 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 300 82K 82K 78643K 3204 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 27 0 temp 90 5765K 5829K 78643K 4304 0 kqueue 12 18K 22K 78643K 35 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 41 0 38 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 56 0 43 1 0 1 1 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1265 0 1265 2 1 1 1 0 8 1 tcpcb 776 29 0 23 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 100 0 89 2 0 2 2 0 8 1 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 8 0 3 1 0 1 1 0 8 0 semapl 112 45 0 35 1 0 1 1 0 8 0 shmpl 112 5 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1644 0 214 90 0 90 90 0 8 0 ffsino 272 1644 0 214 96 0 96 96 0 8 0 nchpl 144 2029 0 360 63 0 63 63 0 8 0 uvmvnodes 80 1757 0 0 36 0 36 36 0 8 0 vnodes 216 1757 0 0 98 0 98 98 0 8 0 namei 1024 7300 0 7300 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 6946 0 6946 9 1 8 8 0 8 8 plimitpl 152 46 0 22 2 0 2 2 0 8 1 sigapl 424 523 0 472 7 0 7 7 0 8 0 futexpl 64 1270 0 1266 1 0 1 1 0 8 0 knotepl 120 116 0 0 4 0 4 4 0 8 0 kqueuepl 216 41 0 33 1 0 1 1 0 8 0 pipepl 320 179 0 151 6 0 6 6 0 8 3 fdescpl 496 506 0 473 7 1 6 6 0 8 1 filepl 152 2649 0 2407 12 0 12 12 0 8 2 lockfpl 104 18 0 16 1 0 1 1 0 8 0 lockfspl 48 10 0 8 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 456 0 438 1 0 1 1 0 8 0 zombiepl 144 473 0 472 1 0 1 1 0 8 0 processpl 1072 523 0 472 4 0 4 4 0 8 0 procpl 696 704 0 630 10 1 9 9 0 8 1 sockpl 488 197 0 170 5 0 5 5 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 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 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 258 0 0 33 0 33 33 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 322 0 0 20 0 20 20 0 8 0 bufpl 288 4116 0 145 284 0 284 284 0 8 0 anonpl 24 137760 0 124560 83 0 83 83 0 186 1 amapchunkpl 152 8876 0 8121 33 0 33 33 0 158 1 amappl16 200 2531 0 2213 19 0 19 19 0 8 0 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 145 0 133 2 1 1 2 0 8 0 amappl13 176 10 0 10 2 1 1 1 0 8 1 amappl12 168 405 0 403 1 0 1 1 0 8 0 amappl11 160 44 0 34 1 0 1 1 0 8 0 amappl10 152 36 0 25 1 0 1 1 0 8 0 amappl9 144 964 0 963 1 0 1 1 0 8 0 amappl8 136 144 0 105 2 0 2 2 0 8 0 amappl7 128 145 0 122 2 0 2 2 0 8 0 amappl6 120 164 0 152 2 1 1 2 0 8 0 amappl5 112 122 0 116 1 0 1 1 0 8 0 amappl4 104 475 0 446 2 0 2 2 0 8 1 amappl3 96 896 0 840 2 0 2 2 0 8 0 amappl2 88 856 0 779 3 1 2 3 0 8 0 amappl1 80 13692 0 12940 27 9 18 26 0 8 0 amappl 88 2708 0 2509 7 1 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 506 0 473 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 506 0 473 1 0 1 1 0 8 0 vmmpekpl 168 10100 0 10053 3 0 3 3 0 8 0 vmmpepl 168 54921 0 52291 131 0 131 131 0 357 2 vmsppl 440 505 0 473 5 0 5 5 0 8 0 rwobjpl 56 18179 0 15005 49 3 46 47 0 8 0 pdppl 4096 1019 0 946 117 36 81 89 0 8 8 pvpl 32 356371 0 337272 354 16 338 354 0 265 178 pmappl 248 505 0 473 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 684 0 39 20 1 19 19 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff8000212b8b18,ffff80002e433cf8,ffff80002e433d40) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff8000212b8b18,ffff80002e433cf8,ffff80002e433d40) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002e433dc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e433dc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x74e15519710, 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 __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 vn_ioctl(fffffd8066a89130,80044b02,ffff80002615bba0,ffff80002473db70) at vn_ioctl+0x41 sys/kern/vfs_vnops.c:508 sys_ioctl(ffff80002473db70,ffff80002615bcb0,ffff80002615bd00) at sys_ioctl+0x4a2 syscall(ffff80002615bd80) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002615bd80) at syscall+0x606 sys/arch/amd64/amd64/trap.c:625 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x97f06f5e1e0, count: -8