kernel: protection fault trap, code=0 Stopped at sys_semop+0x353: 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(ffff80002a63e020,ffff80002a6fb040,ffff80002a6faf90) at sys_semop+0x353 sys/kern/sysv_sem.c:615 syscall(ffff80002a6fb040) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb63a7b1a490, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a6faf60 rbx 0 rdx 0 rcx 0 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0xfffffd807f7d7548 r10 0x502cb3b93c6437d9 r11 0x411f2f58f7026f98 r12 0xffff800000dc9fc4 r13 0 r14 0xffff80002a6fb040 r15 0 rip 0xffffffff822f3603 sys_semop+0x353 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a6fae40 ss 0x10 sys_semop+0x353: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor.0) tid=451920 pid=38980 tcnt=4 stat=onproc flags process=8000000 proc=4000000 runpri=4, usrpri=86, slppri=4, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a63e7d0,0xffff80002a63e2c0 process=0xffff80002a65e1d0 user=0xffff80002a6f6000, vmspace=0xfffffd806f2d9008 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 38980 394994 34809 0 2 0x8000480 syz-executor.0 38980 485502 34809 0 3 0xc000080 fsleep syz-executor.0 *38980 451920 34809 0 7 0xc000000 syz-executor.0 38980 328860 34809 0 3 0xc000080 fsleep syz-executor.0 34809 370254 58857 0 2 0x8000482 syz-executor.0 58857 85365 7297 0 3 0x1a000082 wait syz-execprog 58857 362850 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 513863 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 208193 7297 0 3 0x1e000082 kqread syz-execprog 58857 500554 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 483344 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 346383 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 69345 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 27519 7297 0 3 0x1e000082 thrsleep syz-execprog 58857 322077 7297 0 3 0x1e000082 thrsleep syz-execprog 7297 354421 66730 0 3 0x810008a sigsusp ksh 66730 387664 60810 0 3 0x1800009a kqread sshd 8631 363574 1 0 3 0x18100083 ttyin getty 60810 272664 1 0 3 0x18000088 kqread sshd 72044 41424 31569 73 3 0x19100090 kqread syslogd 31569 452163 1 0 3 0x18100082 sbwait syslogd 25764 323653 1 0 3 0x18100080 kqread resolvd 16269 281571 63173 77 3 0x18100092 kqread dhcpleased 40097 435316 63173 77 3 0x18100092 kqread dhcpleased 63173 135545 1 0 3 0x18000080 kqread dhcpleased 38274 401023 0 0 3 0x14200 bored smr 8421 164801 0 0 3 0x14200 pgzero zerothread 97971 430266 0 0 3 0x14200 aiodoned aiodoned 25740 284579 0 0 3 0x14200 syncer update 23164 119945 0 0 3 0x14200 cleaner cleaner 88588 445100 0 0 3 0x14200 reaper reaper 73324 210476 0 0 3 0x14200 pgdaemon pagedaemon 88240 127467 0 0 3 0x14200 bored viomb 47051 404760 0 0 3 0x40014200 acpi0 acpi0 5702 8487 0 0 3 0x14200 bored softnet3 91024 215359 0 0 3 0x14200 bored softnet2 91508 298319 0 0 3 0x14200 bored softnet1 87667 240607 0 0 3 0x14200 bored softnet0 10047 141718 0 0 3 0x14200 bored systqmp 871 466197 0 0 3 0x14200 bored systq 13995 461151 0 0 3 0x40014200 tmoslp softclock 67092 446070 0 0 3 0x40014200 idle0 1 103194 0 0 3 0x8000082 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 10137 6384K 6413K 166960K 11218 0 pcb 17 12K 12K 166960K 17 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 1272 80K 80K 166960K 1288 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 167 15K 15K 166960K 3549 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 24 48K 100K 166960K 1143 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 6796K 6860K 166960K 3827 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 1 0 1 1 0 1 1 0 8 1 tcpcb 808 12 0 8 1 0 1 1 0 8 0 arp 88 6 0 2 1 0 1 1 0 8 0 inpcb 352 38 0 31 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 192 0 48 9 0 9 9 0 8 0 art_table 32 193 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 1556 0 73 93 0 93 93 0 8 0 ffsino 240 1556 0 73 88 0 88 88 0 8 0 nchpl 144 1819 0 97 64 0 64 64 0 8 0 uvmvnodes 80 1578 0 0 33 0 33 33 0 8 0 vnodes 216 1578 0 0 88 0 88 88 0 8 0 namei 1024 6547 0 6547 2 0 2 2 0 8 2 kstatmem 264 10 0 2 1 0 1 1 0 8 0 scxspl 216 8109 0 8109 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 6907 0 6871 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 4 0 4 4 0 8 1 filepl 120 1856 0 1790 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 1080 383 0 352 3 0 3 3 0 8 0 procpl 656 406 0 363 5 0 5 5 0 8 0 sockpl 504 107 0 84 4 0 4 4 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 24661 0 24552 75 49 26 57 0 8 8 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 39148 0 39024 34 18 16 30 0 8 8 bufpl 280 5157 0 183 356 0 356 356 0 8 0 anonpl 24 350767 0 347278 50 0 50 50 0 188 15 amapchunkpl 152 14673 0 14310 26 0 26 26 0 158 8 amappl16 200 10673 0 10609 5 0 5 5 0 8 1 amappl15 192 26 0 24 1 0 1 1 0 8 0 amappl14 184 197 0 186 2 0 2 2 0 8 1 amappl13 176 19 0 19 1 0 1 1 0 8 1 amappl12 168 945 0 929 2 0 2 2 0 8 1 amappl11 160 62 0 51 1 0 1 1 0 8 0 amappl10 152 68 0 65 1 0 1 1 0 8 0 amappl9 144 294 0 294 1 0 1 1 0 8 1 amappl8 136 114 0 96 1 0 1 1 0 8 0 amappl7 128 80 0 77 1 0 1 1 0 8 0 amappl6 120 334 0 321 2 0 2 2 0 8 0 amappl5 112 190 0 178 1 0 1 1 0 8 0 amappl4 104 635 0 606 2 0 2 2 0 8 0 amappl3 96 4116 0 4075 2 0 2 2 0 8 0 amappl2 88 1000 0 942 4 0 4 4 0 8 1 amappl1 80 13772 0 13331 23 4 19 22 0 8 6 amappl 88 2888 0 2792 4 0 4 4 0 92 0 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 11764 0 11741 2 0 2 2 0 8 0 vmmpepl 168 62560 0 61368 110 0 110 110 0 357 51 vmsppl 344 366 0 352 3 0 3 3 0 8 1 rwobjpl 24 32297 0 29928 20 0 20 20 0 8 1 pdppl 4096 740 0 704 102 46 56 60 0 8 20 pvpl 32 662227 0 654550 346 43 303 346 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 419 0 113 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a63e020,ffff80002a6fb040,ffff80002a6faf90) at sys_semop+0x353 sys/kern/sysv_sem.c:615 syscall(ffff80002a6fb040) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb63a7b1a490, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a63e020,ffff80002a6fb040,ffff80002a6faf90) at sys_semop+0x353 sys/kern/sysv_sem.c:615 syscall(ffff80002a6fb040) at syscall+0x72a sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb63a7b1a490, count: -3