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(ffff80002a7e1258,ffff80003acfb2d0,ffff80003acfb220) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003acfb2d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acfb2d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa915a331ab0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003acfb200 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0 r10 0x1d71550ce5b118 r11 0x8bacf27a0d03a719 r12 0 r13 0xfffffd806180b930 r14 0xffff80003acfb2d0 r15 0 rip 0xffffffff81561325 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003acfb110 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=399991 pid=32915 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7e1a20,0xffff80002a7e1500 process=0xffff8000ffffa898 user=0xffff80003acf6000, vmspace=0xfffffd806cd03b90 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 32915 282112 52918 0 2 0 syz-executor *32915 399991 52918 0 7 0x4000000 syz-executor 32915 369374 52918 0 3 0x4000080 fsleep syz-executor 32915 425389 52918 0 2 0x4000000 syz-executor 6748 19614 3536 0 2 0 syz-executor 6748 211076 3536 0 3 0x4000080 fsleep syz-executor 51139 476656 76820 0 2 0x10 syz-executor 51139 239173 76820 0 3 0x4000090 fsleep syz-executor 16550 1219 96270 0 2 0 syz-executor 16550 435457 96270 0 2 0x4000000 syz-executor 43745 322046 96704 -1 2 0x10 syz-executor 43745 188168 96704 -1 3 0x4000090 fsleep syz-executor 38809 420230 93328 0 2 0 syz-executor 38809 54171 93328 0 2 0x4000000 syz-executor 38809 71272 93328 0 3 0x4000080 fsleep syz-executor 42389 15132 84400 0 2 0 syz-executor 42389 286612 84400 0 3 0x4000080 ttyout syz-executor 42389 518706 84400 0 2 0x4000000 syz-executor 42389 208829 84400 0 2 0x4000000 syz-executor 21502 294145 0 0 3 0x14200 acct acct 93328 513662 60878 0 3 0x82 nanoslp syz-executor 52918 184128 60878 0 3 0x82 nanoslp syz-executor 76820 432045 60878 0 3 0x82 nanoslp syz-executor 71057 409704 60878 0 2 0x2 syz-executor 3536 8787 60878 0 3 0x82 nanoslp syz-executor 96704 370749 60878 0 3 0x82 nanoslp syz-executor 84400 513996 60878 0 3 0x82 nanoslp syz-executor 96270 43957 60878 0 3 0x82 nanoslp syz-executor 60878 39097 5308 0 2 0x2 syz-executor 5308 39753 29737 0 3 0x10008a sigsusp ksh 29737 170242 86672 0 3 0x98 kqread sshd-session 86672 226565 77216 0 3 0x92 kqread sshd-session 34166 133523 1 0 3 0x100083 ttyin getty 77216 464785 1 0 3 0x88 kqread sshd 54142 377108 27027 73 3 0x1100090 kqread syslogd 27027 203925 1 0 3 0x100082 sbwait syslogd 20756 6870 1 0 3 0x100080 kqread resolvd 64940 224452 71795 77 3 0x100092 kqread dhcpleased 98008 184004 71795 77 3 0x100092 kqread dhcpleased 71795 138840 1 0 3 0x80 kqread dhcpleased 16595 68638 0 0 3 0x14200 bored smr 47744 289033 0 0 2 0x14200 zerothread 72990 193029 0 0 3 0x14200 aiodoned aiodoned 44717 314551 0 0 3 0x14200 syncer update 25478 84067 0 0 3 0x14200 cleaner cleaner 5630 537 0 0 3 0x14200 reaper reaper 88047 30291 0 0 3 0x14200 pgdaemon pagedaemon 39063 88864 0 0 3 0x14200 bored viomb 6975 378035 0 0 3 0x40014200 acpi0 acpi0 64643 327912 0 0 3 0x14200 bored softnet0 70883 119606 0 0 3 0x14200 bored systqmp 83489 106932 0 0 3 0x14200 bored systq 77196 23879 0 0 3 0x40014200 tmoslp softclock 34870 70321 0 0 3 0x40014200 idle0 1 80343 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 11075 12184K 12606K 166960K 13068 0 pcb 17 16K 18K 166960K 227 0 rtable 212 14K 15K 166960K 481 0 pf 32 13K 15K 166960K 74 0 ifaddr 41 7K 7K 166960K 72 0 ifgroup 54 2K 2K 166960K 105 0 sysctl 4 1K 9K 166960K 9 0 counters 34 17K 18K 166960K 51 0 ioctlops 0 0K 4K 166960K 170 0 iov 0 0K 24K 166960K 95 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1385 87K 88K 166960K 1959 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 5K 5K 166960K 21 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 93K 166960K 597 0 sigio 0 0K 0K 166960K 6 0 proc 60 59K 116K 166960K 606 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 57 0 in_multi 92 6K 7K 166960K 140 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 480 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 223 150K 166K 166960K 7116 0 UVM aobj 17 4K 4K 166960K 17 0 pinsyscall 38 76K 96K 166960K 1740 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 23 0 NDP 12 0K 2K 166960K 47 0 temp 50 9066K 9143K 166960K 22709 0 kqueue 13 20K 29K 166960K 94 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 75 0 72 1 0 1 1 0 8 0 rtentry 136 142 0 52 4 0 4 4 0 8 0 unpcb 144 336 0 317 2 1 1 2 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 136 0 132 4 3 1 4 0 8 0 arp 96 22 0 6 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 4 0 3 1 0 1 1 0 8 0 inpcb 328 611 0 603 10 3 7 7 0 8 5 ip6q 72 2 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 32 0 11 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1072 9 0 9 2 1 1 1 0 8 1 pppxif 1416 2 0 2 1 1 0 1 0 8 0 pfrule 1360 3 0 3 1 1 0 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 617 0 183 34 6 28 29 0 8 0 art_table 40 618 0 183 5 0 5 5 0 8 0 art_node 32 140 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 15 0 6 1 0 1 1 0 8 0 shmpl 112 14 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2485 0 1032 92 0 92 92 0 8 0 ffsino 256 2485 0 1032 92 0 92 92 0 8 0 nchpl 144 3328 0 1635 64 0 64 64 0 8 0 vnodes 216 2912 0 0 162 0 162 162 0 8 0 namei 1024 11814 0 11810 3 2 1 2 0 8 0 kstatmem 264 54 0 30 3 1 2 3 0 8 0 scsiplug 72 2 0 2 2 1 1 1 0 8 1 scxspl 216 12778 0 12778 9 7 2 8 1 8 2 plimitpl 152 270 0 253 1 0 1 1 0 8 0 sigapl 424 888 0 845 7 1 6 6 0 8 0 knotepl 120 53649 0 53602 38 29 9 24 0 8 6 kqueuepl 184 138 0 129 1 0 1 1 0 8 0 pipepl 304 227 0 200 8 5 3 8 0 8 0 fdescpl 448 873 0 844 5 1 4 5 0 8 0 filepl 120 5632 0 5415 15 6 9 13 0 8 2 lockfpl 104 297 0 293 1 0 1 1 0 8 0 lockfspl 48 108 0 104 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 39 0 23 1 0 1 1 0 8 0 ucredpl 104 1115 0 1102 1 0 1 1 0 8 0 zombiepl 144 944 0 944 2 1 1 1 0 8 1 processpl 1152 888 0 845 4 0 4 4 0 8 0 procpl 664 1627 0 1572 7 1 6 6 0 8 0 sosppl 176 6 0 6 2 1 1 1 0 8 1 sockpl 552 1049 0 1019 11 4 7 7 0 8 4 mcl64k 65536 57 0 57 2 1 1 1 0 8 1 mcl8k 8192 7 0 7 2 1 1 1 0 8 1 mcl4k 4096 3021 0 2968 17 9 8 16 0 8 1 mcl2k 2048 582 0 577 3 1 2 2 0 8 1 mtagpl 96 61 0 5 2 0 2 2 0 8 0 mbufpl 256 9432 0 9207 19 3 16 16 0 8 0 bufpl 280 4440 0 104 310 0 310 310 0 8 0 anonpl 24 159487 0 156334 61 16 45 47 0 187 12 amapchunkpl 152 23197 0 22713 47 17 30 33 0 158 9 amappl16 200 2785 0 2754 15 11 4 15 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 437 0 436 1 0 1 1 0 8 0 amappl13 176 119 0 109 1 0 1 1 0 8 0 amappl12 168 1118 0 1090 2 0 2 2 0 8 0 amappl11 160 30 0 29 1 0 1 1 0 8 0 amappl10 152 90 0 80 1 0 1 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 107 0 106 1 0 1 1 0 8 0 amappl7 128 145 0 134 1 0 1 1 0 8 0 amappl6 120 175 0 173 1 0 1 1 0 8 0 amappl5 112 94 0 86 1 0 1 1 0 8 0 amappl4 104 268 0 253 1 0 1 1 0 8 0 amappl3 96 4421 0 4311 4 0 4 4 0 8 0 amappl2 88 521 0 467 2 0 2 2 0 8 0 amappl1 80 10985 0 10436 14 2 12 14 0 8 0 amappl 88 6312 0 6150 5 0 5 5 0 92 0 uvmvnodes 80 111 0 0 3 0 3 3 0 8 0 dma4096 4096 2 0 2 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 253 0 253 1 1 0 1 0 8 0 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 16 0 0 1 0 1 1 0 8 0 uaddrrnd 24 873 0 844 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 873 0 844 1 0 1 1 0 8 0 vmmpekpl 168 8547 0 8504 3 0 3 3 0 8 0 vmmpepl 168 61811 0 60024 96 14 82 94 0 357 1 vmsppl 368 872 0 844 4 1 3 4 0 8 0 rwobjpl 40 19316 0 18337 13 0 13 13 0 8 1 pdppl 4096 1752 0 1688 102 36 66 80 0 8 2 pvpl 32 414244 0 405604 144 23 121 121 0 265 27 pmappl 216 872 0 844 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 388 0 68 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a7e1258,ffff80003acfb2d0,ffff80003acfb220) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003acfb2d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acfb2d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa915a331ab0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a7e1258,ffff80003acfb2d0,ffff80003acfb220) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003acfb2d0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acfb2d0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa915a331ab0, count: -3