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(ffff80003c93bca8,ffff80002f0f1df0,ffff80002f0f1d40) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002f0f1df0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1df0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2e0befb9f0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002f0f1d20 rbx 0xdeafbeaddeafbead rdx 0 rcx 0 rax 0xdeafbeaddeafbead r8 0x7f7fffffc000 r9 0 r10 0x4f266e5dab55ad35 r11 0x813639a34642ba0a r12 0 r13 0xfffffd806b5e5a10 r14 0xffff80002f0f1df0 r15 0 rip 0xffffffff81fff105 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002f0f1c30 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=427856 pid=12881 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c93aa80,0xffff80003c93b788 process=0xffff8000ffff9f98 user=0xffff80002f0ec000, vmspace=0xfffffd806c99cd00 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 85733 459300 49991 0 2 0 syz-executor 85733 284098 49991 0 3 0x4000080 fsleep syz-executor 24251 151401 36311 0 2 0 syz-executor 7744 475009 27897 0 2 0 syz-executor 7744 125178 27897 0 2 0x4000000 syz-executor 7744 483336 27897 0 2 0x4000000 syz-executor 60396 380494 7890 0 2 0 syz-executor 60396 242247 7890 0 2 0x4000000 syz-executor 12881 356331 66904 0 2 0 syz-executor *12881 427856 66904 0 7 0x4000000 syz-executor 12881 450274 66904 0 3 0x4000080 fsleep syz-executor 5832 206514 55815 0 2 0 syz-executor 5832 227885 55815 0 2 0x4000000 syz-executor 5832 420755 55815 0 2 0x4000000 syz-executor 96926 141574 5026 0 2 0 syz-executor 96926 150193 5026 0 3 0x4000080 fsleep syz-executor 96926 45210 5026 0 2 0x4000000 syz-executor 49991 29567 93998 0 3 0x82 nanoslp syz-executor 36311 328686 93998 0 3 0x82 nanoslp syz-executor 7890 523990 93998 0 3 0x82 nanoslp syz-executor 55815 168747 93998 0 3 0x82 nanoslp syz-executor 66904 189129 93998 0 3 0x82 nanoslp syz-executor 5026 144680 93998 0 3 0x82 nanoslp syz-executor 27897 398368 93998 0 3 0x82 nanoslp syz-executor 71400 384885 93998 0 2 0x2 syz-executor 93998 243161 53781 0 3 0x82 kqread syz-executor 53781 171035 13335 0 3 0x10008a sigsusp ksh 13335 144947 31464 0 3 0x98 kqread sshd-session 31464 67449 29420 0 3 0x92 kqread sshd-session 40645 495401 1 0 3 0x100083 ttyopn getty 29420 183256 1 0 3 0x88 kqread sshd 34973 23223 53443 73 3 0x1100090 kqread syslogd 53443 23001 1 0 3 0x100082 sbwait syslogd 32333 295922 1 0 3 0x100080 kqread resolvd 90706 436809 92731 77 3 0x100092 kqread dhcpleased 78908 209119 92731 77 3 0x100092 kqread dhcpleased 92731 262835 1 0 3 0x80 kqread dhcpleased 92298 460422 0 0 3 0x14200 bored smr 30640 243147 0 0 2 0x14200 zerothread 35436 267597 0 0 3 0x14200 aiodoned aiodoned 14248 143683 0 0 3 0x14200 syncer update 46125 115061 0 0 3 0x14200 cleaner cleaner 93941 56116 0 0 3 0x14200 reaper reaper 23467 433011 0 0 3 0x14200 pgdaemon pagedaemon 24917 350217 0 0 3 0x14200 bored viomb 58202 478437 0 0 3 0x40014200 acpi0 acpi0 56918 220839 0 0 3 0x14200 bored softnet0 89198 350406 0 0 3 0x14200 bored systqmp 58023 482845 0 0 3 0x14200 bored systq 69185 234328 0 0 3 0x40014200 tmoslp softclock 82661 398039 0 0 3 0x40014200 idle0 1 81058 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 11061 12113K 12569K 166960K 13486 0 pcb 18 16K 19K 166960K 233 0 rtable 230 8K 9K 166960K 479 0 pf 31 13K 14K 166960K 85 0 ifaddr 43 8K 8K 166960K 82 0 ifgroup 50 2K 2K 166960K 116 0 sysctl 3 1K 9K 166960K 9 0 counters 33 17K 18K 166960K 68 0 ioctlops 0 0K 4K 166960K 126 0 iov 0 0K 16K 166960K 44 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1426 90K 90K 166960K 2089 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 37 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 756 0 sigio 0 0K 0K 166960K 15 0 proc 60 59K 108K 166960K 540 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 81 0 in_multi 98 7K 7K 166960K 157 0 ether_multi 1 0K 0K 166960K 12 0 mrt 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 483 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 231 160K 179K 166960K 8583 0 UVM aobj 16 8K 8K 166960K 19 0 pinsyscall 39 78K 96K 166960K 1857 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 25 0 NDP 11 0K 2K 166960K 51 0 temp 63 8672K 8920K 166960K 28647 0 kqueue 13 20K 28K 166960K 139 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 83 0 80 1 0 1 1 0 8 0 rtentry 136 142 0 46 4 0 4 4 0 8 0 unpcb 144 577 0 559 4 3 1 4 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 235 0 228 7 0 7 7 0 8 6 arp 96 23 0 6 1 0 1 1 0 8 0 ipq 40 3 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 0 1 0 1 1 0 8 0 inpcb 328 773 0 762 19 11 8 12 0 8 6 nd6 112 29 0 4 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 27 0 27 2 1 1 1 0 8 1 pppxif 1384 4 0 4 1 1 0 1 0 8 0 pfstkey 128 1 0 1 1 1 0 1 0 8 0 pfstate 384 1 0 1 1 1 0 1 0 8 0 pfrule 1360 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 603 0 193 32 2 30 31 0 8 2 art_table 40 605 0 193 5 0 5 5 0 8 0 art_node 32 141 0 56 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 12 1 0 1 1 0 8 0 semapl 112 33 0 24 1 0 1 1 0 8 0 shmpl 112 13 0 3 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 2806 0 1306 95 0 95 95 0 8 0 ffsino 256 2806 0 1306 95 0 95 95 0 8 0 nchpl 144 3834 0 2142 64 0 64 64 0 8 0 rtmask 32 7 0 7 1 1 0 1 0 8 0 vnodes 216 3317 0 0 185 0 185 185 0 8 0 namei 1024 13059 0 13057 2 1 1 2 0 8 0 vcpupl 3904 3 0 0 1 0 1 1 0 8 0 vmpool 808 3 0 0 1 0 1 1 0 8 0 kstatmem 264 66 0 44 2 0 2 2 0 8 0 scsiplug 72 5 0 5 2 1 1 1 0 8 1 scxspl 216 12146 0 12146 10 2 8 8 1 8 8 plimitpl 152 459 0 442 1 0 1 1 0 8 0 sigapl 424 1053 0 1010 9 1 8 8 0 8 3 knotepl 120 40672 0 40625 24 14 10 16 0 8 8 kqueuepl 184 272 0 263 4 3 1 4 0 8 0 pipepl 304 223 0 196 3 0 3 3 0 8 0 fdescpl 448 1019 0 989 5 1 4 5 0 8 0 filepl 120 6164 0 5954 13 2 11 11 0 8 3 lockfpl 104 408 0 406 2 0 2 2 0 8 1 lockfspl 48 97 0 95 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 37 0 21 1 0 1 1 0 8 0 ucredpl 104 1278 0 1266 1 0 1 1 0 8 0 zombiepl 144 1211 0 1211 1 0 1 1 0 8 1 processpl 1152 1053 0 1010 5 0 5 5 0 8 1 procpl 664 2065 0 2010 8 0 8 8 0 8 3 sosppl 176 4 0 4 1 1 0 1 0 8 0 sockpl 552 1458 0 1426 17 9 8 12 0 8 5 mcl64k 65536 78 0 77 1 0 1 1 0 8 0 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 3245 0 3195 14 7 7 14 0 8 0 mcl2k 2048 906 0 902 4 2 2 3 0 8 1 mtagpl 96 25 0 7 1 0 1 1 0 8 0 mbufpl 256 11022 0 10823 16 0 16 16 0 8 0 bufpl 280 3683 0 122 255 0 255 255 0 8 0 anonpl 24 165948 0 162508 66 12 54 54 0 187 29 amapchunkpl 152 27709 0 27231 39 5 34 34 0 158 11 amappl16 200 2808 0 2767 18 6 12 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 8 0 8 1 1 0 1 0 8 0 amappl13 176 421 0 420 1 0 1 1 0 8 0 amappl12 168 1369 0 1331 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 56 0 46 1 0 1 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 138 0 136 1 0 1 1 0 8 0 amappl7 128 93 0 92 1 0 1 1 0 8 0 amappl6 120 277 0 265 1 0 1 1 0 8 0 amappl5 112 69 0 62 1 0 1 1 0 8 0 amappl4 104 388 0 365 1 0 1 1 0 8 0 amappl3 96 4767 0 4679 3 0 3 3 0 8 0 amappl2 88 1140 0 1070 2 0 2 2 0 8 0 amappl1 80 11860 0 11327 13 1 12 13 0 8 0 amappl 88 7753 0 7591 5 0 5 5 0 92 0 uvmvnodes 80 113 0 0 3 0 3 3 0 8 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 dma2048 2048 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 256 0 256 2 1 1 1 0 8 1 dma64 64 7 0 7 2 1 1 1 0 8 1 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 18 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1018 0 989 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1018 0 989 1 0 1 1 0 8 0 vmmpekpl 168 10052 0 10019 2 0 2 2 0 8 0 vmmpepl 168 70793 0 69010 94 7 87 87 0 357 7 vmsppl 368 1018 0 989 4 1 3 4 0 8 0 rwobjpl 40 20870 0 19902 12 0 12 12 0 8 1 pdppl 4096 2051 0 1981 108 38 70 83 0 8 0 pvpl 32 444101 0 435516 135 23 112 112 0 265 26 pmappl 216 1021 0 989 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 400 0 59 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003c93bca8,ffff80002f0f1df0,ffff80002f0f1d40) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002f0f1df0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1df0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2e0befb9f0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003c93bca8,ffff80002f0f1df0,ffff80002f0f1d40) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002f0f1df0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f0f1df0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2e0befb9f0, count: -3