kernel: protection fault trap, code=0 Stopped at sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80002a7c2f78,ffff80003c9476a0,ffff80003c9475f0) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff80003c9476a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9476a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf8e3087e750, count: -3 ddb> show registers rdi 0 rsi 0x7 rbp 0xffff80003c9475c0 rbx 0 rdx 0 rcx 0 rax 0xdeafbeaddeafbead r8 0x7f7fffffc000 r9 0 r10 0x4ba4aeaef499af76 r11 0xec10dc2090116961 r12 0xffff8000014a0a04 r13 0x7 r14 0xffff80003c9476a0 r15 0x7 rip 0xffffffff820f8bce sys_semop+0x3ae cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c9474a0 ss 0x10 sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb> show proc PROC (syz-executor) tid=197433 pid=23054 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=53, usrpri=53, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7c2ce8,0xffff80002a7c2a68 process=0xffff800035d162d8 user=0xffff80003c942000, vmspace=0xfffffd806c06a2e0 estcpu=9, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 1221 70633 76593 0 2 0 syz-executor 1221 292129 76593 0 3 0x4000080 fsleep syz-executor 1221 523093 76593 0 3 0x4000080 fsleep syz-executor 23054 85688 17841 0 2 0 syz-executor *23054 197433 17841 0 7 0x4000000 syz-executor 23054 509785 17841 0 2 0x4000000 syz-executor 80172 192250 18711 0 2 0 syz-executor 80172 437508 18711 0 2 0x4000000 syz-executor 82190 179066 50396 0 2 0 syz-executor 82190 161670 50396 0 3 0x4000080 fsleep syz-executor 43099 291065 3207 -1 3 0x90 nanoslp syz-executor 43099 305764 3207 -1 3 0x4000090 kqsel syz-executor 43099 35286 3207 -1 3 0x4000090 fsleep syz-executor 60676 20385 83390 0 3 0x80 nanoslp syz-executor 60676 51512 83390 0 2 0x4000000 syz-executor 60676 429902 83390 0 3 0x4000080 fsleep syz-executor 3207 323670 69609 0 3 0x82 nanoslp syz-executor 83390 103588 69609 0 3 0x82 nanoslp syz-executor 17841 46410 69609 0 3 0x82 nanoslp syz-executor 23099 166506 69609 0 3 0x82 nanoslp syz-executor 50396 133817 69609 0 3 0x82 nanoslp syz-executor 76593 133516 69609 0 3 0x82 nanoslp syz-executor 90262 106994 69609 0 3 0x82 nanoslp syz-executor 18711 196377 69609 0 2 0x3 syz-executor 69609 195001 74953 0 3 0x82 kqread syz-executor 74953 292668 71635 0 3 0x10008a sigsusp ksh 71635 375522 43542 0 3 0x98 kqread sshd-session 43542 261519 22856 0 3 0x92 kqread sshd-session 33021 297434 1 0 3 0x100083 ttyin getty 22856 468002 1 0 3 0x88 kqread sshd 38740 276838 87856 73 3 0x1100090 kqread syslogd 87856 346057 1 0 3 0x100082 sbwait syslogd 43595 120613 1 0 3 0x100080 kqread resolvd 24704 85759 74678 77 3 0x100092 kqread dhcpleased 57751 459113 74678 77 3 0x100092 kqread dhcpleased 74678 369298 1 0 3 0x80 kqread dhcpleased 7832 172243 0 0 3 0x14200 bored smr 53385 302872 0 0 2 0x14200 zerothread 21449 175208 0 0 3 0x14200 aiodoned aiodoned 71675 157086 0 0 3 0x14200 syncer update 75847 63963 0 0 3 0x14200 cleaner cleaner 8371 191616 0 0 3 0x14200 reaper reaper 51150 363546 0 0 3 0x14200 pgdaemon pagedaemon 22620 410607 0 0 3 0x14200 bored viomb 66213 242648 0 0 3 0x40014200 acpi0 acpi0 55997 147470 0 0 3 0x14200 bored softnet3 27305 145109 0 0 3 0x14200 bored softnet2 16909 293468 0 0 3 0x14200 bored softnet1 1686 288923 0 0 3 0x14200 bored softnet0 66465 30257 0 0 3 0x14200 bored systqmp 47033 50745 0 0 3 0x14200 bored systq 49359 319769 0 0 3 0x40014200 tmoslp softclock 44365 299568 0 0 3 0x40014200 idle0 1 206074 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 10178 11106K 11331K 166960K 11413 0 pcb 17 12K 12K 166960K 32 0 rtable 239 7K 7K 166960K 369 0 pf 30 12K 13K 166960K 33 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 50 2K 2K 166960K 52 0 sysctl 1 1K 1K 166960K 1 0 counters 30 17K 17K 166960K 31 0 ioctlops 0 0K 4K 166960K 41 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1343 84K 85K 166960K 1434 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 4 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 232K 166960K 227 0 proc 60 59K 124K 166960K 487 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 7 0 in_multi 99 7K 7K 166960K 101 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 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 420 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 239 151K 162K 166960K 3509 0 UVM aobj 41 2K 2K 166960K 41 0 pinsyscall 39 78K 96K 166960K 1251 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 9 0 NDP 11 0K 2K 166960K 28 0 temp 39 8671K 8735K 166960K 7871 0 kqueue 14 22K 26K 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 43 0 40 1 0 1 1 0 8 0 rtentry 136 113 0 2 4 0 4 4 0 8 0 unpcb 144 81 0 64 1 0 1 1 0 8 0 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 103 0 95 7 3 4 4 0 8 3 arp 88 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 344 192 0 180 7 2 5 5 0 8 3 nd6 104 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 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 455 0 0 29 0 29 29 0 8 0 art_table 32 456 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 semapl 112 2 0 1 1 0 1 1 0 8 0 shmpl 112 38 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1698 0 195 95 0 95 95 0 8 0 ffsino 248 1698 0 195 95 0 95 95 0 8 0 nchpl 144 2005 0 327 63 0 63 63 0 8 0 uvmvnodes 80 1829 0 0 38 0 38 38 0 8 0 vnodes 216 1829 0 0 102 0 102 102 0 8 0 namei 1024 6365 0 6365 3 2 1 2 0 8 1 kstatmem 264 24 0 2 2 0 2 2 0 8 0 scxspl 216 6775 0 6775 9 1 8 8 1 8 8 plimitpl 152 71 0 52 1 0 1 1 0 8 0 sigapl 424 494 0 448 7 1 6 7 0 8 0 futexpl 64 1436 0 1430 1 0 1 1 0 8 0 knotepl 120 5745 0 5696 2 0 2 2 0 8 0 kqueuepl 184 38 0 27 1 0 1 1 0 8 0 pipepl 296 104 0 77 3 0 3 3 0 8 0 fdescpl 440 478 0 448 5 1 4 5 0 8 0 filepl 120 2036 0 1807 8 0 8 8 0 8 0 lockfpl 104 20 0 18 1 0 1 1 0 8 0 lockfspl 48 11 0 9 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 33 0 17 1 0 1 1 0 8 0 ucredpl 104 202 0 190 1 0 1 1 0 8 0 zombiepl 144 470 0 468 1 0 1 1 0 8 0 processpl 1112 494 0 448 4 0 4 4 0 8 0 procpl 656 641 0 585 5 0 5 5 0 8 0 sockpl 528 318 0 286 7 2 5 5 0 8 2 mcl64k 65536 7 0 6 1 0 1 1 0 8 0 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 5 0 5 1 1 0 1 0 8 0 mcl4k 4096 2509 0 2459 14 7 7 14 0 8 0 mcl2k 2048 185 0 184 2 1 1 1 0 8 0 mtagpl 96 6 0 4 1 0 1 1 0 8 0 mbufpl 256 4803 0 4636 11 0 11 11 0 8 0 bufpl 280 2500 0 117 171 0 171 171 0 8 0 anonpl 24 97550 0 94122 38 6 32 32 0 187 6 amapchunkpl 152 10277 0 9750 28 3 25 25 0 158 4 amappl16 200 1600 0 1560 6 3 3 6 0 8 0 amappl15 192 2 0 1 1 0 1 1 0 8 0 amappl14 184 111 0 100 1 0 1 1 0 8 0 amappl13 176 4 0 4 1 1 0 1 0 8 0 amappl12 168 1086 0 1055 3 0 3 3 0 8 0 amappl11 160 56 0 46 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 261 0 261 1 1 0 1 0 8 0 amappl8 136 38 0 37 1 0 1 1 0 8 0 amappl7 128 99 0 89 1 0 1 1 0 8 0 amappl6 120 168 0 165 1 0 1 1 0 8 0 amappl5 112 108 0 102 1 0 1 1 0 8 0 amappl4 104 293 0 277 1 0 1 1 0 8 0 amappl3 96 1680 0 1560 3 0 3 3 0 8 0 amappl2 88 626 0 572 2 0 2 2 0 8 0 amappl1 80 8330 0 7777 13 0 13 13 0 8 0 amappl 88 2843 0 2667 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 40 0 0 1 0 1 1 0 8 0 uaddrrnd 24 478 0 448 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 478 0 448 1 0 1 1 0 8 0 vmmpekpl 168 5479 0 5451 2 0 2 2 0 8 0 vmmpepl 168 37193 0 35282 90 4 86 90 0 357 0 vmsppl 360 477 0 448 4 1 3 4 0 8 0 rwobjpl 32 14419 0 11672 23 0 23 23 0 8 0 pdppl 4096 963 0 896 97 30 67 83 0 8 0 pvpl 32 230941 0 222028 114 20 94 95 0 265 16 pmappl 216 477 0 448 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 269 0 48 8 0 8 8 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a7c2f78,ffff80003c9476a0,ffff80003c9475f0) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff80003c9476a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9476a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf8e3087e750, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a7c2f78,ffff80003c9476a0,ffff80003c9475f0) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff80003c9476a0) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c9476a0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf8e3087e750, count: -3