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(ffff80002a7bdca0,ffff80003c913140,ffff80003c913090) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c913140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c913140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9fc260a10, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c913070 rbx 0xdeadbeefdeadc4ef rdx 0 rcx 0 rax 0xdeadbeefdeadc4ef r8 0x7f7fffffc000 r9 0 r10 0xbf84802cf68a5456 r11 0x6f8eb4e36f965d5b r12 0 r13 0xfffffd8069580070 r14 0xffff80003c913140 r15 0 rip 0xffffffff8268bdc5 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c912f80 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=125998 pid=75962 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=84, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a8122c8,0xffff80002a7bca88 process=0xffff8000ffff8498 user=0xffff80003c90e000, vmspace=0xfffffd806cb2d460 estcpu=34, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7858 471080 10661 0 2 0 syz-executor 79627 70329 60440 0 2 0 syz-executor 79627 201063 60440 0 2 0x4000000 syz-executor 75962 373315 24962 0 2 0 syz-executor *75962 125998 24962 0 7 0x4000000 syz-executor 75962 209484 24962 0 3 0x4000080 fsleep syz-executor 84702 379418 18817 0 2 0 syz-executor 84702 348021 18817 0 2 0x4000000 syz-executor 29675 314088 75567 0 2 0 syz-executor 29675 521370 75567 0 3 0x4000080 fsleep syz-executor 29675 447439 75567 0 3 0x4000080 fsleep syz-executor 45573 272778 48629 0 2 0 syz-executor 45573 196684 48629 0 3 0x4000080 fsleep syz-executor 45573 233875 48629 0 2 0x4000000 syz-executor 96609 512823 28936 0 2 0x1000000 syz-executor 96609 135044 28936 0 3 0x5000080 fsleep syz-executor 96609 305672 28936 0 3 0x5000080 fsleep syz-executor 86614 257298 61181 0 2 0 syz-executor 86614 283877 61181 0 3 0x4000080 kqsel syz-executor 86614 444775 61181 0 3 0x4000080 kqsel syz-executor 70226 430930 0 0 3 0x14200 acct acct 60440 94384 33360 0 3 0x82 nanoslp syz-executor 46470 435232 0 0 3 0x14280 nfsidl nfsio 16291 162077 0 0 3 0x14280 nfsidl nfsio 3679 425882 0 0 3 0x14280 nfsidl nfsio 33262 106040 0 0 3 0x14280 nfsidl nfsio 97890 453626 0 0 3 0x14280 nfsidl nfsio 67516 174320 0 0 3 0x14280 nfsidl nfsio 23028 94049 0 0 3 0x14280 nfsidl nfsio 94849 65106 0 0 3 0x14280 nfsidl nfsio 76926 342102 0 0 3 0x14280 nfsidl nfsio 42310 32583 0 0 3 0x14280 nfsidl nfsio 61507 107139 0 0 3 0x14280 nfsidl nfsio 23034 278394 0 0 3 0x14280 nfsidl nfsio 39907 472766 0 0 3 0x14280 nfsidl nfsio 30842 436557 0 0 3 0x14280 nfsidl nfsio 80643 118687 0 0 3 0x14280 nfsidl nfsio 88626 374710 0 0 3 0x14280 nfsidl nfsio 83020 174653 0 0 3 0x14280 nfsidl nfsio 2985 3563 0 0 3 0x14280 nfsidl nfsio 78541 408794 0 0 3 0x14280 nfsidl nfsio 41013 254818 0 0 3 0x14280 nfsidl nfsio 24962 364842 33360 0 3 0x82 nanoslp syz-executor 61181 410082 33360 0 3 0x82 nanoslp syz-executor 10661 94950 33360 0 3 0x82 nanoslp syz-executor 18817 241941 33360 0 3 0x82 nanoslp syz-executor 75567 25279 33360 0 3 0x82 nanoslp syz-executor 48629 479341 33360 0 3 0x82 nanoslp syz-executor 28936 218913 33360 0 3 0x82 nanoslp syz-executor 33360 174364 27721 0 3 0x82 kqread syz-executor 27721 58752 10378 0 3 0x10008a sigsusp ksh 10378 346293 2211 0 3 0x98 kqread sshd-session 2211 422373 28364 0 3 0x92 kqread sshd-session 24804 263013 1 0 3 0x100083 ttyin getty 28364 102702 1 0 3 0x88 kqread sshd 14851 335089 63080 73 3 0x1100090 kqread syslogd 63080 98898 1 0 3 0x100082 sbwait syslogd 44779 497841 1 0 3 0x100080 kqread resolvd 80730 300540 96899 77 3 0x100092 kqread dhcpleased 65258 357206 96899 77 3 0x100092 kqread dhcpleased 96899 324659 1 0 3 0x80 kqread dhcpleased 44126 441391 0 0 3 0x14200 bored smr 11261 11617 0 0 2 0x14200 zerothread 2794 160011 0 0 3 0x14200 aiodoned aiodoned 17013 31584 0 0 3 0x14200 syncer update 29560 404233 0 0 3 0x14200 cleaner cleaner 21339 401364 0 0 3 0x14200 reaper reaper 16205 24844 0 0 3 0x14200 pgdaemon pagedaemon 95837 412292 0 0 3 0x14200 bored viomb 66729 252050 0 0 3 0x40014200 acpi0 acpi0 76169 95387 0 0 3 0x14200 bored softnet0 2696 360773 0 0 3 0x14200 bored systqmp 21156 197756 0 0 3 0x14200 bored systq 95162 451144 0 0 3 0x40014200 tmoslp softclock 28470 446773 0 0 3 0x40014200 idle0 1 44647 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 10222 11245K 11776K 166960K 13669 0 pcb 17 18K 20K 166960K 367 0 rtable 158 7K 9K 166960K 773 0 pf 29 13K 19K 166960K 141 0 ifaddr 29 5K 8K 166960K 99 0 ifgroup 42 1K 2K 166960K 149 0 sysctl 4 1K 9K 166960K 20 0 counters 30 17K 18K 166960K 88 0 ioctlops 0 0K 4K 166960K 334 0 iov 0 0K 16K 166960K 54 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1486 93K 94K 166960K 2614 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 6K 6K 166960K 16 0 VM map 2 1K 1K 166960K 2 0 sem 31 29K 29K 166960K 55 0 dirhash 12 2K 3K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 97K 166960K 1197 0 sigio 0 0K 0K 166960K 28 0 proc 61 67K 124K 166960K 670 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 122 0 in_multi 61 4K 7K 166960K 167 0 ether_multi 1 0K 0K 166960K 10 0 mrt 1 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 289 1288K 1288K 166960K 289 0 exec 0 0K 1K 166960K 490 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 234 153K 170K 166960K 12968 0 UVM aobj 23 6K 6K 166960K 24 0 pinsyscall 39 78K 96K 166960K 2353 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 70 0 NDP 9 0K 2K 166960K 70 0 temp 60 8663K 8757K 166960K 49127 0 kqueue 13 20K 34K 166960K 233 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 177 0 174 3 0 3 3 0 8 2 rtentry 136 210 0 151 4 0 4 4 0 8 0 unpcb 144 1099 0 1082 8 2 6 6 0 8 5 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 522 0 513 7 0 7 7 0 8 6 arp 96 30 0 20 1 0 1 1 0 8 0 ipq 40 6 0 5 1 0 1 1 0 8 0 ipqe 40 10 0 9 1 0 1 1 0 8 0 inpcb 328 1532 0 1519 14 5 9 12 0 8 7 ip6q 72 4 0 4 1 0 1 1 0 8 1 ip6af 40 8 0 8 1 0 1 1 0 8 1 nd6 112 38 0 23 1 0 1 1 0 8 0 pkpcb 40 16 0 16 2 1 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1072 46 0 46 1 0 1 1 0 8 1 pppxif 1384 2 0 2 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfrktable 1344 2 0 2 1 0 1 1 0 8 1 pfanchor 1288 4 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 384 4 0 1 1 0 1 1 0 8 0 pfrule 1344 4 0 4 1 0 1 1 0 8 1 rttmr 136 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 763 0 448 35 5 30 31 0 8 8 art_table 40 765 0 448 5 0 5 5 0 8 0 art_node 32 176 0 123 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 6 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 48 0 20 1 0 1 1 0 8 0 shmpl 112 19 0 1 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 3609 0 2105 95 0 95 95 0 8 0 ffsino 256 3609 0 2105 95 0 95 95 0 8 0 nchpl 144 5291 0 3594 64 0 64 64 0 8 0 rtmask 32 14 0 14 1 0 1 1 0 8 1 vnodes 216 4484 0 0 250 0 250 250 0 8 0 namei 1024 19002 0 19002 1 0 1 1 0 8 1 vcpupl 3904 2 0 0 1 0 1 1 0 8 0 vmpool 800 2 0 0 1 0 1 1 0 8 0 kstatmem 264 96 0 78 2 0 2 2 0 8 0 scsiplug 72 3 0 3 1 0 1 1 0 8 1 scxspl 216 18659 0 18659 15 7 8 8 1 8 8 plimitpl 152 195 0 177 1 0 1 1 0 8 0 sigapl 424 1520 0 1456 9 1 8 8 0 8 0 knotepl 120 62486 0 62439 29 18 11 18 0 8 6 kqueuepl 184 488 0 476 3 0 3 3 0 8 2 pipepl 304 395 0 368 12 1 11 12 0 8 8 fdescpl 448 1466 0 1436 5 1 4 5 0 8 0 filepl 120 9998 0 9775 16 1 15 15 0 8 7 lockfpl 104 909 0 907 2 0 2 2 0 8 1 lockfspl 48 355 0 353 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 56 0 40 1 0 1 1 0 8 0 ucredpl 104 1614 0 1602 1 0 1 1 0 8 0 zombiepl 144 2247 0 2247 1 0 1 1 0 8 1 processpl 1152 1520 0 1456 5 0 5 5 0 8 0 procpl 664 3460 0 3384 7 0 7 7 0 8 0 sosppl 176 5 0 5 1 0 1 1 0 8 1 sockpl 552 2920 0 2887 23 13 10 17 0 8 7 mcl64k 65536 76 0 75 2 1 1 1 0 8 0 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 32 0 32 2 1 1 1 0 8 1 mcl4k 4096 3988 0 3936 14 6 8 14 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1817 0 1815 6 1 5 5 0 8 4 mtagpl 96 40 0 34 1 0 1 1 0 8 0 mbufpl 256 16359 0 16249 22 2 20 20 0 8 8 bufpl 280 7334 0 1113 445 0 445 445 0 8 0 anonpl 24 183936 0 180291 64 16 48 48 0 187 14 amapchunkpl 152 41943 0 41461 36 4 32 32 0 158 13 amappl16 200 2778 0 2743 34 22 12 15 0 8 8 amappl15 192 37 0 37 1 1 0 1 0 8 0 amappl14 184 15 0 15 1 1 0 1 0 8 0 amappl13 176 438 0 437 1 0 1 1 0 8 0 amappl12 168 1832 0 1794 2 0 2 2 0 8 0 amappl10 152 53 0 43 1 0 1 1 0 8 0 amappl9 144 257 0 257 1 1 0 1 0 8 0 amappl8 136 19 0 17 1 0 1 1 0 8 0 amappl7 128 111 0 110 1 0 1 1 0 8 0 amappl6 120 296 0 283 1 0 1 1 0 8 0 amappl5 112 81 0 73 1 0 1 1 0 8 0 amappl4 104 397 0 372 1 0 1 1 0 8 0 amappl3 96 7474 0 7392 3 0 3 3 0 8 0 amappl2 88 1591 0 1521 2 0 2 2 0 8 0 amappl1 80 13666 0 13127 14 1 13 13 0 8 0 amappl 88 12053 0 11891 6 1 5 5 0 92 0 uvmvnodes 80 123 0 0 3 0 3 3 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 254 0 254 2 1 1 1 0 8 1 dma64 64 8 0 8 2 1 1 1 0 8 1 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 23 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1466 0 1436 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1466 0 1436 1 0 1 1 0 8 0 vmmpekpl 168 14435 0 14394 3 0 3 3 0 8 0 vmmpepl 168 96546 0 94709 99 6 93 93 0 357 10 vmsppl 368 1465 0 1436 4 1 3 4 0 8 0 rwobjpl 40 26155 0 25178 13 0 13 13 0 8 0 pdppl 4096 2942 0 2874 118 48 70 82 0 8 2 pvpl 32 593949 0 584585 144 22 122 122 0 265 26 pmappl 216 1467 0 1436 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 418 0 69 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80002a7bdca0,ffff80003c913140,ffff80003c913090) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c913140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c913140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9fc260a10, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80002a7bdca0,ffff80003c913140,ffff80003c913090) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c913140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c913140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa9fc260a10, count: -3