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(ffff800021236028,ffff80002fe359a0,ffff80002fe359f0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021236028,ffff80002fe359a0,ffff80002fe359f0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002fe35a70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe35a70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd078fa97ed0, count: -3 ddb{0}> show registers rdi 0x9e rsi 0x20000008 rbp 0xffff80002fe35990 rbx 0x9e rdx 0 rcx 0 rax 0xffff800021236028 r8 0x7f7fffffc000 r9 0 r10 0x4ef330328d76b580 r11 0x5c66366a3cf5c76d r12 0xfffffd806536ae88 r13 0xdead4110dead4110 r14 0xffff800000d42600 r15 0x9e rip 0xffffffff818894af sys_msgrcv+0x2df cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002fe35900 ss 0x10 sys_msgrcv+0x2df: movq 0x10(%r13),%rdi ddb{0}> show proc PROC (syz-executor.7) pid=101242 stat=onproc flags process=0 proc=4000000 pri=36, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000211e4590,0xffff800021237340 process=0xffff8000212ac878 user=0xffff80002fe30000, vmspace=0xfffffd806efd7398 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 34792 360767 3600 0 2 0 syz-executor.4 22013 76916 52088 0 2 0 syz-executor.5 23558 404571 74120 0 2 0 syz-executor.3 23558 1759 74120 0 3 0x4000080 msgwait syz-executor.3 23558 26001 74120 0 3 0x4000080 msgwait syz-executor.3 48991 233577 83899 0 2 0 syz-executor.2 48991 139713 83899 0 3 0x4000080 fsleep syz-executor.2 48991 486450 83899 0 7 0x4000000 syz-executor.2 48991 39955 83899 0 3 0x4000080 fsleep syz-executor.2 48991 119501 83899 0 2 0x4000000 syz-executor.2 81041 229307 77946 0 2 0 syz-executor.7 *81041 101242 77946 0 7 0x4000000 syz-executor.7 81041 94881 77946 0 2 0x4000000 syz-executor.7 81041 103190 77946 0 2 0x4000000 syz-executor.7 81041 206699 77946 0 2 0x4000000 syz-executor.7 6199 298641 65201 0 3 0x80 nanoslp syz-executor.1 6199 187950 65201 0 3 0x4000080 kqpoll syz-executor.1 6199 10302 65201 0 3 0x4000080 fsleep syz-executor.1 6199 393207 65201 0 3 0x4000080 fsleep syz-executor.1 88129 81308 24494 0 2 0 syz-executor.6 88129 75530 24494 0 3 0x4000080 fsleep syz-executor.6 88129 180238 24494 0 3 0x4000080 msgwait syz-executor.6 88129 446539 24494 0 3 0x4000080 fsleep syz-executor.6 94567 122338 29319 0 2 0 syz-executor.0 94567 381255 29319 0 3 0x4000080 fsleep syz-executor.0 29319 267540 69928 0 3 0x82 nanoslp syz-executor.0 52088 32776 69928 0 3 0x82 nanoslp syz-executor.5 24494 111190 69928 0 3 0x82 nanoslp syz-executor.6 77946 78993 69928 0 3 0x82 nanoslp syz-executor.7 3600 510417 69928 0 2 0x2 syz-executor.4 79493 325212 68018 0 3 0x100082 netio arp 68018 42703 1 0 3 0x10008a sigsusp sh 74120 332938 69928 0 3 0x82 nanoslp syz-executor.3 83899 439358 69928 0 3 0x82 nanoslp syz-executor.2 65201 403923 69928 0 3 0x82 nanoslp syz-executor.1 69928 382727 683 0 3 0x82 thrsleep syz-fuzzer 69928 325808 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 338001 683 0 3 0x4000082 wait syz-fuzzer 69928 469736 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 150781 683 0 3 0x4000082 wait syz-fuzzer 69928 484732 683 0 3 0x4000082 wait syz-fuzzer 69928 197190 683 0 3 0x4000082 wait syz-fuzzer 69928 139777 683 0 3 0x4000082 wait syz-fuzzer 69928 115203 683 0 3 0x4000082 kqread syz-fuzzer 69928 326111 683 0 3 0x4000082 wait syz-fuzzer 69928 360353 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 429856 683 0 3 0x4000082 wait syz-fuzzer 69928 354915 683 0 3 0x4000082 wait syz-fuzzer 69928 253188 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 31622 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 57524 683 0 3 0x4000082 thrsleep syz-fuzzer 69928 441507 683 0 3 0x4000082 thrsleep syz-fuzzer 683 108225 40068 0 3 0x10008a sigsusp ksh 40068 67700 82455 0 3 0x9a kqread sshd 16660 151092 1 0 3 0x100083 ttyin getty 82455 396622 1 0 3 0x88 kqread sshd 21310 94977 31275 74 3 0x1100092 bpf pflogd 31275 227195 1 0 3 0x80 netio pflogd 7144 113134 64216 73 3 0x1100090 kqread syslogd 64216 321706 1 0 3 0x100082 netio syslogd 35299 79923 1 0 3 0x100080 kqread resolvd 75301 466730 79909 77 3 0x100092 kqread dhcpleased 97112 253704 79909 77 3 0x100092 kqread dhcpleased 79909 480772 1 0 3 0x80 kqread dhcpleased 15500 78403 0 0 3 0x14200 bored smr 40120 328663 0 0 2 0x14200 zerothread 22105 6321 0 0 3 0x14200 aiodoned aiodoned 56992 321299 0 0 3 0x14200 syncer update 67621 442400 0 0 3 0x14200 cleaner cleaner 44536 183151 0 0 3 0x14200 reaper reaper 91561 49823 0 0 3 0x14200 pgdaemon pagedaemon 92689 398184 0 0 3 0x14200 bored viomb 56823 458163 0 0 3 0x40014200 acpi0 acpi0 13351 189915 0 0 3 0x40014200 idle1 53120 295347 0 0 3 0x14200 bored softnet3 78118 511319 0 0 3 0x14200 bored softnet2 26941 94114 0 0 3 0x14200 bored softnet1 72902 476827 0 0 3 0x14200 bored softnet0 9682 484905 0 0 3 0x14200 bored systqmp 14174 399465 0 0 3 0x14200 bored systq 99975 314352 0 0 3 0x40014200 bored softclock 40340 482682 0 0 3 0x40014200 idle0 1 105402 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 81041 (syz-executor.7) thread 0xffff800021236028 (101242) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c48a08) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3c3 sys/kern/sched_bsd.c:405 #3 sleep_finish+0x184 sys/kern/kern_synch.c:417 #4 rw_enter+0x35e sys/kern/kern_rwlock.c:286 #5 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1773 #6 uvm_fault_check+0x3e sys/uvm/uvm_fault.c:673 #7 uvm_fault+0xf2 sys/uvm/uvm_fault.c:601 #8 kpageflttrap+0x23e sys/arch/amd64/amd64/trap.c:286 #9 kerntrap+0xf3 sys/arch/amd64/amd64/trap.c:341 #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:632 #13 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10178 6473K 6489K 78643K 11281 0 pcb 13 8K 8K 78643K 18 0 rtable 234 6K 6K 78643K 362 0 ifaddr 77 25K 25K 78643K 86 0 counters 60 35K 35K 78643K 62 0 ioctlops 0 0K 4K 78643K 1483 0 iov 0 0K 0K 78643K 3 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1333 83K 83K 78643K 1353 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 3 0K 0K 78643K 4 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 20 73K 93K 78643K 171 0 proc 67 91K 128K 78643K 547 0 subproc 117 7K 7K 78643K 117 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 100 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 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 396 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 363 86K 86K 78643K 3917 0 UVM aobj 9 2K 2K 78643K 9 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 29 0 temp 98 5850K 5914K 78643K 4594 0 kqueue 12 18K 18K 78643K 22 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 37 0 33 1 0 1 1 0 8 0 rtentry 112 114 0 4 4 0 4 4 0 8 0 unpcb 144 192 0 177 6 5 1 6 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 57 0 57 1 1 0 1 0 8 0 tcpcb 776 8 0 4 1 0 1 1 0 8 0 arp 120 19 0 1 1 0 1 1 0 8 0 inpcb 368 73 0 66 1 0 1 1 0 8 0 nd6 136 24 0 0 1 0 1 1 0 8 0 kcovpl 48 9 0 0 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 27 0 20 1 0 1 1 0 8 0 pfstkey 128 27 0 20 1 0 1 1 0 8 0 pfstate 384 27 0 20 3 2 1 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 456 0 3 29 0 29 29 0 8 0 art_table 32 457 0 3 4 0 4 4 0 8 0 art_node 16 113 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 1 0 0 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1522 0 74 91 0 91 91 0 8 0 ffsino 272 1522 0 74 97 0 97 97 0 8 0 nchpl 144 1823 0 172 63 0 63 63 0 8 0 uvmvnodes 80 1696 0 0 35 0 35 35 0 8 0 vnodes 216 1696 0 0 95 0 95 95 0 8 0 namei 1024 6867 0 6867 4 3 1 2 0 8 1 percpumem 16 44 0 1 1 0 1 1 0 8 0 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scxspl 216 6740 0 6740 12 11 1 8 0 8 1 plimitpl 152 26 0 9 1 0 1 1 0 8 0 sigapl 424 490 0 440 8 2 6 7 0 8 0 futexpl 64 510 0 503 2 1 1 1 0 8 0 knotepl 120 112 0 0 4 0 4 4 0 8 0 kqueuepl 216 28 0 18 1 0 1 1 0 8 0 pipepl 320 254 0 189 11 5 6 8 0 8 0 fdescpl 496 473 0 440 5 0 5 5 0 8 0 filepl 152 2531 0 2202 29 14 15 24 0 8 0 lockfpl 104 17 0 14 1 0 1 1 0 8 0 lockfspl 48 10 0 7 1 0 1 1 0 8 0 sessionpl 144 25 0 7 1 0 1 1 0 8 0 pgrppl 48 25 0 7 1 0 1 1 0 8 0 ucredpl 104 68 0 56 1 0 1 1 0 8 0 zombiepl 144 440 0 440 2 1 1 1 0 8 1 processpl 1072 490 0 440 4 0 4 4 0 8 0 procpl 696 566 0 483 9 1 8 8 0 8 0 sockpl 488 302 0 276 21 16 5 20 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 496 0 0 61 0 61 61 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 504 0 0 31 0 31 31 0 8 0 bufpl 288 4109 0 152 283 0 283 283 0 8 0 anonpl 24 230988 0 218220 89 0 89 89 0 186 1 amapchunkpl 152 13408 0 12394 42 2 40 40 0 158 0 amappl16 200 6847 0 6462 22 0 22 22 0 8 0 amappl15 192 21 0 21 1 1 0 1 0 8 0 amappl14 184 203 0 188 2 1 1 2 0 8 0 amappl13 176 53 0 53 1 1 0 1 0 8 0 amappl12 168 1155 0 1122 3 1 2 2 0 8 0 amappl11 160 85 0 70 1 0 1 1 0 8 0 amappl10 152 34 0 24 1 0 1 1 0 8 0 amappl9 144 295 0 294 2 1 1 2 0 8 0 amappl8 136 171 0 125 2 0 2 2 0 8 0 amappl7 128 62 0 46 1 0 1 1 0 8 0 amappl6 120 271 0 255 2 1 1 2 0 8 0 amappl5 112 159 0 150 1 0 1 1 0 8 0 amappl4 104 688 0 642 3 1 2 3 0 8 0 amappl3 96 2396 0 2291 6 3 3 3 0 8 0 amappl2 88 661 0 593 3 1 2 3 0 8 0 amappl1 80 10381 0 9798 23 9 14 23 0 8 0 amappl 88 3387 0 3125 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 473 0 440 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 473 0 440 1 0 1 1 0 8 0 vmmpekpl 168 10379 0 10317 3 0 3 3 0 8 0 vmmpepl 168 54406 0 51943 145 28 117 126 0 357 9 vmsppl 456 472 0 440 5 0 5 5 0 8 0 rwobjpl 56 23161 0 19914 49 3 46 47 0 8 0 pdppl 4096 954 0 880 131 57 74 84 0 8 0 pvpl 32 456625 0 437937 368 94 274 367 0 265 107 pmappl 248 472 0 440 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 739 0 62 20 0 20 20 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_msgrcv(ffff800021236028,ffff80002fe359a0,ffff80002fe359f0) at sys_msgrcv+0x2df msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800021236028,ffff80002fe359a0,ffff80002fe359f0) at sys_msgrcv+0x2df sys/kern/sysv_msg.c:349 syscall(ffff80002fe35a70) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002fe35a70) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:632 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd078fa97ed0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d58ff0) 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+0x23 __mp_lock(ffffffff82c48800) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c48800) at __mp_lock+0x129 sys/kern/kern_lock.c:147 end trace frame: 0x0, count: -4