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(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c9db260) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9db260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8ca73106480, count: -3 ddb> show registers rdi 0 rsi 0x200000001208 rbp 0xffff80003c9db180 rbx 0 rdx 0xffff80000143ec00 rcx 0 rax 0xa r8 0x7f7fffffc000 r9 0 r10 0xab8cf60332645f3f r11 0x984e447650fa480f r12 0xfffffd806ad8bc60 r13 0xdeaf4152deaf4152 r14 0xffff80000148a200 r15 0xa rip 0xffffffff820079f2 sys_msgrcv+0x3f2 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003c9db0e0 ss 0 sys_msgrcv+0x3f2: movq 0x10(%r13),%rdi ddb> show proc PROC (syz-executor) tid=367063 pid=27683 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=36, usrpri=83, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7ad558,0xffff80003c9522b8 process=0xffff80002a875ac0 user=0xffff80003c9d6000, vmspace=0xfffffd806c1f1718 estcpu=33, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 72936 492492 88478 0 2 0 syz-executor 72936 54095 88478 0 3 0x4000080 fsleep syz-executor 74234 305303 89842 0 2 0 syz-executor 74234 62362 89842 0 3 0x4000080 fsleep syz-executor 90801 81438 30072 0 2 0 syz-executor 90801 471326 30072 0 3 0x4000080 kqread syz-executor 90801 352905 30072 0 3 0x4000080 fsleep syz-executor 27683 78256 17296 0 2 0 syz-executor *27683 367063 17296 0 7 0x4000000 syz-executor 27683 107182 17296 0 3 0x4000080 fsleep syz-executor 27683 418660 17296 0 2 0x4000000 syz-executor 36496 474994 7788 0 3 0x80 nanoslp syz-executor 36496 75753 7788 0 3 0x4000080 nanoslp syz-executor 49400 490907 70015 0 2 0x1 syz-executor 49400 34683 70015 0 3 0x4000080 fsleep syz-executor 49400 448306 70015 0 3 0x4000080 fsleep syz-executor 88478 186736 65607 0 3 0x82 nanoslp syz-executor 68931 262332 0 0 3 0x14200 acct acct 74780 41899 0 0 3 0x14200 bored sosplice 30072 472557 65607 0 3 0x82 nanoslp syz-executor 89842 277534 65607 0 3 0x82 nanoslp syz-executor 70015 452086 65607 0 3 0x82 nanoslp syz-executor 7788 203511 65607 0 3 0x82 nanoslp syz-executor 17296 518107 65607 0 3 0x82 nanoslp syz-executor 16287 491079 65607 0 2 0x2 syz-executor 50414 395211 65607 0 3 0x82 wait syz-executor 65607 364400 78215 0 3 0x82 kqread syz-executor 78215 6836 22295 0 3 0x10008a sigsusp ksh 22295 486873 83733 0 3 0x98 kqread sshd-session 83733 192592 87159 0 3 0x92 kqread sshd-session 57885 355822 1 0 3 0x100083 ttyopn getty 87159 270515 1 0 3 0x88 kqread sshd 13370 307138 7386 73 3 0x1100090 kqread syslogd 7386 195606 1 0 3 0x100082 sbwait syslogd 37139 205916 1 0 3 0x100080 kqread resolvd 43732 297153 84218 77 3 0x100092 kqread dhcpleased 24324 510754 84218 77 3 0x100092 kqread dhcpleased 84218 317055 1 0 3 0x80 kqread dhcpleased 85621 198697 0 0 3 0x14200 bored smr 65964 138997 0 0 2 0x14200 zerothread 43902 116740 0 0 3 0x14200 aiodoned aiodoned 82935 376911 0 0 3 0x14200 syncer update 75902 286583 0 0 3 0x14200 cleaner cleaner 77160 151467 0 0 3 0x14200 reaper reaper 11054 279837 0 0 3 0x14200 pgdaemon pagedaemon 98408 136087 0 0 3 0x14200 bored viomb 12750 304498 0 0 3 0x40014200 acpi0 acpi0 77076 489268 0 0 3 0x14200 bored softnet3 48195 295627 0 0 3 0x14200 bored softnet2 38036 161791 0 0 3 0x14200 bored softnet1 68776 234812 0 0 3 0x14200 bored softnet0 13728 406775 0 0 3 0x14200 bored systqmp 17 454199 0 0 3 0x14200 bored systq 45405 61613 0 0 3 0x40014200 tmoslp softclock 7260 138010 0 0 3 0x40014200 idle0 1 146828 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10215 11141K 11594K 166960K 12752 0 pcb 17 14K 16K 166960K 194 0 rtable 253 9K 9K 166960K 471 0 pf 33 13K 21K 166960K 81 0 ifaddr 42 7K 8K 166960K 74 0 ifgroup 50 2K 2K 166960K 101 0 sysctl 3 1K 2K 166960K 6 0 counters 30 17K 18K 166960K 59 0 ioctlops 0 0K 4K 166960K 151 0 iov 0 0K 16K 166960K 41 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1430 90K 90K 166960K 2015 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 13K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 26 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 862 0 sigio 0 0K 0K 166960K 20 0 proc 60 59K 91K 166960K 547 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 84 0 in_multi 95 7K 7K 166960K 133 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 452 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 236 160K 179K 166960K 9452 0 UVM aobj 87 5K 5K 166960K 92 0 pinsyscall 38 76K 96K 166960K 1913 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 49 0 NDP 11 0K 2K 166960K 50 0 temp 65 8680K 8746K 166960K 30451 0 kqueue 15 24K 28K 166960K 129 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 223 0 220 3 0 3 3 0 8 2 rtentry 136 145 0 31 4 0 4 4 0 8 0 unpcb 144 490 0 475 6 0 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 221 0 215 7 3 4 4 0 8 3 arp 88 22 0 3 1 0 1 1 0 8 0 ipq 40 5 0 3 1 0 1 1 0 8 0 ipqe 40 202 0 198 1 0 1 1 0 8 0 inpcb 344 765 0 755 11 3 8 8 0 8 7 nd6 104 33 0 6 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 24 0 24 2 1 1 1 0 8 1 pppxif 1384 4 0 4 1 0 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 5 0 1 1 0 1 1 0 8 0 pfstate 384 3 0 0 1 0 1 1 0 8 0 pfrule 1344 4 0 4 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 564 0 111 30 0 30 30 0 8 1 art_table 32 566 0 111 4 0 4 4 0 8 0 art_node 16 141 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 9 2 1 1 1 0 8 0 semapl 112 23 0 13 1 0 1 1 0 8 0 shmpl 112 89 0 5 3 0 3 3 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2836 0 1343 95 0 95 95 0 8 0 ffsino 248 2836 0 1343 95 0 95 95 0 8 0 nchpl 144 3997 0 2317 63 0 63 63 0 8 0 rtmask 32 4 0 4 2 1 1 1 0 8 1 uvmvnodes 80 3331 0 0 68 0 68 68 0 8 0 vnodes 216 3331 0 0 186 0 186 186 0 8 0 namei 1024 13367 0 13366 2 1 1 1 0 8 0 kstatmem 264 60 0 38 2 0 2 2 0 8 0 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 12190 0 12190 9 1 8 8 1 8 8 plimitpl 152 134 0 117 1 0 1 1 0 8 0 sigapl 424 1160 0 1113 8 0 8 8 0 8 2 futexpl 64 10876 0 10870 1 0 1 1 0 8 0 knotepl 120 254563 0 254508 24 14 10 17 0 8 7 kqueuepl 184 315 0 304 4 0 4 4 0 8 3 pipepl 296 170 0 143 3 0 3 3 0 8 0 fdescpl 440 1122 0 1093 5 1 4 5 0 8 0 filepl 120 6452 0 6234 13 0 13 13 0 8 5 lockfpl 104 282 0 280 1 0 1 1 0 8 0 lockfspl 48 88 0 86 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 46 0 30 1 0 1 1 0 8 0 ucredpl 104 954 0 942 1 0 1 1 0 8 0 zombiepl 144 1470 0 1469 1 0 1 1 0 8 0 processpl 1136 1160 0 1113 5 0 5 5 0 8 0 procpl 680 2343 0 2286 9 0 9 9 0 8 3 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 528 1495 0 1467 18 8 10 16 0 8 7 mcl64k 65536 30 0 29 2 1 1 1 0 8 0 mcl16k 16384 24 0 24 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 25 0 25 2 1 1 1 0 8 1 mcl4k 4096 3492 0 3437 15 6 9 15 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 959 0 955 2 0 2 2 0 8 1 mtagpl 96 33 0 18 1 0 1 1 0 8 0 mbufpl 256 12510 0 12365 27 4 23 23 0 8 8 bufpl 280 3638 0 123 252 0 252 252 0 8 0 anonpl 24 168386 0 159833 70 0 70 70 0 187 2 amapchunkpl 152 31665 0 31040 48 11 37 37 0 158 12 amappl16 200 2754 0 2528 25 0 25 25 0 8 5 amappl15 192 27 0 27 1 1 0 1 0 8 0 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 1750 0 1721 2 0 2 2 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 98 0 87 1 0 1 1 0 8 0 amappl6 120 183 0 179 1 0 1 1 0 8 0 amappl5 112 116 0 109 1 0 1 1 0 8 0 amappl4 104 289 0 273 1 0 1 1 0 8 0 amappl3 96 6084 0 5974 4 0 4 4 0 8 0 amappl2 88 622 0 567 2 0 2 2 0 8 0 amappl1 80 10868 0 10319 14 2 12 14 0 8 0 amappl 88 8627 0 8455 5 0 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 91 0 5 2 0 2 2 0 8 0 uaddrrnd 24 1122 0 1093 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1122 0 1093 1 0 1 1 0 8 0 vmmpekpl 168 10183 0 10141 3 0 3 3 0 8 0 vmmpepl 168 74081 0 72013 103 0 103 103 0 357 7 vmsppl 360 1121 0 1093 4 1 3 4 0 8 0 rwobjpl 32 23790 0 19317 37 0 37 37 0 8 0 pdppl 4096 2250 0 2186 100 34 66 80 0 8 2 pvpl 32 475599 0 460960 167 14 153 153 0 265 20 pmappl 216 1121 0 1093 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 302 0 54 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_msgrcv(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c9db260) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9db260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8ca73106480, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_msgrcv(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff80003c952aa0,ffff80003c9db260,ffff80003c9db1b0) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c9db260) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9db260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8ca73106480, count: -3