kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace sys_semop(ffff8000357ee7e8,ffff80003c451840,ffff80003c451790) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c451840) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c451840) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f0b899ec90, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c451760 rbx 0xdeadbeefdeadbefb rdx 0 rcx 0xffff8000357ee7e8 rax 0xdeadbeefdeadbefb r8 0x7f7fffffc000 r9 0x1 r10 0xb16e1e73827d6465 r11 0x1ea8a24b88bdaa24 r12 0 r13 0xfffffd8064d6ca10 r14 0xffff80003c451840 r15 0 rip 0xffffffff8118a965 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c451670 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=257455 pid=93564 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002ffd94f0,0xffff80002ffd8d38 process=0xffff80003c47a6a8 user=0xffff80003c44c000, vmspace=0xfffffd800b063000 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67411 413547 18278 0 2 0 syz-executor 67411 52051 18278 0 3 0x4000080 fsleep syz-executor 93564 147700 25036 0 2 0 syz-executor *93564 257455 25036 0 7 0x4000000 syz-executor 93564 418886 25036 0 3 0x4000080 fsleep syz-executor 89605 164734 5729 0 3 0x80 nanoslp syz-executor 89605 313154 5729 0 3 0x4000080 sbwait syz-executor 89605 460827 5729 0 3 0x4000000 inode syz-executor 89605 3318 5729 0 3 0x4000080 fsleep syz-executor 79873 267506 13293 0 2 0x1 syz-executor 79873 63106 13293 0 3 0x4000080 sbwait syz-executor 28289 401909 42032 0 3 0x3000 suspend syz-executor 28289 174397 42032 0 3 0x4081000 biowait syz-executor 28289 251636 42032 0 3 0x4081000 inode syz-executor 65146 380657 0 0 3 0x14280 nfsidl nfsio 94611 156387 0 0 3 0x14280 nfsidl nfsio 67899 89226 0 0 3 0x14280 nfsidl nfsio 20289 498709 0 0 3 0x14280 nfsidl nfsio 48889 36331 15410 0 2 0x3 syz-executor 99597 137821 15410 0 7 0x3 syz-executor 5729 448911 15410 0 2 0x2 syz-executor 79183 52089 15410 0 3 0x82 piperd syz-executor 42032 483032 15410 0 3 0x82 wait syz-executor 13293 486948 15410 0 2 0x3 syz-executor 25036 221388 15410 0 2 0x3 syz-executor 36440 40405 1 0 3 0x100083 ttyin getty 18278 373855 15410 0 3 0x82 nanoslp syz-executor 15410 55625 4612 0 2 0x3 syz-executor 4612 460384 95562 0 3 0x10008a sigsusp ksh 95562 145991 88319 0 3 0x98 kqread sshd-session 88319 233412 72536 0 3 0x92 kqread sshd-session 72536 333897 1 0 3 0x88 kqread sshd 29043 337749 65797 74 3 0x1100092 bpf pflogd 65797 399627 1 0 3 0x80 sbwait pflogd 4691 289840 19034 73 3 0x1100090 kqread syslogd 19034 358925 1 0 3 0x100082 sbwait syslogd 46300 277248 1 0 3 0x100080 kqread resolvd 33707 436615 29509 77 3 0x100092 kqread dhcpleased 20626 44543 29509 77 3 0x100092 kqread dhcpleased 29509 445250 1 0 3 0x80 kqread dhcpleased 28571 294904 0 0 3 0x14200 bored smr 21997 10897 0 0 2 0x14200 zerothread 96500 372984 0 0 3 0x14200 aiodoned aiodoned 83900 200697 0 0 3 0x14200 syncer update 20495 191815 0 0 3 0x14200 cleaner cleaner 90731 393232 0 0 3 0x14200 reaper reaper 57743 470582 0 0 3 0x14200 pgdaemon pagedaemon 7219 8944 0 0 3 0x14200 bored viomb 59565 224796 0 0 3 0x40014200 acpi0 acpi0 59454 456608 0 0 3 0x40014200 idle1 70998 446994 0 0 3 0x14200 bored softnet1 88949 343795 0 0 3 0x14200 bored softnet0 17170 284504 0 0 3 0x14200 smrbar systqmp 74800 18954 0 0 3 0x14200 bored systq 52745 391493 0 0 3 0x14200 tmoslp softclockmp 49977 374174 0 0 3 0x40014200 tmoslp softclock 801 38541 0 0 3 0x40014200 idle0 1 81122 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 93564 (syz-executor) thread 0xffff8000357ee7e8 (257455) Process 89605 (syz-executor) thread 0xffff80002ffd8fc0 (313154) Process 89605 (syz-executor) thread 0xffff80002ffd9258 (460827) Process 28289 (syz-executor) thread 0xffff800035808d20 (174397) Process 17170 (systqmp) thread 0xffff8000ffffe530 (284504) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10219 11038K 11755K 166960K 15307 0 pcb 17 16K 18K 166960K 591 0 rtable 244 13K 14K 166960K 1010 0 pf 39 18K 81K 166960K 374 0 ifaddr 40 7K 8K 166960K 213 0 ifgroup 59 2K 3K 166960K 389 0 sysctl 4 1K 9K 166960K 23 0 counters 70 37K 38K 166960K 526 0 ioctlops 0 0K 4K 166960K 2253 0 iov 0 0K 28K 166960K 155 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1426 90K 90K 166960K 4057 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 33 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 110 0 dirhash 108 19K 20K 166960K 3729 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 15 53K 232K 166960K 2774 0 sigio 0 0K 0K 166960K 60 0 proc 72 115K 163K 166960K 1121 0 subproc 72 4K 4K 166960K 180 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 435 0 in_multi 87 6K 7K 166960K 295 0 ether_multi 1 0K 0K 166960K 22 0 mrt 1 0K 0K 166960K 19 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 1144 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 40 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 241 152K 179K 166960K 26564 0 UVM aobj 58 18K 18K 166960K 68 0 pinsyscall 40 80K 104K 166960K 4214 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 208 0 NDP 13 0K 1K 166960K 161 0 temp 83 8676K 8923K 166960K 116868 0 kqueue 13 20K 28K 166960K 462 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 288 0 285 3 2 1 3 0 8 0 rtentry 176 299 0 206 6 1 5 6 0 8 0 unpcb 144 1835 0 1812 19 17 2 8 0 8 0 syncache 336 11 0 11 8 7 1 1 0 8 1 tcpqe 32 4 0 4 3 3 0 1 0 8 0 tcpcb 736 1078 0 1070 19 12 7 7 0 8 6 arp 136 51 0 34 1 0 1 1 0 8 0 inpcb 328 2983 0 2972 19 12 7 7 0 8 5 nd6 152 67 0 43 2 0 2 2 0 8 0 pkpcb 40 19 0 19 5 4 1 1 0 8 1 kcovpl 48 20 0 12 1 0 1 1 0 8 0 mppekey 1024 2 0 2 2 2 0 1 0 8 0 ppxss 1192 185 0 185 2 1 1 1 0 8 1 pppxif 1504 13 0 13 5 4 1 1 0 8 1 pfstscr 40 7 0 7 3 3 0 1 0 8 0 pffrag 232 13 0 5 1 0 1 1 0 482 0 pffrnode 88 9 0 1 1 0 1 1 0 8 0 pffrent 40 153 0 145 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 pfrktable 1344 3 0 3 2 1 1 1 0 8 1 pfanchor 1288 5 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 73 0 61 1 0 1 1 0 8 0 pfstkey 128 80 0 67 2 0 2 2 0 8 0 pfstate 448 73 0 64 7 2 5 7 0 8 0 pfrule 1344 33 0 27 2 1 1 2 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1220 0 822 45 17 28 31 0 8 1 art_table 40 1223 0 822 5 0 5 5 0 8 0 art_node 32 298 0 215 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 9 1 0 1 1 0 8 0 semupl 112 5 0 5 3 3 0 1 0 8 0 semapl 112 106 0 97 1 0 1 1 0 8 0 shmpl 112 54 0 6 2 0 2 2 0 8 0 dirhash 1024 1256 0 1207 8 1 7 7 0 8 0 dino2pl 256 6689 0 5149 97 0 97 97 0 8 0 ffsino 296 6689 0 5149 119 0 119 119 0 8 0 nchpl 144 10436 0 9845 65 41 24 65 0 8 0 rtmask 32 24 0 24 5 4 1 1 0 8 1 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 36825 0 36824 3 2 1 2 0 8 0 percpumem 16 278 0 228 1 0 1 1 0 8 0 vcpupl 3968 9 0 2 1 0 1 1 0 8 0 vmpool 840 11 0 4 1 0 1 1 0 8 0 kstatmem 264 248 0 216 3 0 3 3 0 8 0 scsiplug 72 7 0 7 6 5 1 1 0 8 1 scxspl 216 56946 0 56944 12 10 2 8 1 8 1 plimitpl 152 554 0 536 1 0 1 1 0 8 0 sigapl 424 3039 0 2990 7 1 6 7 0 8 0 knotepl 120 597 0 0 17 0 17 17 0 8 0 kqueuepl 224 964 0 955 8 7 1 5 0 8 0 pipepl 344 428 0 401 10 6 4 9 0 8 0 fdescpl 528 3016 0 2987 3 0 3 3 0 8 0 filepl 160 20104 0 19888 34 20 14 18 0 8 3 lockfpl 104 1389 0 1387 2 1 1 2 0 8 0 lockfspl 48 495 0 493 1 0 1 1 0 8 0 sessionpl 144 42 0 33 1 0 1 1 0 8 0 pgrppl 48 98 0 81 1 0 1 1 0 8 0 ucredpl 104 3801 0 3787 1 0 1 1 0 8 0 zombiepl 144 3991 0 3990 2 1 1 1 0 8 0 processpl 1232 3039 0 2990 6 1 5 5 0 8 0 procpl 664 7128 0 7070 7 0 7 7 0 8 0 sosppl 176 20 0 20 5 4 1 1 0 8 1 sockpl 752 5206 0 5169 56 45 11 22 0 8 6 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 78 0 0 10 0 10 10 0 8 0 mtagpl 96 187 0 0 5 0 5 5 0 8 0 mbufpl 256 1497 0 0 92 0 92 92 0 8 0 bufpl 280 22651 0 16514 439 0 439 439 0 8 0 anonpl 32 13664 0 0 110 0 110 110 0 246 0 amapchunkpl 152 95522 0 94980 63 31 32 36 0 158 5 amappl16 200 10664 0 10371 64 44 20 25 0 8 3 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 6 0 6 1 1 0 1 0 8 0 amappl13 176 569 0 567 1 0 1 1 0 8 0 amappl12 168 3472 0 3432 3 0 3 3 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 51 0 36 1 0 1 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 128 0 126 1 0 1 1 0 8 0 amappl6 120 432 0 418 1 0 1 1 0 8 0 amappl5 112 82 0 70 1 0 1 1 0 8 0 amappl4 104 510 0 478 1 0 1 1 0 8 0 amappl3 96 16056 0 15969 4 1 3 3 0 8 0 amappl2 88 3133 0 3055 2 0 2 2 0 8 0 amappl1 80 22407 0 21820 15 1 14 15 0 8 0 amappl 88 25183 0 25020 5 0 5 5 0 92 0 uvmvnodes 80 198 0 0 5 0 5 5 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma32768 32768 2 0 2 2 2 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 3 0 3 3 3 0 1 0 8 0 dma2048 2048 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 8 0 8 3 3 0 1 0 8 0 dma128 128 255 0 255 3 3 0 1 0 8 0 dma64 64 8 0 8 3 3 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 67 0 10 2 0 2 2 0 8 0 uaddrrnd 24 3016 0 2987 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3016 0 2987 1 0 1 1 0 8 0 vmmpekpl 168 22555 0 22490 4 0 4 4 0 8 0 vmmpepl 168 195031 0 192920 126 23 103 106 0 357 2 vmsppl 488 3015 0 2987 5 0 5 5 0 8 0 rwobjpl 80 52179 0 50721 36 3 33 34 0 8 0 pdppl 4096 6062 0 5989 122 42 80 84 0 8 7 pvpl 32 21381 0 0 174 2 172 172 0 265 0 pmappl 256 3026 0 2991 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 450 0 95 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff838adff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 kd_curproc sys/dev/kcov.c:585 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:153 __mp_lock(ffffffff8396af10) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff8396af10) at __mp_lock+0x1a3 sys/kern/kern_lock.c:165 intr_handler(ffff80002a382070,ffff80000006b400) at intr_handler+0xe9 sys/arch/amd64/amd64/intr.c:560 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f __mp_lock(ffffffff8396af10) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff8396af10) at __mp_lock+0x192 sys/kern/kern_lock.c:165 ktrsysret(ffff8000fffeefa8,28,0,ffff80002a382260) at ktrsysret+0xde ktrwrite2 sys/kern/kern_ktrace.c:-1 [inline] ktrsysret(ffff8000fffeefa8,28,0,ffff80002a382260) at ktrsysret+0xde sys/kern/kern_ktrace.c:209 syscall(ffff80002a382310) at syscall+0xa50 mi_syscall_return sys/sys/syscall_mi.h:204 [inline] syscall(ffff80002a382310) at syscall+0xa50 sys/arch/amd64/amd64/trap.c:786 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a4ce4ab9280, count: -11 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000357ee7e8,ffff80003c451840,ffff80003c451790) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c451840) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c451840) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4f0b899ec90, count: -3