kernel: protection fault trap, code=0 Stopped at sys_semop+0x3f9: movzwl 0(%r15),%r12d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80003761e030,ffff800037635930,ffff800037635880) at sys_semop+0x3f9 sys/kern/sysv_sem.c:602 syscall(ffff800037635930) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa87313760, count: -3 ddb> show registers rdi 0 rsi 0xeffa __ALIGN_SIZE+0xdffa rbp 0xffff800037635850 rbx 0xffff8000012e2004 rdx 0xffff8000012e87c0 rcx 0 rax 0xffff80003761e030 r8 0x7f7fffffc000 r9 0 r10 0x1ec4ab78f4431b05 r11 0x5c53a2cb3d7e02cb r12 0xffff8000012e2004 r13 0xffffeffa r14 0x4152 __ALIGN_SIZE+0x3152 r15 0xdeaf4152deaf4152 rip 0xffffffff82f6dd09 sys_semop+0x3f9 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff800037635730 ss 0x10 sys_semop+0x3f9: movzwl 0(%r15),%r12d ddb> show proc PROC (syz-executor) tid=46863 pid=54040 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=75, usrpri=75, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003761fc08,0xffff80002a4af1e0 process=0xffff8000ffff6258 user=0xffff800037630000, vmspace=0xfffffd806c217170 estcpu=25, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 17923 356330 64758 0 2 0 syz-executor 17923 359939 64758 0 3 0x4000080 fsleep syz-executor 95207 30041 16999 0 2 0 syz-executor 95207 311989 16999 0 3 0x4000080 fsleep syz-executor 76664 275975 11621 0 2 0 syz-executor 76664 225214 11621 0 3 0x4000080 fsleep syz-executor 60511 218189 70657 0 2 0 syz-executor 60511 259804 70657 0 3 0x4000080 fsleep syz-executor 49618 511518 18801 0 2 0 syz-executor 49618 497325 18801 0 3 0x4000080 fsleep syz-executor 54040 145363 28112 0 2 0 syz-executor *54040 46863 28112 0 7 0x4000000 syz-executor 54040 24369 28112 0 3 0x4000080 ttyretype syz-executor 54040 280080 28112 0 3 0x4000080 fsleep syz-executor 97906 30684 99870 0 2 0 syz-executor 97906 257287 99870 0 2 0x4000000 syz-executor 97906 264228 99870 0 3 0x4000080 fsleep syz-executor 97906 37723 99870 0 3 0x4000080 fsleep syz-executor 96208 356587 82144 0 4 0x82000 syz-executor 96208 466193 82144 0 3 0x4002000 suspend syz-executor 96208 297983 82144 0 4 0x4082000 syz-executor 96208 154073 82144 0 4 0x4082000 syz-executor 96208 461813 82144 0 2 0x4082000 syz-executor 73127 295209 0 0 3 0x14200 bored sosplice 28112 501080 44026 0 3 0x82 nanoslp syz-executor 18801 332650 44026 0 3 0x82 nanoslp syz-executor 16999 19178 44026 0 3 0x82 nanoslp syz-executor 99870 149163 44026 0 3 0x82 nanoslp syz-executor 70657 198596 44026 0 3 0x82 nanoslp syz-executor 64758 197932 44026 0 3 0x82 nanoslp syz-executor 11621 306658 44026 0 3 0x82 nanoslp syz-executor 82144 133338 44026 0 3 0x82 nanoslp syz-executor 44026 240493 5331 0 3 0x82 kqread syz-executor 5331 71197 43259 0 3 0x10008a sigsusp ksh 43259 188582 42932 0 3 0x98 kqread sshd-session 42932 461546 87887 0 3 0x92 kqread sshd-session 16591 24936 1 0 3 0x100083 ttyin getty 87887 184952 1 0 3 0x88 kqread sshd 87158 424433 96355 73 3 0x1100090 kqread syslogd 96355 282976 1 0 3 0x100082 sbwait syslogd 31240 18237 1 0 3 0x100080 kqread resolvd 95768 167159 74044 77 3 0x100092 kqread dhcpleased 5175 438449 74044 77 3 0x100092 kqread dhcpleased 74044 320278 1 0 3 0x80 kqread dhcpleased 36329 353478 0 0 3 0x14200 bored smr 37471 465564 0 0 2 0x14200 zerothread 35884 416099 0 0 3 0x14200 aiodoned aiodoned 55399 121735 0 0 3 0x14200 syncer update 23014 199733 0 0 3 0x14200 cleaner cleaner 33101 507774 0 0 3 0x14200 reaper reaper 33128 153617 0 0 3 0x14200 pgdaemon pagedaemon 14772 357629 0 0 3 0x14200 bored viomb 53754 179074 0 0 3 0x40014200 acpi0 acpi0 14865 221723 0 0 3 0x14200 bored softnet3 94462 356009 0 0 3 0x14200 bored softnet2 96242 348610 0 0 3 0x14200 bored softnet1 69688 75961 0 0 3 0x14200 bored softnet0 18267 55730 0 0 3 0x14200 bored systqmp 26560 186171 0 0 3 0x14200 bored systq 6378 311355 0 0 3 0x40014200 tmoslp softclock 92437 473017 0 0 3 0x40014200 idle0 1 18699 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 10204 11055K 11447K 166960K 11770 0 pcb 17 13K 14K 166960K 104 0 rtable 214 5K 7K 166960K 410 0 pf 32 13K 15K 166960K 45 0 ifaddr 42 7K 8K 166960K 54 0 ifgroup 50 2K 2K 166960K 66 0 sysctl 3 0K 0K 166960K 3 0 counters 30 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 56 0 iov 0 0K 28K 166960K 16 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1411 89K 89K 166960K 1697 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 383 0 sigio 0 0K 0K 166960K 6 0 proc 61 59K 124K 166960K 527 0 subproc 104 6K 6K 166960K 119 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 51 0 in_multi 96 7K 7K 166960K 120 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 381 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 237 73K 88K 166960K 4966 0 UVM aobj 14 2K 2K 166960K 14 0 pinsyscall 39 78K 96K 166960K 1432 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 26 0 NDP 11 0K 2K 166960K 34 0 temp 75 6816K 6882K 166960K 9798 0 kqueue 14 22K 28K 166960K 68 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 59 0 56 1 0 1 1 0 8 0 rtentry 112 132 0 32 4 0 4 4 0 8 0 unpcb 144 475 0 457 9 3 6 6 0 8 5 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 57 0 53 1 0 1 1 0 8 0 arp 88 23 0 3 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 336 299 0 288 4 1 3 4 0 8 1 nd6 104 29 0 5 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 1 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 1 0 1 0 8 0 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 4 1 0 1 1 0 8 0 pfstate 344 4 0 2 1 0 1 1 0 8 0 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 549 0 128 30 1 29 30 0 8 2 art_table 32 550 0 128 4 0 4 4 0 8 0 art_node 16 131 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semapl 112 9 0 2 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2033 0 537 95 0 95 95 0 8 0 ffsino 240 2033 0 537 89 0 89 89 0 8 0 nchpl 144 2580 0 901 63 0 63 63 0 8 0 uvmvnodes 80 2334 0 0 48 0 48 48 0 8 0 vnodes 216 2334 0 0 130 0 130 130 0 8 0 namei 1024 8653 0 8653 2 1 1 1 0 8 1 kstatmem 264 30 0 8 2 0 2 2 0 8 0 scxspl 216 7065 0 7065 2 1 1 2 1 8 1 plimitpl 152 124 0 107 1 0 1 1 0 8 0 sigapl 424 682 0 635 8 2 6 8 0 8 0 futexpl 64 3995 0 3986 1 0 1 1 0 8 0 knotepl 120 12484 0 12435 24 14 10 16 0 8 8 kqueuepl 184 82 0 72 1 0 1 1 0 8 0 pipepl 288 117 0 90 4 1 3 3 0 8 0 fdescpl 432 645 0 615 5 1 4 5 0 8 0 filepl 120 3829 0 3582 16 1 15 15 0 8 7 lockfpl 104 68 0 65 1 0 1 1 0 8 0 lockfspl 48 32 0 29 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 800 0 789 1 0 1 1 0 8 0 zombiepl 144 718 0 718 1 0 1 1 0 8 1 processpl 1096 682 0 635 5 1 4 5 0 8 0 procpl 648 1092 0 1030 8 2 6 7 0 8 0 sockpl 504 839 0 809 29 16 13 21 0 8 8 mcl64k 65536 4 0 4 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 1 0 1 0 8 0 mcl4k 4096 2981 0 2929 16 8 8 16 0 8 1 mcl2k 2048 443 0 440 3 2 1 3 0 8 0 mtagpl 96 11 0 5 1 0 1 1 0 8 0 mbufpl 256 6901 0 6696 15 1 14 14 0 8 0 bufpl 280 2568 0 96 177 0 177 177 0 8 0 anonpl 24 152176 0 148893 54 10 44 44 0 187 21 amapchunkpl 152 16497 0 15972 36 2 34 34 0 158 13 amappl16 200 3652 0 3625 16 4 12 14 0 8 8 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 107 0 97 1 0 1 1 0 8 0 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 1277 0 1247 2 0 2 2 0 8 0 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 120 0 120 1 1 0 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 100 0 90 1 0 1 1 0 8 0 amappl6 120 174 0 173 1 0 1 1 0 8 0 amappl5 112 133 0 125 1 0 1 1 0 8 0 amappl4 104 281 0 264 1 0 1 1 0 8 0 amappl3 96 3106 0 3006 3 0 3 3 0 8 0 amappl2 88 908 0 830 2 0 2 2 0 8 0 amappl1 80 8028 0 7510 13 0 13 13 0 8 1 amappl 88 4601 0 4419 5 0 5 5 0 92 0 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 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 13 0 0 1 0 1 1 0 8 0 uaddrrnd 24 645 0 615 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 645 0 615 1 0 1 1 0 8 0 vmmpekpl 168 6307 0 6268 2 0 2 2 0 8 0 vmmpepl 168 46629 0 44833 88 0 88 88 0 357 9 vmsppl 352 644 0 615 4 1 3 4 0 8 0 rwobjpl 24 18958 0 15749 20 0 20 20 0 8 0 pdppl 4096 1296 0 1230 98 30 68 82 0 8 2 pvpl 32 324113 0 314835 114 14 100 100 0 265 19 pmappl 216 644 0 615 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 398 0 66 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003761e030,ffff800037635930,ffff800037635880) at sys_semop+0x3f9 sys/kern/sysv_sem.c:602 syscall(ffff800037635930) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa87313760, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003761e030,ffff800037635930,ffff800037635880) at sys_semop+0x3f9 sys/kern/sysv_sem.c:602 syscall(ffff800037635930) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3aa87313760, count: -3