kernel: protection fault trap, code=0 Stopped at sys_semop+0x2f7: movzwl 0(%r13),%ebx ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80002a6a52b0,ffff80002a67baa0,ffff80002a67b9f0) at sys_semop+0x2f7 sys/kern/sysv_sem.c:615 syscall(ffff80002a67baa0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ce99dd78a0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a67b9c0 rbx 0 rdx 0 rcx 0 rax 0xffff80002a6a52b0 r8 0x7f7fffffc000 r9 0xfffffd807f7d7680 r10 0x4448735f02ca9369 r11 0x16ac73b646af939f r12 0 r13 0xdead4110dead4110 r14 0xffff80002a67baa0 r15 0xfffffd806b3daee0 rip 0xffffffff81dc89a7 sys_semop+0x2f7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a67b8c0 ss 0x10 sys_semop+0x2f7: movzwl 0(%r13),%ebx ddb> show proc PROC (syz-executor.0) tid=205790 pid=23667 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=4, usrpri=50, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a6a4d60,0xffff80002a6a4578 process=0xffff80002a64e9f0 user=0xffff80002a676000, vmspace=0xfffffd8071567428 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23667 260368 32700 0 2 0x480 syz-executor.0 23667 384950 32700 0 3 0x4000080 fsleep syz-executor.0 *23667 205790 32700 0 7 0x4000000 syz-executor.0 23667 222017 32700 0 3 0x4000080 fsleep syz-executor.0 32700 49080 4547 0 2 0x482 syz-executor.0 4547 165175 1660 0 3 0x2000082 wait syz-execprog 4547 37164 1660 0 3 0x6000082 thrsleep syz-execprog 4547 131729 1660 0 3 0x6000082 thrsleep syz-execprog 4547 329867 1660 0 3 0x6000082 kqread syz-execprog 4547 352880 1660 0 3 0x6000082 thrsleep syz-execprog 4547 389297 1660 0 3 0x6000082 thrsleep syz-execprog 4547 330020 1660 0 3 0x6000082 thrsleep syz-execprog 4547 425826 1660 0 3 0x6000082 thrsleep syz-execprog 4547 47373 1660 0 3 0x6000082 thrsleep syz-execprog 1660 351194 59287 0 3 0x10008a sigsusp ksh 59287 57631 22120 0 3 0x9a kqread sshd 59865 376955 1 0 3 0x100083 ttyin getty 22120 423767 1 0 3 0x88 kqread sshd 90468 412357 82459 73 3 0x1100090 kqread syslogd 82459 311820 1 0 3 0x100082 netio syslogd 26106 83134 1 0 3 0x100080 kqread resolvd 77055 293799 95443 77 3 0x100092 kqread dhcpleased 13079 216107 95443 77 3 0x100092 kqread dhcpleased 95443 403598 1 0 3 0x80 kqread dhcpleased 12609 471860 0 0 3 0x14200 bored smr 21658 414714 0 0 3 0x14200 pgzero zerothread 55791 116801 0 0 3 0x14200 aiodoned aiodoned 79410 37675 0 0 3 0x14200 syncer update 21052 510412 0 0 3 0x14200 cleaner cleaner 44528 26323 0 0 3 0x14200 reaper reaper 29981 503807 0 0 3 0x14200 pgdaemon pagedaemon 20430 221478 0 0 3 0x14200 bored viomb 17472 302025 0 0 3 0x40014200 acpi0 acpi0 1398 131501 0 0 3 0x14200 bored softnet3 37997 221393 0 0 3 0x14200 bored softnet2 97404 264070 0 0 3 0x14200 bored softnet1 30345 388104 0 0 3 0x14200 bored softnet0 59506 256492 0 0 3 0x14200 bored systqmp 20498 290000 0 0 3 0x14200 bored systq 31853 288819 0 0 3 0x40014200 tmoslp softclock 57425 330800 0 0 3 0x40014200 idle0 1 137512 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 10140 6384K 6413K 166960K 11221 0 pcb 15 10K 10K 166960K 15 0 rtable 80 2K 2K 166960K 170 0 pf 15 6K 6K 166960K 18 0 ifaddr 15 6K 6K 166960K 19 0 ifgroup 22 1K 1K 166960K 27 0 counters 23 16K 16K 166960K 24 0 ioctlops 0 0K 2K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1187 74K 74K 166960K 1200 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 3 8K 12K 166960K 35 0 proc 55 58K 67K 166960K 302 0 subproc 0 0K 0K 166960K 13 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 22 1K 1K 166960K 33 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 313 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 156 14K 15K 166960K 3515 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 6 0K 0K 166960K 9 0 temp 1 6748K 6812K 166960K 3914 0 kqueue 12 18K 18K 166960K 34 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 24 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 12 1 0 1 1 0 8 0 unpcb 144 45 0 32 1 0 1 1 0 8 0 syncache 336 8 0 8 1 0 1 1 0 8 1 tcpqe 32 341 0 341 1 0 1 1 0 8 1 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 88 6 0 2 1 0 1 1 0 8 0 inpcb 360 38 0 32 1 0 1 1 0 8 0 nd6 104 6 0 3 1 0 1 1 0 8 0 kcovpl 48 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 193 0 48 10 0 10 10 0 8 0 art_table 32 194 0 48 2 0 2 2 0 8 0 art_node 16 44 0 14 1 0 1 1 0 8 0 semapl 112 1 0 1 1 0 1 1 0 8 1 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1476 0 70 88 0 88 88 0 8 0 ffsino 240 1476 0 70 83 0 83 83 0 8 0 nchpl 144 1735 0 97 61 0 61 61 0 8 0 uvmvnodes 80 1498 0 0 31 0 31 31 0 8 0 vnodes 216 1498 0 0 84 0 84 84 0 8 0 namei 1024 6353 0 6353 3 0 3 3 0 8 3 kstatmem 264 10 0 2 1 0 1 1 0 8 0 scxspl 216 7711 0 7711 8 0 8 8 1 8 8 plimitpl 152 42 0 34 1 0 1 1 0 8 0 sigapl 424 383 0 352 5 0 5 5 0 8 1 futexpl 64 7 0 5 1 0 1 1 0 8 0 knotepl 120 7351 0 7315 2 0 2 2 0 8 0 kqueuepl 184 30 0 22 1 0 1 1 0 8 0 pipepl 288 154 0 147 1 0 1 1 0 8 0 fdescpl 432 367 0 352 3 0 3 3 0 8 1 filepl 120 1822 0 1756 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 25 0 16 1 0 1 1 0 8 0 ucredpl 104 93 0 83 1 0 1 1 0 8 0 zombiepl 144 352 0 352 1 0 1 1 0 8 1 processpl 1072 383 0 352 3 0 3 3 0 8 0 procpl 680 405 0 363 5 0 5 5 0 8 1 sockpl 488 107 0 85 3 0 3 3 0 8 0 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 16 0 16 1 0 1 1 0 8 1 mcl2k 2048 23951 0 23898 66 51 15 47 0 8 8 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 38330 0 38263 31 18 13 25 0 8 8 bufpl 280 4992 0 139 347 0 347 347 0 8 0 anonpl 24 317757 0 314285 52 0 52 52 0 188 21 amapchunkpl 152 14498 0 14125 25 0 25 25 0 158 9 amappl16 200 8572 0 8508 5 0 5 5 0 8 1 amappl15 192 32 0 32 1 0 1 1 0 8 1 amappl14 184 201 0 190 2 0 2 2 0 8 1 amappl13 176 39 0 38 1 0 1 1 0 8 0 amappl12 168 931 0 915 2 0 2 2 0 8 1 amappl11 160 72 0 62 1 0 1 1 0 8 0 amappl10 152 37 0 35 1 0 1 1 0 8 0 amappl9 144 362 0 361 1 0 1 1 0 8 0 amappl8 136 202 0 183 2 0 2 2 0 8 1 amappl7 128 212 0 198 2 0 2 2 0 8 0 amappl6 120 188 0 181 1 0 1 1 0 8 0 amappl5 112 179 0 170 1 0 1 1 0 8 0 amappl4 104 526 0 506 2 0 2 2 0 8 1 amappl3 96 3925 0 3875 2 0 2 2 0 8 0 amappl2 88 960 0 905 3 0 3 3 0 8 0 amappl1 80 13565 0 13108 24 7 17 22 0 8 5 amappl 88 2933 0 2835 4 0 4 4 0 92 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 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 367 0 352 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 367 0 352 1 0 1 1 0 8 0 vmmpekpl 168 13190 0 13165 2 0 2 2 0 8 0 vmmpepl 168 59468 0 58268 110 0 110 110 0 357 53 vmsppl 352 366 0 352 3 0 3 3 0 8 1 rwobjpl 24 29495 0 27189 19 0 19 19 0 8 1 pdppl 4096 740 0 704 92 40 52 60 0 8 16 pvpl 32 610489 0 602852 335 37 298 335 0 265 227 pmappl 216 366 0 352 2 0 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 390 0 109 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a6a52b0,ffff80002a67baa0,ffff80002a67b9f0) at sys_semop+0x2f7 sys/kern/sysv_sem.c:615 syscall(ffff80002a67baa0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ce99dd78a0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a6a52b0,ffff80002a67baa0,ffff80002a67b9f0) at sys_semop+0x2f7 sys/kern/sysv_sem.c:615 syscall(ffff80002a67baa0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5ce99dd78a0, count: -3