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(ffff80003c95cd20,ffff80003c949350,ffff80003c9492a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c949350) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949350) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf78b7589ad0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c949280 rbx 0xdead4110dead4110 rdx 0 rcx 0 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0 r10 0x5643fa7e65fd7e09 r11 0x6a9ce85cdef2e7b1 r12 0 r13 0xfffffd8063112770 r14 0xffff80003c949350 r15 0 rip 0xffffffff817d8175 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c949190 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=418360 pid=23888 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=81, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c95cfb8,0xffff80003c95dcc0 process=0xffff8000ffff9b18 user=0xffff80003c944000, vmspace=0xfffffd80630ff018 estcpu=31, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23888 391006 95973 0 2 0 syz-executor *23888 418360 95973 0 7 0x4000000 syz-executor 23888 519206 95973 0 3 0x4000080 fsleep syz-executor 99874 141553 66104 0 3 0x10 vmmaplk syz-executor 99874 130425 66104 0 2 0x4000010 syz-executor 98073 11037 76783 0 2 0 syz-executor 98073 82754 76783 0 3 0x4000080 ttyin syz-executor 98073 505197 76783 0 2 0x4000000 syz-executor 59200 92164 56527 0 2 0 syz-executor 59200 351102 56527 0 3 0x4000080 lockf syz-executor 59200 77205 56527 0 3 0x4000080 lockf syz-executor 59200 47810 56527 0 3 0x4000080 fsleep syz-executor 96479 436455 93302 0 2 0 syz-executor 96479 142799 93302 0 3 0x4000080 fsleep syz-executor 93302 443963 86430 0 3 0x82 nanoslp syz-executor 35715 20904 0 0 3 0x14200 bored sosplice 79113 369770 0 0 3 0x14200 acct acct 72694 185112 86430 0 2 0x2 syz-executor 66104 337851 86430 0 3 0x82 nanoslp syz-executor 56527 156399 86430 0 3 0x82 nanoslp syz-executor 55647 386119 86430 0 2 0x2 syz-executor 4301 119978 86430 0 3 0x82 nanoslp syz-executor 76783 439756 86430 0 3 0x82 nanoslp syz-executor 95973 247151 86430 0 3 0x82 nanoslp syz-executor 86430 195744 84443 0 3 0x82 kqread syz-executor 84443 102837 15072 0 3 0x10008a sigsusp ksh 15072 461976 53910 0 3 0x98 kqread sshd-session 53910 165008 35608 0 3 0x92 kqread sshd-session 43998 208953 1 0 3 0x100083 ttyin getty 35608 150704 1 0 3 0x88 kqread sshd 17259 9925 88011 73 3 0x1100090 kqread syslogd 88011 329528 1 0 3 0x100082 sbwait syslogd 18334 27296 1 0 3 0x100080 kqread resolvd 90468 60182 94932 77 3 0x100092 kqread dhcpleased 84451 90077 94932 77 3 0x100092 kqread dhcpleased 94932 152792 1 0 3 0x80 kqread dhcpleased 18801 8911 0 0 3 0x14200 bored smr 26631 411868 0 0 2 0x14200 zerothread 11628 393917 0 0 3 0x14200 aiodoned aiodoned 86399 203375 0 0 3 0x14200 syncer update 46702 342216 0 0 3 0x14200 cleaner cleaner 61246 286194 0 0 3 0x14200 reaper reaper 37261 265029 0 0 3 0x14200 pgdaemon pagedaemon 6534 26692 0 0 3 0x14200 bored viomb 64222 468810 0 0 3 0x40014200 acpi0 acpi0 26629 477990 0 0 3 0x14200 bored softnet0 41352 133381 0 0 3 0x14200 bored systqmp 36602 257561 0 0 3 0x14200 bored systq 54670 427492 0 0 3 0x40014200 tmoslp softclock 62994 245770 0 0 3 0x40014200 idle0 1 497022 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 10170 11041K 11171K 166960K 11409 0 pcb 18 12K 12K 166960K 51 0 rtable 208 6K 6K 166960K 279 0 pf 30 12K 16K 166960K 44 0 ifaddr 42 7K 7K 166960K 54 0 ifgroup 50 2K 2K 166960K 62 0 sysctl 1 1K 9K 166960K 6 0 counters 32 17K 18K 166960K 38 0 ioctlops 0 0K 4K 166960K 52 0 iov 1 2K 12K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 84K 166960K 1509 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 97K 166960K 320 0 sigio 0 0K 0K 166960K 3 0 proc 63 67K 124K 166960K 522 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 10 0 in_multi 99 7K 7K 166960K 110 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 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 434 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 217 143K 151K 166960K 4414 0 UVM aobj 8 2K 2K 166960K 11 0 pinsyscall 38 76K 96K 166960K 1368 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 80 0 NDP 11 0K 2K 166960K 34 0 temp 38 8638K 8702K 166960K 10794 0 kqueue 13 20K 27K 166960K 52 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 49 0 46 1 0 1 1 0 8 0 rtentry 136 104 0 10 4 0 4 4 0 8 0 unpcb 144 471 0 452 6 0 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 44 0 39 1 0 1 1 0 8 0 arp 96 11 0 1 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 2 0 2 1 0 1 1 0 8 1 inpcb 328 232 0 223 6 2 4 4 0 8 3 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 112 18 0 2 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pfrule 1344 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 479 0 42 28 0 28 28 0 8 0 art_table 40 480 0 42 5 0 5 5 0 8 0 art_node 32 104 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 10 0 3 1 0 1 1 0 8 0 shmpl 112 8 0 3 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1885 0 382 95 0 95 95 0 8 0 ffsino 256 1885 0 382 95 0 95 95 0 8 0 nchpl 144 2309 0 627 63 0 63 63 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2035 0 0 114 0 114 114 0 8 0 namei 1024 7352 0 7352 3 2 1 2 0 8 1 kstatmem 264 32 0 10 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 8005 0 8005 11 7 4 8 1 8 4 plimitpl 152 147 0 130 1 0 1 1 0 8 0 sigapl 424 594 0 550 7 1 6 6 0 8 0 knotepl 120 10229 0 10182 10 0 10 10 0 8 7 kqueuepl 184 69 0 59 1 0 1 1 0 8 0 pipepl 304 115 0 87 3 0 3 3 0 8 0 fdescpl 448 579 0 550 5 1 4 5 0 8 0 filepl 120 3007 0 2786 12 1 11 11 0 8 3 lockfpl 104 55 0 49 1 0 1 1 0 8 0 lockfspl 48 26 0 22 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 360 0 347 1 0 1 1 0 8 0 zombiepl 144 679 0 678 2 1 1 1 0 8 0 processpl 1152 594 0 550 4 0 4 4 0 8 0 procpl 664 916 0 863 6 0 6 6 0 8 1 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 552 765 0 734 16 5 11 12 0 8 8 mcl64k 65536 9 0 8 1 0 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 10 2 1 1 1 0 8 1 mcl4k 4096 2675 0 2625 15 7 8 14 0 8 0 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 383 0 381 2 1 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5660 0 5486 13 0 13 13 0 8 0 bufpl 280 3227 0 120 222 0 222 222 0 8 0 anonpl 24 110574 0 106649 34 2 32 32 0 187 7 amapchunkpl 152 13543 0 13093 24 0 24 24 0 158 5 amappl16 200 1822 0 1744 8 3 5 5 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 107 0 97 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1200 0 1172 3 1 2 3 0 8 0 amappl11 160 43 0 33 1 0 1 1 0 8 0 amappl10 152 33 0 33 1 1 0 1 0 8 0 amappl9 144 255 0 255 1 1 0 1 0 8 0 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 101 0 91 1 0 1 1 0 8 0 amappl6 120 181 0 178 1 0 1 1 0 8 0 amappl5 112 115 0 109 1 0 1 1 0 8 0 amappl4 104 264 0 247 1 0 1 1 0 8 0 amappl3 96 2201 0 2115 3 0 3 3 0 8 0 amappl2 88 800 0 731 2 0 2 2 0 8 0 amappl1 80 8865 0 8316 13 0 13 13 0 8 1 amappl 88 3737 0 3584 5 0 5 5 0 92 0 uvmvnodes 80 2035 0 0 42 0 42 42 0 8 0 dma32768 32768 2 0 2 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 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 1 1 1 0 8 1 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 10 0 3 1 0 1 1 0 8 0 uaddrrnd 24 579 0 550 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 579 0 550 1 0 1 1 0 8 0 vmmpekpl 168 6088 0 6042 3 0 3 3 0 8 0 vmmpepl 168 42561 0 40693 85 0 85 85 0 357 1 vmsppl 368 578 0 550 4 1 3 4 0 8 0 rwobjpl 40 16038 0 13109 30 0 30 30 0 8 0 pdppl 4096 1165 0 1100 99 32 67 83 0 8 2 pvpl 32 271939 0 262618 97 0 97 97 0 265 18 pmappl 216 578 0 550 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 373 0 48 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003c95cd20,ffff80003c949350,ffff80003c9492a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c949350) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949350) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf78b7589ad0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003c95cd20,ffff80003c949350,ffff80003c9492a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c949350) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949350) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf78b7589ad0, count: -3