kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sys_semop(ffff80003a41c7f0,ffff80003c4a6fe0,ffff80003c4a6f30) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c4a6fe0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4a6fe0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1f88458ce70, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c4a6f00 rbx 0xdeafbeaddeafbf0d rdx 0 rcx 0xffff80003a41c7f0 rax 0xdeafbeaddeafbf0d r8 0x7f7fffffc000 r9 0 r10 0x2be33af1cf29fcad r11 0x75df272c3efcd3ce r12 0 r13 0xfffffd8067c595b0 r14 0xffff80003c4a6fe0 r15 0 rip 0xffffffff829e2785 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c4a6e10 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=179362 pid=73718 tcnt=4 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=0xffff80003a41da18,0xffff80003a41d4f8 process=0xffff80003a426c00 user=0xffff80003c4a2000, vmspace=0xfffffd805e872210 estcpu=33, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58698 328369 36265 0 2 0 syz-executor 58698 504094 36265 0 3 0x4000080 kqread syz-executor 93482 120140 22382 0 2 0 syz-executor 93482 309118 22382 0 3 0x4000080 fsleep syz-executor 43070 393428 51503 0 2 0 syz-executor 43070 300599 51503 0 3 0x4000080 fsleep syz-executor 43070 13035 51503 0 3 0x4000080 fsleep syz-executor 43070 175 51503 0 2 0x4000000 syz-executor 73718 107319 14001 0 2 0 syz-executor *73718 179362 14001 0 7 0x4000000 syz-executor 73718 401357 14001 0 3 0x4000080 fsleep syz-executor 73718 115095 14001 0 3 0x4000080 fsleep syz-executor 73903 181093 42490 0 2 0 syz-executor 73903 13617 42490 0 3 0x4000080 fsleep syz-executor 73903 341370 42490 0 3 0x4000080 fsleep syz-executor 6867 169733 10177 0 7 0 syz-executor 6867 60891 10177 0 2 0x4000000 syz-executor 6867 104512 10177 0 2 0x4000000 syz-executor 14001 140263 20023 0 3 0x82 nanoslp syz-executor 29193 312855 1 0 3 0x100083 ttyin getty 78547 385728 0 0 3 0x14200 bored sosplice 51503 387434 20023 0 3 0x82 nanoslp syz-executor 1187 39752 20023 0 2 0x2 syz-executor 42490 236250 20023 0 3 0x82 nanoslp syz-executor 36265 283641 20023 0 3 0x82 nanoslp syz-executor 29248 263551 20023 0 3 0x82 nanoslp syz-executor 22382 205552 20023 0 3 0x82 nanoslp syz-executor 10177 224873 20023 0 3 0x82 nanoslp syz-executor 20023 444216 87491 0 3 0x82 kqread syz-executor 87491 330140 98002 0 3 0x10008a sigsusp ksh 98002 387361 95612 0 3 0x98 kqread sshd-session 95612 348895 17601 0 3 0x92 kqread sshd-session 17601 255295 1 0 3 0x88 kqread sshd 54914 36697 59353 74 3 0x1100092 bpf pflogd 59353 455697 1 0 3 0x80 sbwait pflogd 33111 67461 35358 73 3 0x1100090 kqread syslogd 35358 81366 1 0 3 0x100082 sbwait syslogd 13977 182554 1 0 3 0x100080 kqread resolvd 7866 187907 52107 77 3 0x100092 kqread dhcpleased 45930 369346 52107 77 3 0x100092 kqread dhcpleased 52107 439394 1 0 3 0x80 kqread dhcpleased 50775 519665 0 0 3 0x14200 bored smr 30452 240970 0 0 2 0x14200 zerothread 79376 426355 0 0 3 0x14200 aiodoned aiodoned 67172 417187 0 0 3 0x14200 syncer update 84643 142366 0 0 3 0x14200 cleaner cleaner 90608 422285 0 0 3 0x14200 reaper reaper 45086 421865 0 0 3 0x14200 pgdaemon pagedaemon 140 244017 0 0 3 0x14200 bored viomb 43873 437618 0 0 3 0x40014200 acpi0 acpi0 63833 414808 0 0 3 0x40014200 idle1 93115 394898 0 0 3 0x14200 bored softnet7 85536 236169 0 0 3 0x14200 bored softnet6 95909 475459 0 0 3 0x14200 bored softnet5 42518 207896 0 0 3 0x14200 bored softnet4 53468 80435 0 0 3 0x14200 bored softnet3 44535 144323 0 0 3 0x14200 bored softnet2 5139 105971 0 0 3 0x14200 bored softnet1 87341 399648 0 0 3 0x14200 bored softnet0 20642 177034 0 0 3 0x14200 bored systqmp 58983 56743 0 0 3 0x14200 bored systq 15754 254380 0 0 3 0x14200 tmoslp softclockmp 43272 391358 0 0 3 0x40014200 tmoslp softclock 32403 340648 0 0 3 0x40014200 idle0 1 100841 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 43070 (syz-executor) thread 0xffff80003a41cd20 (175) Process 73718 (syz-executor) thread 0xffff80003a41c7f0 (179362) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10269 11112K 11304K 166960K 12245 0 pcb 18 12K 12K 166960K 128 0 rtable 187 8K 8K 166960K 377 0 pf 41 19K 19K 166960K 106 0 ifaddr 40 6K 7K 166960K 74 0 ifgroup 57 2K 2K 166960K 116 0 sysctl 3 1K 9K 166960K 15 0 counters 70 37K 37K 166960K 122 0 ioctlops 0 0K 4K 166960K 1629 0 iov 0 0K 16K 166960K 62 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1435 90K 91K 166960K 2170 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 47 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 730 0 sigio 0 0K 0K 166960K 9 0 proc 72 115K 164K 166960K 637 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 73 0 in_multi 79 5K 7K 166960K 146 0 ether_multi 1 0K 0K 166960K 11 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 391 1738K 1738K 166960K 391 0 exec 0 0K 1K 166960K 665 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 244 159K 182K 166960K 8287 0 UVM aobj 14 2K 2K 166960K 16 0 pinsyscall 42 84K 104K 166960K 1858 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 57 0 NDP 13 0K 2K 166960K 48 0 temp 54 8646K 8711K 166960K 32655 0 kqueue 15 21K 30K 166960K 136 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 78 0 75 1 0 1 1 0 8 0 rtentry 176 126 0 53 5 0 5 5 0 8 0 unpcb 144 620 0 602 8 6 2 6 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 225 0 221 7 6 1 7 0 8 0 arp 128 14 0 5 1 0 1 1 0 8 0 inpcb 328 582 0 574 7 5 2 7 0 8 1 nd6 144 23 0 6 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 2 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 18 0 17 2 1 1 1 0 8 0 pppxif 1504 2 0 2 1 1 0 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pffrag 232 3 0 1 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 4 0 2 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 20 0 9 1 0 1 1 0 8 0 pfstkey 128 21 0 11 1 0 1 1 0 8 0 pfstate 384 19 0 10 2 0 2 2 0 8 0 pfrule 1344 25 0 19 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 560 0 200 30 7 23 28 0 8 0 art_table 40 564 0 200 5 0 5 5 0 8 0 art_node 32 126 0 63 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 8 1 0 1 1 0 8 0 semapl 112 43 0 34 1 0 1 1 0 8 0 shmpl 112 13 0 2 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2798 0 1294 95 0 95 95 0 8 0 ffsino 296 2798 0 1294 117 0 117 117 0 8 0 nchpl 144 3842 0 2149 64 0 64 64 0 8 0 rtmask 32 4 0 4 1 1 0 1 0 8 0 uvmvnodes 80 3355 0 0 69 0 69 69 0 8 0 vnodes 216 3355 0 0 187 0 187 187 0 8 0 namei 1024 13051 0 13050 3 2 1 2 0 8 0 percpumem 16 76 0 26 1 0 1 1 0 8 0 kstatmem 264 64 0 34 4 1 3 3 0 8 0 scsiplug 72 4 0 4 3 2 1 1 0 8 1 scxspl 216 24489 0 24489 11 9 2 8 1 8 2 plimitpl 152 229 0 210 1 0 1 1 0 8 0 sigapl 424 1043 0 989 7 0 7 7 0 8 0 knotepl 120 777 0 0 24 0 24 24 0 8 0 kqueuepl 224 227 0 214 3 1 2 2 0 8 1 pipepl 344 225 0 196 4 0 4 4 0 8 1 fdescpl 528 1015 0 984 3 0 3 3 0 8 0 filepl 160 6238 0 6010 17 6 11 17 0 8 1 lockfpl 104 243 0 241 1 0 1 1 0 8 0 lockfspl 48 109 0 107 1 0 1 1 0 8 0 sessionpl 144 24 0 15 1 0 1 1 0 8 0 pgrppl 48 73 0 56 1 0 1 1 0 8 0 ucredpl 104 1226 0 1213 1 0 1 1 0 8 0 zombiepl 144 1042 0 1041 2 1 1 1 0 8 0 processpl 1248 1043 0 989 5 0 5 5 0 8 0 procpl 664 2049 0 1982 8 1 7 7 0 8 1 sosppl 168 3 0 3 2 2 0 1 0 8 0 sockpl 752 1294 0 1265 17 12 5 17 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 112 0 0 14 0 14 14 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 216 0 0 13 0 13 13 0 8 0 bufpl 280 11304 0 5161 440 0 440 440 0 8 0 anonpl 32 12246 0 0 99 0 99 99 0 246 0 amapchunkpl 152 27969 0 27457 40 14 26 32 0 158 5 amappl16 200 4500 0 4466 28 13 15 25 0 8 7 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 151 0 139 1 0 1 1 0 8 0 amappl13 176 7 0 6 1 0 1 1 0 8 0 amappl12 168 1689 0 1658 4 2 2 3 0 8 0 amappl11 160 47 0 33 1 0 1 1 0 8 0 amappl10 152 4 0 4 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 113 0 100 1 0 1 1 0 8 0 amappl6 120 198 0 194 1 0 1 1 0 8 0 amappl5 112 195 0 185 1 0 1 1 0 8 0 amappl4 104 310 0 291 1 0 1 1 0 8 0 amappl3 96 5265 0 5147 4 0 4 4 0 8 0 amappl2 88 656 0 594 2 0 2 2 0 8 0 amappl1 80 10759 0 10159 15 2 13 15 0 8 0 amappl 88 7488 0 7316 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 255 0 255 2 2 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 15 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1015 0 984 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1015 0 984 1 0 1 1 0 8 0 vmmpekpl 168 9603 0 9559 4 1 3 3 0 8 0 vmmpepl 168 70018 0 68020 110 10 100 109 0 357 6 vmsppl 488 1014 0 984 6 1 5 5 0 8 0 rwobjpl 80 24687 0 20371 92 1 91 91 0 8 1 pdppl 4096 2038 0 1968 104 32 72 84 0 8 2 pvpl 32 20532 0 0 166 0 166 166 0 265 0 pmappl 256 1014 0 984 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 287 0 52 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80003a41c7f0,ffff80003c4a6fe0,ffff80003c4a6f30) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c4a6fe0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4a6fe0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1f88458ce70, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299edff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7e1a26d9acd0, count: -3