kernel: protection fault trap, code=0 Stopped at sys_semop+0x384: movzwl 0(%rbx),%r15d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80002a7aafa8,ffff80003c949120,ffff80003c949070) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff80003c949120) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949120) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x749c9d78e10, count: -3 ddb> show registers rdi 0 rsi 0xfff3 __ALIGN_SIZE+0xeff3 rbp 0xffff80003c949050 rbx 0xdead4110dead4110 rdx 0 rcx 0 rax 0xffff80002a7aafa8 r8 0x7f7fffffc000 r9 0 r10 0x4f424347fbf3a329 r11 0x579a1e27e882544e r12 0xfffffff3 r13 0xfffffd8071596cb0 r14 0xffff80003c949120 r15 0 rip 0xffffffff81ec2684 sys_semop+0x384 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80003c948f60 ss 0x10 sys_semop+0x384: movzwl 0(%rbx),%r15d ddb> show proc PROC (syz-executor) tid=374242 pid=86428 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=51, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7abca0,0xffff80002a7aad20 process=0xffff800031508498 user=0xffff80003c944000, vmspace=0xfffffd807e09b2f8 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 63101 10437 99177 0 2 0 syz-executor 63101 289257 99177 0 2 0x4000000 syz-executor 72165 504965 50201 0 2 0 syz-executor 72165 220632 50201 0 2 0x4000000 syz-executor 61120 430812 9699 0 2 0 syz-executor 61120 39703 9699 0 2 0x4000000 syz-executor 86428 419143 29669 0 2 0 syz-executor *86428 374242 29669 0 7 0x4000000 syz-executor 86428 277179 29669 0 3 0x4000080 fsleep syz-executor 32586 389331 1662 0 2 0 syz-executor 32586 167108 1662 0 3 0x4000080 fsleep syz-executor 45108 289228 73717 0 2 0 syz-executor 45108 105163 73717 0 3 0x4000080 fsleep syz-executor 45108 130545 73717 0 3 0x4000080 fsleep syz-executor 95951 258868 18345 0 3 0x80 nanoslp syz-executor 95951 354891 18345 0 3 0x4000080 kqsel syz-executor 95951 487922 18345 0 3 0x4000080 fsleep syz-executor 95951 465957 18345 0 3 0x4000080 fsleep syz-executor 93512 387634 48148 0 2 0 syz-executor 93512 426793 48148 0 3 0x4000080 nanoslp syz-executor 93512 280833 48148 0 2 0x4000000 syz-executor 93512 5096 48148 0 3 0x4000080 fsleep syz-executor 18345 462446 33182 0 3 0x82 nanoslp syz-executor 99177 14252 33182 0 3 0x82 nanoslp syz-executor 48148 439137 33182 0 3 0x82 nanoslp syz-executor 29669 375631 33182 0 3 0x82 nanoslp syz-executor 50201 185675 33182 0 3 0x82 nanoslp syz-executor 73717 509607 33182 0 3 0x82 nanoslp syz-executor 1662 484096 33182 0 3 0x82 nanoslp syz-executor 9699 6794 33182 0 3 0x82 nanoslp syz-executor 33182 485218 2481 0 3 0x82 kqread syz-executor 2481 275717 14968 0 3 0x10008a sigsusp ksh 14968 463682 17105 0 3 0x98 kqread sshd-session 17105 444458 77386 0 3 0x92 kqread sshd-session 28003 95586 1 0 3 0x100083 ttyin getty 77386 215134 1 0 3 0x88 kqread sshd 85467 120686 50281 73 3 0x1100090 kqread syslogd 50281 80636 1 0 3 0x100082 sbwait syslogd 54532 345719 1 0 3 0x100080 kqread resolvd 42608 312297 14582 77 3 0x100092 kqread dhcpleased 32023 198434 14582 77 3 0x100092 kqread dhcpleased 14582 367965 1 0 3 0x80 kqread dhcpleased 84617 230247 0 0 3 0x14200 bored smr 79388 146538 0 0 2 0x14200 zerothread 53449 184339 0 0 3 0x14200 aiodoned aiodoned 37411 332142 0 0 3 0x14200 syncer update 99820 292433 0 0 3 0x14200 cleaner cleaner 45087 193452 0 0 3 0x14200 reaper reaper 54310 25993 0 0 3 0x14200 pgdaemon pagedaemon 64270 97991 0 0 3 0x14200 bored viomb 11585 185759 0 0 3 0x40014200 acpi0 acpi0 13432 503608 0 0 3 0x14200 bored softnet0 87448 165947 0 0 3 0x14200 bored systqmp 44692 418051 0 0 3 0x14200 bored systq 59090 408012 0 0 3 0x40014200 tmoslp softclock 60500 188323 0 0 3 0x40014200 idle0 1 464454 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 10167 11048K 11173K 166960K 11288 0 pcb 18 12K 12K 166960K 20 0 rtable 207 5K 5K 166960K 261 0 pf 31 13K 14K 166960K 36 0 ifaddr 42 7K 7K 166960K 46 0 ifgroup 50 2K 2K 166960K 57 0 sysctl 3 1K 9K 166960K 7 0 counters 32 17K 18K 166960K 34 0 ioctlops 0 0K 2K 166960K 32 0 iov 0 0K 0K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1343 84K 85K 166960K 1373 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 5 0K 0K 166960K 6 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 85K 166960K 164 0 proc 59 59K 100K 166960K 477 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 4 0 in_multi 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 mrt 2 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 351 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 232 159K 171K 166960K 3002 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 39 78K 90K 166960K 1193 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 29 0 temp 36 8634K 8698K 166960K 3775 0 kqueue 13 20K 26K 166960K 27 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 41 0 36 1 0 1 1 0 8 0 rtentry 136 96 0 1 4 0 4 4 0 8 0 unpcb 144 45 0 27 1 0 1 1 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 15 0 11 1 0 1 1 0 8 0 arp 96 10 0 0 1 0 1 1 0 8 0 inpcb 328 72 0 64 2 0 2 2 0 8 1 nd6 112 16 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 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 rttmr 136 1 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 468 0 0 30 0 30 30 0 8 0 art_table 40 469 0 0 5 0 5 5 0 8 0 art_node 32 96 0 11 1 0 1 1 0 8 0 semapl 112 3 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1596 0 92 95 0 95 95 0 8 0 ffsino 256 1596 0 92 95 0 95 95 0 8 0 nchpl 144 1824 0 144 63 0 63 63 0 8 0 vnodes 216 1692 0 0 94 0 94 94 0 8 0 namei 1024 5389 0 5388 4 2 2 2 0 8 1 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 6428 0 6428 8 7 1 8 1 8 1 plimitpl 152 33 0 17 1 0 1 1 0 8 0 sigapl 424 440 0 397 6 0 6 6 0 8 1 knotepl 120 4325 0 4278 10 0 10 10 0 8 8 kqueuepl 184 30 0 19 1 0 1 1 0 8 0 pipepl 304 100 0 73 3 0 3 3 0 8 0 fdescpl 448 427 0 397 4 0 4 4 0 8 0 filepl 120 1425 0 1210 7 0 7 7 0 8 0 lockfpl 104 20 0 17 1 0 1 1 0 8 0 lockfspl 48 10 0 7 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 14 1 0 1 1 0 8 0 ucredpl 104 98 0 87 1 0 1 1 0 8 0 zombiepl 144 415 0 415 2 1 1 1 0 8 1 processpl 1152 440 0 397 4 0 4 4 0 8 0 procpl 664 504 0 447 6 0 6 6 0 8 1 sockpl 552 158 0 127 3 0 3 3 0 8 0 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 1 0 1 0 8 0 mcl4k 4096 2494 0 2443 16 8 8 16 0 8 1 mcl2k 2048 196 0 195 1 0 1 1 0 8 0 mtagpl 96 5 0 5 2 1 1 1 0 8 1 mbufpl 256 4055 0 3895 11 0 11 11 0 8 0 bufpl 280 2859 0 117 196 0 196 196 0 8 0 anonpl 24 86562 0 83400 32 0 32 32 0 187 10 amapchunkpl 152 8685 0 8191 24 0 24 24 0 158 5 amappl16 200 1234 0 1211 5 3 2 4 0 8 0 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 144 0 134 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 1 0 1 0 8 0 amappl12 168 1034 0 1004 2 0 2 2 0 8 0 amappl11 160 42 0 32 1 0 1 1 0 8 0 amappl10 152 18 0 18 1 1 0 1 0 8 0 amappl9 144 258 0 258 1 1 0 1 0 8 0 amappl8 136 18 0 17 1 0 1 1 0 8 0 amappl7 128 93 0 83 1 0 1 1 0 8 0 amappl6 120 174 0 171 1 0 1 1 0 8 0 amappl5 112 131 0 125 1 0 1 1 0 8 0 amappl4 104 264 0 247 1 0 1 1 0 8 0 amappl3 96 1328 0 1235 3 0 3 3 0 8 0 amappl2 88 656 0 587 2 0 2 2 0 8 0 amappl1 80 7945 0 7400 13 0 13 13 0 8 1 amappl 88 2361 0 2193 4 0 4 4 0 92 0 uvmvnodes 80 1692 0 0 35 0 35 35 0 8 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 427 0 397 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 427 0 397 1 0 1 1 0 8 0 vmmpekpl 168 4947 0 4913 2 0 2 2 0 8 0 vmmpepl 168 33211 0 31341 85 2 83 83 0 357 1 vmsppl 368 426 0 397 4 0 4 4 0 8 1 rwobjpl 40 13246 0 10715 26 0 26 26 0 8 0 pdppl 4096 860 0 794 94 24 70 76 0 8 4 pvpl 32 203941 0 195364 92 0 92 92 0 265 17 pmappl 216 426 0 397 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 365 0 38 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a7aafa8,ffff80003c949120,ffff80003c949070) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff80003c949120) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949120) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x749c9d78e10, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a7aafa8,ffff80003c949120,ffff80003c949070) at sys_semop+0x384 sys/kern/sysv_sem.c:604 syscall(ffff80003c949120) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c949120) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x749c9d78e10, count: -3