kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff800038567500,ffff80003ca2d560,ffff80003ca2d4b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003ca2d560) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2d560) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc916fde7440, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003ca2d490 rbx 0xdeaf4152deaf41a6 rdx 0 rcx 0 rax 0xdeaf4152deaf41a6 r8 0x7f7fffffc000 r9 0 r10 0xa90a391af13714f9 r11 0x47e3c5b295385283 r12 0 r13 0xfffffd806b2bbee0 r14 0xffff80003ca2d560 r15 0 rip 0xffffffff8145c5b5 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003ca2d3a0 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=68555 pid=40022 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800038566808,0xffff800038566580 process=0xffff80002a801250 user=0xffff80003ca28000, vmspace=0xfffffd806ba4c740 estcpu=36, cpticks=21, pctcpu=0.1, user=0, sys=21, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 29001 61020 74410 0 2 0 syz-executor 29001 466223 74410 0 2 0x4000000 syz-executor 40022 435451 35721 0 2 0 syz-executor *40022 68555 35721 0 7 0x4000000 syz-executor 40022 141951 35721 0 3 0x4000080 fsleep syz-executor 40022 521556 35721 0 3 0x4000080 fsleep syz-executor 41840 327769 16772 0 3 0 vmmaplk syz-executor 41840 41733 16772 0 2 0x4000000 syz-executor 509 269205 77912 0 2 0 syz-executor 509 50396 77912 0 3 0x4000080 fsleep syz-executor 509 424011 77912 0 3 0x4000080 fsleep syz-executor 509 237143 77912 0 3 0x4000080 fsleep syz-executor 31656 325726 83650 0 2 0 syz-executor 31656 9631 83650 0 3 0x4000080 fsleep syz-executor 31656 55058 83650 0 3 0x4000080 fsleep syz-executor 31656 42179 83650 0 3 0x4000080 fsleep syz-executor 16772 61992 33251 0 2 0xc82 syz-executor 77912 42447 33251 0 2 0xc82 syz-executor 83650 505839 33251 0 2 0xc82 syz-executor 43822 244837 33251 0 2 0x2 syz-executor 16527 126866 1 0 3 0x100083 ttyin getty 48321 473037 0 0 3 0x14280 nfsidl nfsio 7730 336774 0 0 3 0x14280 nfsidl nfsio 13749 380735 0 0 3 0x14280 nfsidl nfsio 99325 387539 0 0 3 0x14280 nfsidl nfsio 28984 344708 0 0 3 0x14280 nfsidl nfsio 66462 234852 0 0 3 0x14280 nfsidl nfsio 73873 120148 0 0 3 0x14280 nfsidl nfsio 64934 19929 0 0 3 0x14280 nfsidl nfsio 13996 221244 0 0 3 0x14280 nfsidl nfsio 13717 27664 0 0 3 0x14280 nfsidl nfsio 28474 134469 0 0 3 0x14280 nfsidl nfsio 38926 91308 0 0 3 0x14280 nfsidl nfsio 37975 382239 0 0 3 0x14280 nfsidl nfsio 1516 219419 0 0 3 0x14280 nfsidl nfsio 77485 333341 0 0 3 0x14280 nfsidl nfsio 18248 319697 0 0 3 0x14280 nfsidl nfsio 41010 200259 0 0 3 0x14280 nfsidl nfsio 91272 480422 0 0 3 0x14280 nfsidl nfsio 97972 193996 0 0 3 0x14280 nfsidl nfsio 76607 462037 0 0 3 0x14280 nfsidl nfsio 47710 199733 0 0 3 0x14200 bored sosplice 74410 138463 33251 0 2 0xc82 syz-executor 65316 79228 33251 0 2 0x2 syz-executor 68495 457442 33251 0 2 0x2 syz-executor 35721 223577 33251 0 2 0xc82 syz-executor 33251 235066 27812 0 3 0x82 kqread syz-executor 27812 522222 11372 0 3 0x10008a sigsusp ksh 11372 23442 26922 0 3 0x98 kqread sshd-session 26922 495783 96678 0 3 0x92 kqread sshd-session 96678 270822 1 0 3 0x88 kqread sshd 40920 350808 44425 73 3 0x1100090 kqread syslogd 44425 55864 1 0 3 0x100082 sbwait syslogd 58728 212256 1 0 3 0x100080 kqread resolvd 77446 337863 48428 77 3 0x100092 kqread dhcpleased 84624 27313 48428 77 3 0x100092 kqread dhcpleased 48428 90265 1 0 3 0x80 kqread dhcpleased 43982 494751 0 0 3 0x14200 bored smr 13760 473080 0 0 2 0x14200 zerothread 18586 467105 0 0 3 0x14200 aiodoned aiodoned 53778 98076 0 0 3 0x14200 syncer update 96372 56470 0 0 3 0x14200 cleaner cleaner 86256 425183 0 0 3 0x14200 reaper reaper 65973 80844 0 0 3 0x14200 pgdaemon pagedaemon 82467 22206 0 0 3 0x14200 bored viomb 33099 484202 0 0 3 0x40014200 acpi0 acpi0 79590 516091 0 0 3 0x14200 bored softnet7 57597 418317 0 0 3 0x14200 bored softnet6 45403 454596 0 0 3 0x14200 bored softnet5 80513 41451 0 0 3 0x14200 bored softnet4 736 218330 0 0 3 0x14200 bored softnet3 17594 292244 0 0 3 0x14200 bored softnet2 10077 445305 0 0 3 0x14200 bored softnet1 57035 51065 0 0 3 0x14200 bored softnet0 82682 497062 0 0 3 0x14200 bored systqmp 11662 385014 0 0 3 0x14200 bored systq 62686 88567 0 0 2 0x40014200 softclock 11233 515890 0 0 3 0x40014200 idle0 1 83276 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 10191 11056K 12108K 166960K 13119 0 pcb 19 17K 21K 166960K 598 0 rtable 248 11K 11K 166960K 555 0 pf 40 15K 22K 166960K 249 0 ifaddr 43 8K 9K 166960K 140 0 ifgroup 55 2K 2K 166960K 255 0 sysctl 4 1K 9K 166960K 27 0 counters 33 17K 18K 166960K 219 0 ioctlops 0 0K 4K 166960K 569 0 iov 0 0K 32K 166960K 312 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1521 96K 96K 166960K 3266 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 35 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 154 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 110K 166960K 2087 0 sigio 0 0K 0K 166960K 16 0 proc 61 59K 100K 166960K 800 0 subproc 72 4K 4K 166960K 118 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 358 0 in_multi 101 7K 7K 166960K 212 0 ether_multi 1 0K 0K 166960K 12 0 mrt 0 0K 0K 166960K 17 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 907 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 8 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 229 152K 174K 166960K 20412 0 UVM aobj 131 4K 5K 166960K 137 0 pinsyscall 38 76K 90K 166960K 3259 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 93 0 NDP 12 0K 2K 166960K 100 0 temp 76 8644K 8900K 166960K 94209 0 kqueue 15 24K 36K 166960K 383 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 163 0 160 1 0 1 1 0 8 0 rtentry 136 194 0 95 4 0 4 4 0 8 0 unpcb 144 1632 0 1615 13 12 1 6 0 8 0 syncache 336 14 0 14 4 4 0 1 0 8 0 tcpqe 32 6 0 6 3 3 0 1 0 8 0 tcpcb 736 796 0 790 13 12 1 7 0 8 0 arp 88 30 0 12 1 0 1 1 0 8 0 ipq 40 10 0 9 2 1 1 1 0 8 0 ipqe 40 18 0 17 2 1 1 1 0 8 0 inpcb 328 2206 0 2195 18 16 2 10 0 8 0 ip6q 72 18 0 16 2 1 1 1 0 8 0 ip6af 40 27 0 25 2 1 1 1 0 8 0 nd6 104 35 0 15 1 0 1 1 0 8 0 pkpcb 40 89 0 89 3 3 0 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1072 156 0 156 5 4 1 1 0 8 1 pppxif 1384 72 0 72 3 3 0 1 0 8 0 pfstscr 40 9 0 9 2 2 0 1 0 8 0 pfanchor 1288 5 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 146 0 141 1 0 1 1 0 8 0 pfstate 384 74 0 71 1 0 1 1 0 8 0 pfrule 1344 15 0 14 2 1 1 1 0 8 0 rttmr 136 4 0 4 2 2 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 978 0 517 37 6 31 32 0 8 0 art_table 40 982 0 517 6 0 6 6 0 8 0 art_node 32 193 0 106 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 7 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 147 0 138 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 5387 0 3885 95 0 95 95 0 8 0 ffsino 256 5387 0 3885 95 0 95 95 0 8 0 nchpl 144 8253 0 7719 64 41 23 64 0 8 0 rtmask 32 13 0 13 3 2 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 30824 0 30823 4 3 1 2 0 8 0 kstatmem 264 148 0 124 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 30972 0 30972 16 15 1 8 1 8 1 plimitpl 152 796 0 776 1 0 1 1 0 8 0 sigapl 424 2362 0 2293 10 1 9 9 0 8 0 knotepl 120 296070 0 295769 40 30 10 17 0 8 0 kqueuepl 184 787 0 775 6 5 1 4 0 8 0 pipepl 304 396 0 369 13 10 3 8 0 8 0 fdescpl 448 2315 0 2286 4 0 4 4 0 8 0 filepl 120 17295 0 17076 27 17 10 15 0 8 0 lockfpl 104 1108 0 1106 3 2 1 2 0 8 0 lockfspl 48 296 0 294 1 0 1 1 0 8 0 sessionpl 144 37 0 29 1 0 1 1 0 8 0 pgrppl 48 142 0 126 1 0 1 1 0 8 0 ucredpl 104 3019 0 3005 1 0 1 1 0 8 0 zombiepl 144 3064 0 3064 3 2 1 1 0 8 1 processpl 1168 2363 0 2293 6 0 6 6 0 8 0 procpl 664 5593 0 5512 9 1 8 8 0 8 0 sosppl 168 6 0 6 2 2 0 1 0 8 0 sockpl 552 4408 0 4377 33 30 3 13 0 8 0 mcl64k 65536 258 0 258 6 5 1 2 0 8 1 mcl16k 16384 4 0 4 2 2 0 1 0 8 0 mcl12k 12288 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 2 0 2 2 2 0 1 0 8 0 mcl8k 8192 19 0 18 3 2 1 1 0 8 0 mcl4k 4096 5122 0 5069 14 6 8 13 0 8 0 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 3217 0 3216 8 7 1 3 0 8 0 mtagpl 96 6 0 6 2 2 0 1 0 8 0 mbufpl 256 25343 0 25222 80 67 13 76 0 8 0 bufpl 280 10625 0 4397 446 0 446 446 0 8 0 anonpl 24 302868 0 295499 121 62 59 69 0 187 0 amapchunkpl 152 67607 0 67046 49 23 26 29 0 158 1 amappl16 200 5921 0 5725 63 46 17 27 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 207 0 197 1 0 1 1 0 8 0 amappl13 176 9 0 9 2 2 0 1 0 8 0 amappl12 168 3006 0 2979 3 1 2 3 0 8 0 amappl11 160 74 0 64 1 0 1 1 0 8 0 amappl10 152 4 0 3 2 1 1 1 0 8 0 amappl9 144 253 0 253 1 1 0 1 0 8 0 amappl8 136 31 0 29 1 0 1 1 0 8 0 amappl7 128 199 0 189 1 0 1 1 0 8 0 amappl6 120 231 0 227 1 0 1 1 0 8 0 amappl5 112 135 0 128 1 0 1 1 0 8 0 amappl4 104 310 0 294 1 0 1 1 0 8 0 amappl3 96 14066 0 13964 4 0 4 4 0 8 0 amappl2 88 755 0 699 2 0 2 2 0 8 0 amappl1 80 17801 0 17252 17 4 13 14 0 8 0 amappl 88 19286 0 19122 6 1 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 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 255 0 255 2 2 0 1 0 8 0 dma64 64 9 0 9 2 2 0 1 0 8 0 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2314 0 2286 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2313 0 2286 1 0 1 1 0 8 0 vmmpekpl 168 19478 0 19423 3 0 3 3 0 8 0 vmmpepl 168 148824 0 146856 123 26 97 103 0 357 0 vmsppl 368 2313 0 2286 4 1 3 4 0 8 0 rwobjpl 40 44136 0 37053 74 0 74 74 0 8 0 pdppl 4096 4635 0 4572 119 52 67 77 0 8 4 pvpl 32 944830 0 932492 212 81 131 138 0 265 0 pmappl 216 2313 0 2286 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 506 0 171 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff800038567500,ffff80003ca2d560,ffff80003ca2d4b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003ca2d560) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2d560) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc916fde7440, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff800038567500,ffff80003ca2d560,ffff80003ca2d4b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003ca2d560) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003ca2d560) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc916fde7440, count: -3