kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: 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(ffff80003c41f740,ffff80003abeeb00,ffff80003abeea50) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003abeeb00) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003abeeb00) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2d9b611c60, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003abeea20 rbx 0 rdx 0 rcx 0xffff80003c41f740 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0 r10 0x986f3cd399119d13 r11 0xde56c8aae077ff05 r12 0xffff80000151c304 r13 0 r14 0xffff80003abeeb00 r15 0 rip 0xffffffff8275457b sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003abee900 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=67874 pid=9204 tcnt=4 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=0xffff80003c41ed00,0xffff80003c41e7f0 process=0xffff8000fffec988 user=0xffff80003abe9000, vmspace=0xfffffd806bef6b58 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9204 72919 54837 0 2 0 syz-executor * 9204 67874 54837 0 7 0x4000000 syz-executor 9204 441976 54837 0 3 0x4000080 fsleep syz-executor 9204 319801 54837 0 2 0x4000000 syz-executor 48798 368577 30266 60929 2 0x10 syz-executor 48798 208940 30266 60929 3 0x4000090 fsleep syz-executor 70387 291644 55800 0 3 0x80 nanoslp syz-executor 70387 32952 55800 0 3 0x4000080 wsevent_read syz-executor 9472 208886 19685 0 3 0x82 piperd syz-executor 38973 79825 19685 0 3 0x82 piperd syz-executor 87021 470817 1 0 3 0x100083 ttyopn getty 95502 156412 0 0 3 0x14200 acct acct 30266 154966 19685 0 3 0x82 nanoslp syz-executor 89048 429738 0 0 3 0x14200 bored sosplice 19383 224473 19685 0 7 0x3 syz-executor 9888 67130 19685 0 3 0x82 piperd syz-executor 55800 161531 19685 0 2 0x3 syz-executor 54837 57107 19685 0 3 0x82 nanoslp syz-executor 70315 425246 19685 0 2 0x2 syz-executor 19685 204704 21542 0 2 0x3 syz-executor 21542 63390 97282 0 3 0x10008a sigsusp ksh 97282 174643 42966 0 3 0x98 kqread sshd-session 42966 248676 37819 0 3 0x92 kqread sshd-session 37819 136556 1 0 3 0x88 kqread sshd 65490 171532 98079 74 3 0x1100092 bpf pflogd 98079 62085 1 0 3 0x80 sbwait pflogd 16870 453648 59344 73 3 0x1100090 kqread syslogd 59344 241892 1 0 3 0x100082 sbwait syslogd 60380 32923 1 0 3 0x100080 kqread resolvd 11320 453764 15572 77 3 0x100092 kqread dhcpleased 89327 59199 15572 77 3 0x100092 kqread dhcpleased 15572 505903 1 0 3 0x80 kqread dhcpleased 76622 426672 0 0 3 0x14200 bored smr 56654 152509 0 0 2 0x14200 zerothread 86767 7953 0 0 3 0x14200 aiodoned aiodoned 44090 52523 0 0 3 0x14200 syncer update 58093 429917 0 0 3 0x14200 cleaner cleaner 41590 404778 0 0 3 0x14200 reaper reaper 99953 320849 0 0 3 0x14200 pgdaemon pagedaemon 63559 205924 0 0 3 0x14200 bored viomb 84383 3113 0 0 3 0x40014200 acpi0 acpi0 21982 373440 0 0 3 0x40014200 idle1 39841 197358 0 0 3 0x14200 bored softnet3 71803 298493 0 0 3 0x14200 bored softnet2 71507 80174 0 0 3 0x14200 bored softnet1 85181 44312 0 0 2 0x14200 softnet0 72196 200328 0 0 3 0x14200 bored systqmp 61863 58390 0 0 3 0x14200 bored systq 99447 84722 0 0 3 0x14200 tmoslp softclockmp 87040 9151 0 0 3 0x40014200 tmoslp softclock 49983 403536 0 0 3 0x40014200 idle0 1 496257 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 9204 (syz-executor) thread 0xffff80003c41ed00 (72919) exclusive rwlock vmmaplk r = 0 (0xfffffd806bef6c58) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5250 #3 uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3057 #4 sys_mprotect+0x34c sys/uvm/uvm_mmap.c:590 #5 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 #6 Xsyscall+0x128 Process 9204 (syz-executor) thread 0xffff80003c41f740 (67874) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839eaeb0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 yield+0x6a sys/kern/sched_bsd.c:320 #4 malloc+0xe5 sys/kern/kern_malloc.c:174 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #7 Xsyscall+0x128 Process 70315 (syz-executor) thread 0xffff80002a299208 (425246) exclusive rwlock vmmaplk r = 0 (0xfffffd806bef6a78) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5250 #3 uvmspace_fork+0x12b sys/uvm/uvm_map.c:3820 #4 process_new+0x572 sys/kern/kern_fork.c:282 #5 fork1+0x3ea sys/kern/kern_fork.c:408 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #7 Xsyscall+0x128 exclusive rwlock vmmaplk r = 0 (0xfffffd806e05a890) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5250 #3 uvmspace_fork+0x44 sys/uvm/uvm_map.c:3811 #4 process_new+0x572 sys/kern/kern_fork.c:282 #5 fork1+0x3ea sys/kern/kern_fork.c:408 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10220 11193K 11410K 166960K 12301 0 pcb 17 12K 12K 166960K 124 0 rtable 224 8K 9K 166960K 600 0 pf 34 17K 81K 166960K 105 0 ifaddr 40 7K 7K 166960K 86 0 ifgroup 51 2K 2K 166960K 127 0 sysctl 4 1K 9K 166960K 13 0 counters 64 36K 37K 166960K 130 0 ioctlops 0 0K 4K 166960K 1582 0 iov 0 0K 24K 166960K 65 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1404 88K 89K 166960K 2118 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 33 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 236K 166960K 946 0 sigio 0 0K 0K 166960K 84 0 proc 72 91K 140K 166960K 681 0 subproc 72 4K 4K 166960K 101 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 270 0 in_multi 88 6K 7K 166960K 160 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 556 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 210 175K 193K 166960K 10395 0 UVM aobj 25 2K 2K 166960K 30 0 pinsyscall 39 78K 102K 166960K 2152 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 121 0 NDP 11 0K 2K 166960K 57 0 temp 62 8667K 8922K 166960K 39740 0 kqueue 14 22K 29K 166960K 185 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 129 0 126 2 1 1 2 0 8 0 rtentry 176 165 0 66 6 0 6 6 0 8 0 unpcb 144 853 0 832 10 4 6 6 0 8 5 syncache 336 9 0 9 3 3 0 1 0 8 0 tcpcb 808 376 0 372 8 7 1 7 0 8 0 arp 128 28 0 9 1 0 1 1 0 8 0 inpcb 384 1028 0 1018 18 15 3 11 0 8 1 nd6 144 38 0 13 2 0 2 2 0 8 0 pkpcb 40 8 0 8 3 2 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 1 0 1 0 8 0 ppxss 1192 22 0 22 2 2 0 1 0 8 0 pppxif 1504 3 0 3 1 1 0 1 0 8 0 pffrag 232 7 0 0 1 0 1 1 0 482 0 pffrnode 88 7 0 0 1 0 1 1 0 8 0 pffrent 40 7 0 0 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 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 66 0 27 1 0 1 1 0 8 0 pfstkey 128 66 0 27 2 0 2 2 0 8 0 pfstate 384 66 0 27 5 0 5 5 0 8 0 pfrule 1344 23 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 724 0 303 31 4 27 30 0 8 0 art_table 32 726 0 303 4 0 4 4 0 8 0 art_node 16 163 0 74 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 14 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 28 0 19 1 0 1 1 0 8 0 shmpl 112 27 0 5 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3099 0 1590 95 0 95 95 0 8 0 ffsino 288 3099 0 1590 109 0 109 109 0 8 0 nchpl 144 4370 0 3820 64 40 24 64 0 8 0 rtmask 32 4 0 4 1 1 0 1 0 8 0 uvmvnodes 80 3582 0 0 74 0 74 74 0 8 0 vnodes 216 3582 0 0 199 0 199 199 0 8 0 namei 1024 13992 0 13992 3 2 1 1 0 8 1 percpumem 16 80 0 33 1 0 1 1 0 8 0 kstatmem 264 72 0 48 2 0 2 2 0 8 0 scsiplug 72 2 0 2 2 2 0 1 0 8 0 scxspl 216 13339 0 13339 10 9 1 8 1 8 1 plimitpl 152 202 0 185 1 0 1 1 0 8 0 sigapl 424 1244 0 1196 8 1 7 7 0 8 0 knotepl 120 559 0 0 17 0 17 17 0 8 0 kqueuepl 224 365 0 355 7 2 5 5 0 8 4 pipepl 336 220 0 193 5 2 3 5 0 8 0 fdescpl 520 1223 0 1195 3 0 3 3 0 8 0 filepl 160 6952 0 6731 25 6 19 19 0 8 8 lockfpl 104 281 0 279 1 0 1 1 0 8 0 lockfspl 48 103 0 101 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 85 0 68 1 0 1 1 0 8 0 ucredpl 104 927 0 912 1 0 1 1 0 8 0 zombiepl 144 1445 0 1445 2 1 1 1 0 8 1 processpl 1208 1244 0 1196 5 0 5 5 0 8 0 procpl 656 2596 0 2543 7 1 6 6 0 8 0 srpgc 96 8 0 8 3 3 0 1 0 8 0 sosppl 168 4 0 4 2 2 0 1 0 8 0 sockpl 728 2035 0 2003 31 19 12 16 0 8 8 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 127 0 0 16 0 16 16 0 8 0 mcl2k 2048 26 0 0 4 1 3 4 0 8 0 mtagpl 96 91 0 0 3 0 3 3 0 8 0 mbufpl 256 1517 0 0 95 0 95 95 0 8 0 bufpl 280 3774 0 131 261 0 261 261 0 8 0 anonpl 32 8912 0 0 72 0 72 72 0 246 0 amapchunkpl 152 34686 0 34283 41 12 29 31 0 158 8 amappl16 200 1338 0 1304 18 15 3 14 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 125 0 112 1 0 1 1 0 8 0 amappl12 168 1931 0 1904 3 1 2 2 0 8 0 amappl11 160 47 0 33 1 0 1 1 0 8 0 amappl9 144 251 0 251 1 1 0 1 0 8 0 amappl8 136 19 0 16 1 0 1 1 0 8 0 amappl7 128 116 0 104 1 0 1 1 0 8 0 amappl6 120 210 0 206 1 0 1 1 0 8 0 amappl5 112 130 0 120 1 0 1 1 0 8 0 amappl4 104 350 0 331 1 0 1 1 0 8 0 amappl3 96 6610 0 6525 5 1 4 4 0 8 0 amappl2 88 722 0 660 2 0 2 2 0 8 0 amappl1 80 12721 0 12135 16 1 15 15 0 8 0 amappl 88 9458 0 9323 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 8 0 8 2 2 0 1 0 8 0 dma128 128 254 0 254 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 29 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1223 0 1195 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1223 0 1195 1 0 1 1 0 8 0 vmmpekpl 168 11270 0 11217 3 0 3 3 0 8 0 vmmpepl 168 80973 0 79187 103 11 92 98 0 357 0 vmsppl 480 1222 0 1195 5 0 5 5 0 8 0 rwobjpl 72 25151 0 20642 83 0 83 83 0 8 0 pdppl 4096 2454 0 2390 118 46 72 84 0 8 8 pvpl 32 16271 0 0 133 1 132 132 0 265 0 pmappl 256 1222 0 1195 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 503 0 69 13 0 13 13 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80003c41f740,ffff80003abeeb00,ffff80003abeea50) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003abeeb00) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003abeeb00) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2d9b611c60, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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 __mp_lock(ffffffff839eaca8) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff839eaca8) at __mp_lock+0x192 sys/kern/kern_lock.c:144 ktrsyscall(ffff80002a298a58,6,8,ffff80002a376de0) at ktrsyscall+0x2b3 ktrwrite sys/kern/kern_ktrace.c:-1 [inline] ktrsyscall(ffff80002a298a58,6,8,ffff80002a376de0) at ktrsyscall+0x2b3 sys/kern/kern_ktrace.c:183 syscall(ffff80002a376de0) at syscall+0x2e6 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a376de0) at syscall+0x2e6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x73a14c063c80, count: -7