kernel: protection fault trap, code=0 Stopped at sys_msgrcv+0x3f2: movq 0x10(%r13),%rdi ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff800035c21780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734034c1570, count: -3 ddb> show registers rdi 0 rsi 0x20001208 rbp 0xffff800035c216a0 rbx 0 rdx 0xffff80000128ec80 rcx 0 rax 0xa r8 0x7f7fffffc000 r9 0 r10 0x18df90ab8a0c6a15 r11 0x141915cb596417d2 r12 0xfffffd8076950f30 r13 0xdeadbeefdeadbeef r14 0xffff8000012b2500 r15 0xa rip 0xffffffff810b7ca2 sys_msgrcv+0x3f2 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800035c21600 ss 0x10 sys_msgrcv+0x3f2: movq 0x10(%r13),%rdi ddb> show proc PROC (syz-executor) tid=308549 pid=26835 tcnt=5 stat=onproc flags process=0 proc=4000000 runpri=36, usrpri=50, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d0cc8,0xffff80002a4d0030 process=0xffff8000327f48a8 user=0xffff800035c1c000, vmspace=0xfffffd806c19c9b8 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 16886 473085 26277 0 2 0 syz-executor 16886 412629 26277 0 3 0x4000000 futex syz-executor 83018 4003 54668 0 2 0 syz-executor 83018 414887 54668 0 3 0x4000080 fsleep syz-executor 83018 113598 54668 0 3 0x4000000 futex syz-executor 9661 66893 0 0 3 0x14200 acct acct 42293 405948 65606 0 2 0x480 syz-executor 42293 338556 65606 0 3 0x4000080 ttyout syz-executor 42293 301670 65606 0 3 0x4000080 fsleep syz-executor 21295 437706 27695 0 2 0 syz-executor 21295 504399 27695 0 3 0x4000000 futex syz-executor 2024 285412 38233 0 2 0 syz-executor 2024 452636 38233 0 3 0x4000080 kqsel syz-executor 2024 151077 38233 0 3 0x4000080 fsleep syz-executor 2024 9048 38233 0 2 0x4000000 syz-executor 26835 251056 7796 0 2 0 syz-executor *26835 308549 7796 0 7 0x4000000 syz-executor 26835 221289 7796 0 3 0x4000080 fsleep syz-executor 26835 85811 7796 0 2 0x4000000 syz-executor 26835 360052 7796 0 2 0x4000000 syz-executor 88274 52114 66539 0 2 0 syz-executor 88274 157386 66539 0 3 0x4000080 fsleep syz-executor 88274 400717 66539 0 3 0x4000080 fsleep syz-executor 88274 85632 66539 0 2 0x4000000 syz-executor 44183 175006 0 0 3 0x14200 bored sosplice 7796 366995 69445 0 3 0x82 nanoslp syz-executor 66539 166133 69445 0 3 0x82 nanoslp syz-executor 77116 297604 69445 0 2 0x2 syz-executor 54668 157891 69445 0 3 0x82 nanoslp syz-executor 65606 109600 69445 0 3 0x82 nanoslp syz-executor 38233 81199 69445 0 3 0x82 nanoslp syz-executor 27695 295844 69445 0 3 0x82 nanoslp syz-executor 26277 382073 69445 0 3 0x82 nanoslp syz-executor 69445 367397 25825 0 3 0x82 kqread syz-executor 25825 178229 31949 0 3 0x10008a sigsusp ksh 31949 315952 87399 0 3 0x98 kqread sshd-session 87399 202332 1590 0 3 0x92 kqread sshd-session 50162 491671 1 0 3 0x100083 ttyin getty 1590 454878 1 0 3 0x88 kqread sshd 78037 226157 90481 73 3 0x1100090 kqread syslogd 90481 158993 1 0 3 0x100082 sbwait syslogd 36221 430183 1 0 3 0x100080 kqread resolvd 35415 170013 76419 77 3 0x100092 kqread dhcpleased 17598 387908 76419 77 3 0x100092 kqread dhcpleased 76419 213714 1 0 3 0x80 kqread dhcpleased 8108 132478 0 0 3 0x14200 bored smr 22900 386373 0 0 2 0x14200 zerothread 25586 310673 0 0 3 0x14200 aiodoned aiodoned 37151 496964 0 0 3 0x14200 syncer update 55352 10309 0 0 3 0x14200 cleaner cleaner 60490 511108 0 0 3 0x14200 reaper reaper 13132 174772 0 0 3 0x14200 pgdaemon pagedaemon 55070 191552 0 0 3 0x14200 bored viomb 41891 257397 0 0 3 0x40014200 acpi0 acpi0 70675 500340 0 0 3 0x14200 bored softnet3 88340 75001 0 0 3 0x14200 bored softnet2 57743 123374 0 0 3 0x14200 bored softnet1 19833 348533 0 0 3 0x14200 bored softnet0 42430 89911 0 0 3 0x14200 bored systqmp 64507 21239 0 0 3 0x14200 bored systq 64694 500535 0 0 2 0x40014200 softclock 40937 362438 0 0 3 0x40014200 idle0 1 25120 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10177 11044K 11365K 166960K 11745 0 pcb 18 15K 16K 166960K 194 0 rtable 221 7K 7K 166960K 454 0 pf 34 13K 13K 166960K 46 0 ifaddr 40 6K 7K 166960K 52 0 ifgroup 54 2K 2K 166960K 67 0 sysctl 3 1K 1K 166960K 3 0 counters 31 17K 17K 166960K 36 0 ioctlops 0 0K 4K 166960K 57 0 iov 0 0K 12K 166960K 66 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1455 91K 92K 166960K 1868 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 75 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 462 0 sigio 0 0K 0K 166960K 16 0 proc 60 59K 116K 166960K 512 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 66 0 in_multi 88 6K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 384 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 240 74K 86K 166960K 5944 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 96K 166960K 1490 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 19 0 NDP 12 0K 2K 166960K 33 0 temp 51 6809K 6874K 166960K 16159 0 kqueue 13 20K 26K 166960K 72 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 94 0 91 2 1 1 2 0 8 0 rtentry 112 118 0 18 4 0 4 4 0 8 0 unpcb 144 260 0 245 1 0 1 1 0 8 0 syncache 336 4 0 4 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 88 0 82 1 0 1 1 0 8 0 arp 88 20 0 4 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 336 653 0 644 12 5 7 7 0 8 5 nd6 104 25 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 4 0 4 2 1 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfstkey 128 2 0 2 1 0 1 1 0 8 1 pfstate 344 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 460 0 48 29 0 29 29 0 8 2 art_table 32 461 0 48 4 0 4 4 0 8 0 art_node 16 117 0 27 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 9 2 1 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 73 0 63 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2215 0 722 95 0 95 95 0 8 0 ffsino 240 2215 0 722 89 0 89 89 0 8 0 nchpl 144 2904 0 1227 63 0 63 63 0 8 0 uvmvnodes 80 2662 0 0 55 0 55 55 0 8 0 vnodes 216 2662 0 0 148 0 148 148 0 8 0 namei 1024 10177 0 10177 3 2 1 2 0 8 1 kstatmem 264 34 0 10 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 8344 0 8344 10 2 8 8 1 8 8 plimitpl 152 163 0 146 1 0 1 1 0 8 0 sigapl 424 746 0 699 7 1 6 7 0 8 0 futexpl 64 5531 0 5524 1 0 1 1 0 8 0 knotepl 120 14410 0 14363 18 8 10 10 0 8 7 kqueuepl 184 178 0 168 3 2 1 3 0 8 0 pipepl 288 165 0 138 4 1 3 3 0 8 1 fdescpl 432 727 0 698 5 1 4 5 0 8 0 filepl 120 4843 0 4602 15 3 12 12 0 8 3 lockfpl 104 249 0 247 2 1 1 2 0 8 0 lockfspl 48 80 0 78 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 41 0 25 1 0 1 1 0 8 0 ucredpl 104 916 0 905 1 0 1 1 0 8 0 zombiepl 144 873 0 873 1 0 1 1 0 8 1 processpl 1096 746 0 699 4 0 4 4 0 8 0 procpl 648 1346 0 1283 6 0 6 6 0 8 0 sosppl 168 3 0 3 1 0 1 1 0 8 1 sockpl 504 1013 0 986 23 11 12 14 0 8 8 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 3080 0 3031 15 7 8 14 0 8 1 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 428 0 426 2 0 2 2 0 8 1 mtagpl 96 14 0 7 1 0 1 1 0 8 0 mbufpl 256 8079 0 7904 18 4 14 15 0 8 1 bufpl 280 2876 0 96 199 0 199 199 0 8 0 anonpl 24 184117 0 180818 47 2 45 45 0 187 22 amapchunkpl 152 20390 0 19662 36 7 29 29 0 158 0 amappl16 200 4970 0 4941 17 6 11 14 0 8 8 amappl15 192 48 0 48 1 1 0 1 0 8 0 amappl14 184 110 0 100 1 0 1 1 0 8 0 amappl13 176 49 0 49 1 1 0 1 0 8 0 amappl12 168 1341 0 1311 2 0 2 2 0 8 0 amappl11 160 52 0 42 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 157 0 157 1 1 0 1 0 8 0 amappl8 136 54 0 53 1 0 1 1 0 8 0 amappl7 128 98 0 88 1 0 1 1 0 8 0 amappl6 120 180 0 179 1 0 1 1 0 8 0 amappl5 112 125 0 116 1 0 1 1 0 8 0 amappl4 104 281 0 266 1 0 1 1 0 8 0 amappl3 96 3638 0 3534 3 0 3 3 0 8 0 amappl2 88 1000 0 923 2 0 2 2 0 8 0 amappl1 80 8431 0 7911 14 1 13 13 0 8 0 amappl 88 5565 0 5379 5 0 5 5 0 92 0 dma4096 4096 2 0 2 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 1 1 1 0 8 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 727 0 698 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 727 0 698 1 0 1 1 0 8 0 vmmpekpl 168 7295 0 7263 3 0 3 3 0 8 0 vmmpepl 168 53385 0 51606 88 0 88 88 0 357 8 vmsppl 352 726 0 698 4 1 3 4 0 8 0 rwobjpl 24 21722 0 18176 22 0 22 22 0 8 0 pdppl 4096 1461 0 1396 99 32 67 83 0 8 2 pvpl 32 376633 0 367913 110 5 105 105 0 265 28 pmappl 216 726 0 698 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 402 0 66 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff800035c21780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734034c1570, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80002a4d02a8,ffff800035c21780,ffff800035c216d0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff800035c21780) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x734034c1570, count: -3