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(ffff80003ca2e2d0,ffff80002a8b1d10,ffff80002a8b1c60) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002a8b1d10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8b1d10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8d0558c8610, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a8b1c40 rbx 0xdead4110dead4110 rdx 0 rcx 0 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0 r10 0xb8a8636edf8ad7e0 r11 0x7543da56d19a727c r12 0 r13 0xfffffd8069a12cb0 r14 0xffff80002a8b1d10 r15 0 rip 0xffffffff8147a3b5 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a8b1b50 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=17012 pid=93648 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003ca2e038,0xffff80003ca2f7a0 process=0xffff8000ffff28a8 user=0xffff80002a8ac000, vmspace=0xfffffd806c3275d8 estcpu=33, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39922 14785 72316 0 3 0 vmmaplk syz-executor 39922 77399 72316 0 2 0x4000000 syz-executor 86102 303140 32856 0 2 0 syz-executor 86102 299363 32856 0 2 0x4000000 syz-executor 93648 309103 39068 0 2 0 syz-executor *93648 17012 39068 0 7 0x4000000 syz-executor 93648 160813 39068 0 3 0x4000080 fsleep syz-executor 48131 64979 55626 0 2 0 syz-executor 48131 394423 55626 0 2 0x4000000 syz-executor 89189 260546 72229 0 2 0 syz-executor 89189 119828 72229 0 3 0x4000080 fsleep syz-executor 10377 64881 25108 0 2 0 syz-executor 10377 447716 25108 0 3 0x4000080 fsleep syz-executor 10377 193689 25108 0 2 0x4000000 syz-executor 23467 351823 46442 0 2 0 syz-executor 23467 339241 46442 0 3 0x4000080 fsleep syz-executor 54402 492411 34897 0 2 0x2 syz-executor 70858 76788 0 0 3 0x14200 acct acct 71093 112479 1 0 3 0x100083 ttyopn getty 15679 86103 0 0 3 0x14280 nfsidl nfsio 38588 258480 0 0 3 0x14280 nfsidl nfsio 23540 359676 0 0 3 0x14280 nfsidl nfsio 27918 134933 0 0 3 0x14280 nfsidl nfsio 5833 63129 0 0 3 0x14280 nfsidl nfsio 43638 475762 0 0 3 0x14280 nfsidl nfsio 35376 78410 0 0 3 0x14280 nfsidl nfsio 36039 357506 0 0 3 0x14280 nfsidl nfsio 8227 241838 0 0 3 0x14280 nfsidl nfsio 79172 40190 0 0 3 0x14280 nfsidl nfsio 96891 411492 0 0 3 0x14280 nfsidl nfsio 41483 413027 0 0 3 0x14280 nfsidl nfsio 76019 237712 0 0 3 0x14280 nfsidl nfsio 80568 44593 0 0 3 0x14280 nfsidl nfsio 36190 338697 0 0 3 0x14280 nfsidl nfsio 62771 295616 0 0 3 0x14280 nfsidl nfsio 37637 14435 0 0 3 0x14280 nfsidl nfsio 92433 35709 0 0 3 0x14280 nfsidl nfsio 80885 38003 0 0 3 0x14280 nfsidl nfsio 20264 164410 0 0 3 0x14280 nfsidl nfsio 6439 212135 84273 0 3 0x82 sbwait sshd-session 3844 267306 0 0 3 0x14200 bored sosplice 72316 325113 34897 0 3 0x82 nanoslp syz-executor 32856 518114 34897 0 3 0x82 nanoslp syz-executor 39068 452156 34897 0 3 0x82 nanoslp syz-executor 55626 184769 34897 0 3 0x82 nanoslp syz-executor 72229 392058 34897 0 3 0x82 nanoslp syz-executor 25108 402231 34897 0 3 0x82 nanoslp syz-executor 46442 352779 34897 0 3 0x82 nanoslp syz-executor 34897 412789 77280 0 2 0x2 syz-executor 77280 2932 28511 0 3 0x10008a sigsusp ksh 28511 146425 98376 0 3 0x98 kqread sshd-session 98376 365432 84273 0 3 0x92 kqread sshd-session 84273 463741 1 0 3 0x88 kqread sshd 86799 153723 5870 73 3 0x1100090 kqread syslogd 5870 197506 1 0 3 0x100082 sbwait syslogd 96255 149662 1 0 3 0x100080 kqread resolvd 5571 40717 37286 77 3 0x100092 kqread dhcpleased 26290 498290 37286 77 3 0x100092 kqread dhcpleased 37286 74471 1 0 3 0x80 kqread dhcpleased 66814 326425 0 0 3 0x14200 bored smr 88185 487365 0 0 2 0x14200 zerothread 60608 348331 0 0 3 0x14200 aiodoned aiodoned 92147 161065 0 0 3 0x14200 syncer update 82389 515013 0 0 3 0x14200 cleaner cleaner 32724 516382 0 0 3 0x14200 reaper reaper 70920 247335 0 0 3 0x14200 pgdaemon pagedaemon 62501 21663 0 0 3 0x14200 bored viomb 47100 353778 0 0 3 0x40014200 acpi0 acpi0 58363 374175 0 0 3 0x14200 bored softnet7 46170 251658 0 0 3 0x14200 bored softnet6 72157 365167 0 0 3 0x14200 bored softnet5 78365 305582 0 0 3 0x14200 bored softnet4 37821 416056 0 0 3 0x14200 bored softnet3 1213 70143 0 0 3 0x14200 bored softnet2 66805 129747 0 0 3 0x14200 bored softnet1 98580 213675 0 0 3 0x14200 bored softnet0 36688 158105 0 0 3 0x14200 bored systqmp 99421 149749 0 0 3 0x14200 bored systq 50834 359929 0 0 3 0x40014200 tmoslp softclock 11364 310302 0 0 3 0x40014200 idle0 1 407030 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 10187 11119K 15224K 166960K 12510 0 pcb 17 15K 16K 166960K 238 0 rtable 162 7K 7K 166960K 994 0 pf 30 13K 16K 166960K 433 0 ifaddr 34 6K 7K 166960K 130 0 ifgroup 49 2K 2K 166960K 168 0 sysctl 4 1K 9K 166960K 15 0 counters 31 17K 18K 166960K 77 0 ioctlops 0 0K 4K 166960K 241 0 iov 0 0K 16K 166960K 55 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1524 96K 96K 166960K 2211 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 53 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 58K 85K 166960K 1050 0 sigio 0 0K 0K 166960K 77 0 proc 60 59K 91K 166960K 979 0 subproc 63 3K 4K 166960K 207 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 121 0 in_multi 76 5K 7K 166960K 298 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 590 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 221 159K 170K 166960K 10599 0 UVM aobj 24 4K 4K 166960K 27 0 pinsyscall 40 80K 90K 166960K 2482 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 35 0 NDP 10 0K 2K 166960K 88 0 temp 58 8644K 8712K 166960K 45104 0 kqueue 13 20K 32K 166960K 146 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 228 0 225 3 0 3 3 0 8 2 rtentry 136 246 0 183 4 0 4 4 0 8 0 unpcb 144 747 0 730 4 0 4 4 0 8 3 syncache 336 7 0 7 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 191 0 183 2 0 2 2 0 8 0 arp 88 28 0 18 1 0 1 1 0 8 0 inpcb 328 809 0 798 7 0 7 7 0 8 5 ip6q 72 3 0 2 1 0 1 1 0 8 0 ip6af 40 6 0 5 1 0 1 1 0 8 0 nd6 104 49 0 37 1 0 1 1 0 8 0 pkpcb 40 7 0 7 2 1 1 1 0 8 1 kcovpl 48 23 0 16 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 22 0 22 1 0 1 1 0 8 1 pppxif 1384 6 0 6 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 195 0 195 1 0 1 1 0 8 1 pfanchor 1288 65 0 65 1 0 1 1 0 8 1 pfstkey 128 1 0 1 1 1 0 1 0 8 0 pfstate 384 1 0 1 1 1 0 1 0 8 0 pfrule 1344 65 0 65 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1194 0 866 28 2 26 28 0 8 2 art_table 40 1196 0 866 5 0 5 5 0 8 0 art_node 32 244 0 188 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 8 1 0 1 1 0 8 0 semapl 112 50 0 41 1 0 1 1 0 8 0 shmpl 112 24 0 3 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2958 0 1434 96 0 96 96 0 8 0 ffsino 256 2958 0 1434 96 0 96 96 0 8 0 nchpl 144 4163 0 2429 65 0 65 65 0 8 0 rtmask 32 5 0 5 1 0 1 1 0 8 1 uvmvnodes 80 3630 0 0 75 0 75 75 0 8 0 vnodes 216 3631 0 0 202 0 202 202 0 8 0 namei 1024 15727 0 15726 3 1 2 2 0 8 1 pfiaddrpl 120 65 0 65 1 0 1 1 0 8 1 kstatmem 264 84 0 64 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 16801 0 16801 15 7 8 8 1 8 8 plimitpl 152 259 0 242 1 0 1 1 0 8 0 sigapl 424 1328 0 1256 10 1 9 9 0 8 0 knotepl 120 31393 0 31343 25 15 10 17 0 8 7 kqueuepl 184 253 0 244 3 0 3 3 0 8 2 pipepl 304 325 0 298 8 0 8 8 0 8 5 fdescpl 448 1284 0 1254 4 0 4 4 0 8 0 filepl 120 7377 0 7174 14 0 14 14 0 8 6 lockfpl 104 614 0 611 2 0 2 2 0 8 1 lockfspl 48 189 0 186 1 0 1 1 0 8 0 sessionpl 144 42 0 33 1 0 1 1 0 8 0 pgrppl 48 72 0 55 1 0 1 1 0 8 0 ucredpl 104 885 0 874 1 0 1 1 0 8 0 zombiepl 144 1763 0 1763 1 0 1 1 0 8 1 processpl 1152 1328 0 1256 6 0 6 6 0 8 0 procpl 664 2609 0 2528 8 0 8 8 0 8 0 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 552 1813 0 1782 8 0 8 8 0 8 3 mcl64k 65536 36 0 36 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 17 0 17 2 1 1 1 0 8 1 mcl4k 4096 3395 0 3335 14 5 9 13 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1495 0 1422 11 0 11 11 0 8 1 mtagpl 96 16 0 8 2 1 1 1 0 8 0 mbufpl 256 14453 0 14147 162 129 33 158 0 8 8 bufpl 280 7542 0 1314 446 0 446 446 0 8 0 anonpl 24 189828 0 186541 66 13 53 53 0 187 21 amapchunkpl 152 33454 0 33002 29 3 26 28 0 158 8 amappl16 200 3206 0 3171 28 15 13 15 0 8 8 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 142 0 131 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 2131 0 2101 2 0 2 2 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 6 0 5 1 0 1 1 0 8 0 amappl9 144 327 0 327 1 1 0 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 130 0 118 1 0 1 1 0 8 0 amappl6 120 328 0 323 1 0 1 1 0 8 0 amappl5 112 180 0 173 1 0 1 1 0 8 0 amappl4 104 325 0 309 1 0 1 1 0 8 0 amappl3 96 6509 0 6402 4 0 4 4 0 8 0 amappl2 88 851 0 790 2 0 2 2 0 8 0 amappl1 80 13534 0 12905 15 0 15 15 0 8 0 amappl 88 9563 0 9411 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 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 26 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1284 0 1254 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1284 0 1254 1 0 1 1 0 8 0 vmmpekpl 168 12234 0 12197 3 0 3 3 0 8 0 vmmpepl 168 87353 0 85354 112 11 101 101 0 357 9 vmsppl 368 1283 0 1254 4 1 3 4 0 8 0 rwobjpl 40 28589 0 24005 47 0 47 47 0 8 0 pdppl 4096 2574 0 2508 114 44 70 76 0 8 4 pvpl 32 535979 0 527110 140 14 126 126 0 265 38 pmappl 216 1283 0 1254 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 550 0 188 14 0 14 14 0 8 1 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003ca2e2d0,ffff80002a8b1d10,ffff80002a8b1c60) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002a8b1d10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8b1d10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8d0558c8610, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003ca2e2d0,ffff80002a8b1d10,ffff80002a8b1c60) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002a8b1d10) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a8b1d10) at syscall+0x962 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8d0558c8610, count: -3