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(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c94ddc0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c94ddc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf649b3c5370, count: -3 ddb> show registers rdi 0 rsi 0x200000001208 rbp 0xffff80003c94dce0 rbx 0 rdx 0xffff80000143c880 rcx 0 rax 0xa r8 0x7f7fffffc000 r9 0 r10 0x6e13d78ee17bbd11 r11 0x398f87bf58a255ff r12 0xfffffd80614adf28 r13 0xdeafbeaddeafbead r14 0xffff800001498000 r15 0xa rip 0xffffffff82dd7732 sys_msgrcv+0x3f2 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003c94dc40 ss 0 sys_msgrcv+0x3f2: movq 0x10(%r13),%rdi ddb> show proc PROC (syz-executor) tid=140775 pid=25782 tcnt=5 stat=onproc flags process=10 proc=4000000 runpri=36, usrpri=80, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7f6538,0xffff800031505c68 process=0xffff8000ffff9238 user=0xffff80003c948000, vmspace=0xfffffd806c0d5450 estcpu=30, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41114 313888 31300 0 2 0 syz-executor 41114 332023 31300 0 2 0x4000000 syz-executor 41114 473741 31300 0 3 0x4000080 fsleep syz-executor 41114 135846 31300 0 2 0x4000000 syz-executor 95274 450314 20971 0 2 0 syz-executor 95274 110483 20971 0 3 0x4000080 fsleep syz-executor 67744 181864 82210 0 2 0 syz-executor 67744 425566 82210 0 2 0x4000000 syz-executor 51954 58000 32223 0 2 0 syz-executor 51954 386914 32223 0 3 0x4000080 fsleep syz-executor 51954 3585 32223 0 2 0x4000000 syz-executor 25782 218112 69792 0 2 0x10 syz-executor *25782 140775 69792 0 7 0x4000010 syz-executor 25782 461155 69792 0 3 0x4000090 fsleep syz-executor 25782 416136 69792 0 2 0x4000010 syz-executor 25782 378911 69792 0 2 0x4000010 syz-executor 35976 256239 37421 -1 2 0x10 syz-executor 35976 211296 37421 -1 2 0x4000010 syz-executor 35976 18079 37421 -1 3 0x4000090 fsleep syz-executor 47597 235664 0 0 3 0x14200 acct acct 78169 49217 0 0 3 0x14200 bored sosplice 20971 316279 41751 0 3 0x82 nanoslp syz-executor 34242 249490 41751 0 2 0x2 syz-executor 31300 266812 41751 0 3 0x82 nanoslp syz-executor 32223 80676 41751 0 3 0x82 nanoslp syz-executor 37421 453648 41751 0 3 0x82 nanoslp syz-executor 82210 366247 41751 0 3 0x82 nanoslp syz-executor 90857 150261 41751 0 2 0x2 syz-executor 69792 378077 41751 0 3 0x82 nanoslp syz-executor 41751 59499 2538 0 3 0x82 kqread syz-executor 2538 244310 10544 0 3 0x10008a sigsusp ksh 10544 353604 77998 0 3 0x98 kqread sshd-session 77998 251018 92760 0 3 0x92 kqread sshd-session 25308 124054 1 0 3 0x100083 ttyopn getty 92760 274276 1 0 3 0x88 kqread sshd 47686 36685 59289 73 3 0x1100090 kqread syslogd 59289 470690 1 0 3 0x100082 sbwait syslogd 7259 275256 1 0 3 0x100080 kqread resolvd 31623 35197 24193 77 3 0x100092 kqread dhcpleased 8511 308729 24193 77 3 0x100092 kqread dhcpleased 24193 84597 1 0 3 0x80 kqread dhcpleased 85810 5374 0 0 3 0x14200 bored smr 42963 201646 0 0 2 0x14200 zerothread 2073 463005 0 0 3 0x14200 aiodoned aiodoned 6258 261298 0 0 3 0x14200 syncer update 98202 285968 0 0 3 0x14200 cleaner cleaner 91627 38759 0 0 3 0x14200 reaper reaper 35157 376831 0 0 3 0x14200 pgdaemon pagedaemon 66456 128606 0 0 3 0x14200 bored viomb 91186 290715 0 0 3 0x40014200 acpi0 acpi0 55171 379201 0 0 3 0x14200 bored softnet3 3683 267000 0 0 3 0x14200 bored softnet2 79136 489385 0 0 3 0x14200 bored softnet1 1652 475610 0 0 3 0x14200 bored softnet0 21586 73331 0 0 3 0x14200 bored systqmp 51095 34586 0 0 3 0x14200 bored systq 67013 471992 0 0 3 0x40014200 tmoslp softclock 46322 291631 0 0 3 0x40014200 idle0 1 434398 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 10203 11104K 11462K 166960K 11675 0 pcb 18 12K 12K 166960K 85 0 rtable 180 6K 7K 166960K 394 0 pf 26 12K 14K 166960K 51 0 ifaddr 34 6K 7K 166960K 55 0 ifgroup 42 1K 2K 166960K 67 0 sysctl 3 1K 9K 166960K 10 0 counters 30 17K 17K 166960K 42 0 ioctlops 0 0K 4K 166960K 165 0 iov 0 0K 16K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1336 84K 85K 166960K 1819 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 413 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 116K 166960K 492 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 50 0 in_multi 77 5K 7K 166960K 117 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 6 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 376 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 220 151K 163K 166960K 5266 0 UVM aobj 12 2K 2K 166960K 12 0 pinsyscall 38 76K 96K 166960K 1455 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 20 0 NDP 9 0K 1K 166960K 34 0 temp 44 8680K 8747K 166960K 10558 0 kqueue 13 20K 30K 166960K 77 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 58 0 55 1 0 1 1 0 8 0 rtentry 136 120 0 41 4 0 4 4 0 8 0 unpcb 144 284 0 266 6 5 1 6 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 8 0 8 1 0 1 1 0 8 1 tcpcb 736 73 0 64 1 0 1 1 0 8 0 arp 88 18 0 4 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 328 285 0 270 2 0 2 2 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 104 26 0 7 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 9 0 9 1 0 1 1 0 8 1 pfrule 1344 1 0 1 1 1 0 1 0 8 0 rttmr 136 2 0 2 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 556 0 199 31 5 26 31 0 8 2 art_table 32 557 0 199 4 0 4 4 0 8 0 art_node 16 118 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2298 0 805 95 0 95 95 0 8 0 ffsino 248 2298 0 805 95 0 95 95 0 8 0 nchpl 144 2900 0 1219 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 2514 0 0 52 0 52 52 0 8 0 vnodes 216 2514 0 0 140 0 140 140 0 8 0 namei 1024 9874 0 9871 5 2 3 3 0 8 2 kstatmem 264 36 0 18 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 8021 0 8021 3 2 1 3 1 8 1 plimitpl 152 127 0 111 1 0 1 1 0 8 0 sigapl 424 697 0 650 7 1 6 7 0 8 0 knotepl 120 14026 0 13979 24 14 10 17 0 8 8 kqueuepl 184 97 0 87 1 0 1 1 0 8 0 pipepl 296 124 0 97 3 0 3 3 0 8 0 fdescpl 440 679 0 650 5 1 4 5 0 8 0 filepl 120 4448 0 4227 20 12 8 20 0 8 0 lockfpl 104 115 0 113 1 0 1 1 0 8 0 lockfspl 48 53 0 51 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 1255 0 1242 1 0 1 1 0 8 0 zombiepl 144 732 0 732 1 0 1 1 0 8 1 processpl 1160 697 0 650 4 0 4 4 0 8 0 procpl 656 1140 0 1080 6 0 6 6 0 8 1 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 528 639 0 603 11 8 3 11 0 8 0 mcl64k 65536 7 0 7 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 1 1 0 1 0 8 0 mcl4k 4096 2810 0 2759 16 8 8 15 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 534 0 530 4 2 2 3 0 8 1 mtagpl 96 88 0 8 2 0 2 2 0 8 0 mbufpl 256 8199 0 7972 78 55 23 77 0 8 8 bufpl 280 2651 0 121 181 0 181 181 0 8 0 anonpl 24 130409 0 127307 33 0 33 33 0 187 9 amapchunkpl 152 16546 0 16086 25 0 25 25 0 158 5 amappl16 200 2380 0 2350 6 2 4 6 0 8 0 amappl15 192 10 0 9 1 0 1 1 0 8 0 amappl14 184 109 0 99 1 0 1 1 0 8 0 amappl13 176 7 0 7 2 1 1 1 0 8 1 amappl12 168 1290 0 1262 3 1 2 3 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 247 0 247 1 1 0 1 0 8 0 amappl8 136 42 0 41 1 0 1 1 0 8 0 amappl7 128 100 0 90 1 0 1 1 0 8 0 amappl6 120 172 0 168 1 0 1 1 0 8 0 amappl5 112 111 0 105 1 0 1 1 0 8 0 amappl4 104 298 0 282 1 0 1 1 0 8 0 amappl3 96 3005 0 2902 3 0 3 3 0 8 0 amappl2 88 624 0 570 2 0 2 2 0 8 0 amappl1 80 9532 0 8983 15 1 14 14 0 8 2 amappl 88 4571 0 4414 5 0 5 5 0 92 1 dma65536 65536 1 0 1 1 0 1 1 0 8 1 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 7 0 7 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 679 0 650 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 679 0 650 1 0 1 1 0 8 0 vmmpekpl 168 7048 0 7024 2 0 2 2 0 8 0 vmmpepl 168 49287 0 47475 91 2 89 89 0 357 3 vmsppl 360 678 0 650 4 1 3 4 0 8 0 rwobjpl 32 18135 0 14764 28 0 28 28 0 8 0 pdppl 4096 1364 0 1300 102 34 68 82 0 8 4 pvpl 32 321893 0 313528 103 9 94 103 0 265 15 pmappl 216 678 0 650 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 346 0 111 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_msgrcv(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c94ddc0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c94ddc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf649b3c5370, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_msgrcv(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 msg_copyout sys/kern/sysv_msg.c:639 [inline] sys_msgrcv(ffff800031504a68,ffff80003c94ddc0,ffff80003c94dd10) at sys_msgrcv+0x3f2 sys/kern/sysv_msg.c:349 syscall(ffff80003c94ddc0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c94ddc0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf649b3c5370, count: -3