kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: 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(ffff8000fffea538,ffff80003720a3c0,ffff80003720a310) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003720a3c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003720a3c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc366ebbbb20, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003720a2e0 rbx 0 rdx 0 rcx 0xffff8000fffea538 rax 0xdeaf4152deaf4152 r8 0x7f7fffffc000 r9 0xfffffd807f7d31a0 r10 0xb7a30cb05942579b r11 0x41ee598bee1b0827 r12 0xffff80003720a1c4 r13 0 r14 0xffff80003720a3c0 r15 0 rip 0xffffffff828121bb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003720a1c0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=5032 pid=44717 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=52, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffeacd0,0xffff8000fffebc10 process=0xffff8000fffef1f8 user=0xffff800037205000, vmspace=0xfffffd806c0b0dc0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44717 63604 21190 32767 7 0x10 syz-executor *44717 5032 21190 32767 7 0x4000010 syz-executor 44717 229286 21190 32767 2 0x4000090 syz-executor 44717 455236 21190 32767 3 0x4000090 fsleep syz-executor 47673 386897 20884 0 2 0x100002 sh 33056 132348 86624 0 2 0x100002 arp 86624 300707 48707 0 3 0x10008a sigsusp sh 95943 424734 54601 32767 2 0x10 syz-executor 95943 308624 54601 32767 3 0x4000090 fsleep syz-executor 95943 496848 54601 32767 3 0x4000090 fsleep syz-executor 84820 215724 99818 0 2 0x100002 arp 18145 30062 159 32767 2 0x10 syz-executor 18145 32211 159 32767 3 0x4000090 fsleep syz-executor 99818 489497 81403 0 3 0x10008a sigsusp sh 28453 259055 11256 32767 2 0x10 syz-executor 28453 299637 11256 32767 3 0x4000090 fsleep syz-executor 48707 224441 82473 0 3 0x80 wait syz-executor 81944 218641 31738 32767 3 0x10 biowait syz-executor 20884 173837 35200 0 3 0x80 wait syz-executor 11256 282935 68653 32767 3 0x90 nanoslp syz-executor 21190 352575 51134 32767 3 0x90 nanoslp syz-executor 81403 302182 44043 0 3 0x80 wait syz-executor 159 513735 42495 32767 3 0x90 nanoslp syz-executor 54601 363462 35366 32767 3 0x90 nanoslp syz-executor 35200 163930 27665 0 3 0x82 wait syz-executor 51134 304638 27665 0 3 0x82 wait syz-executor 35366 76426 27665 0 3 0x82 wait syz-executor 44043 408447 27665 0 3 0x82 wait syz-executor 82473 319777 27665 0 3 0x82 wait syz-executor 42495 355118 27665 0 3 0x82 wait syz-executor 31738 23613 27665 0 3 0x82 wait syz-executor 68653 82474 27665 0 3 0x82 wait syz-executor 27665 143896 79677 0 3 0x82 kqread syz-executor 79677 83515 2514 0 3 0x10008a sigsusp ksh 2514 490609 52016 0 3 0x98 kqread sshd-session 52016 95982 85508 0 3 0x92 kqread sshd-session 48048 115765 1 0 3 0x100083 ttyin getty 85508 320459 1 0 3 0x88 kqread sshd 79084 183463 8902 73 3 0x1100090 kqread syslogd 8902 428832 1 0 3 0x100082 sbwait syslogd 46201 520291 1 0 3 0x100080 kqread resolvd 13156 220411 39055 77 3 0x100092 kqread dhcpleased 48102 514871 39055 77 3 0x100092 kqread dhcpleased 39055 358263 1 0 3 0x80 kqread dhcpleased 65016 74982 0 0 3 0x14200 bored smr 5308 214953 0 0 2 0x14200 zerothread 79158 312748 0 0 3 0x14200 aiodoned aiodoned 52941 129520 0 0 3 0x14200 syncer update 172 323745 0 0 3 0x14200 cleaner cleaner 35812 39811 0 0 3 0x14200 reaper reaper 9570 176341 0 0 3 0x14200 pgdaemon pagedaemon 25694 44735 0 0 3 0x14200 bored viomb 17 486899 0 0 3 0x40014200 acpi0 acpi0 28985 507853 0 0 3 0x40014200 idle1 23161 164229 0 0 3 0x14200 bored softnet3 17743 324955 0 0 3 0x14200 bored softnet2 45782 120615 0 0 3 0x14200 bored softnet1 8674 513006 0 0 3 0x14200 bored softnet0 42736 417915 0 0 3 0x14200 bored systqmp 19226 466158 0 0 3 0x14200 bored systq 65435 445862 0 0 3 0x14200 tmoslp softclockmp 17149 117131 0 0 3 0x40014200 tmoslp softclock 49341 7849 0 0 3 0x40014200 idle0 1 194229 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44717 (syz-executor) thread 0xffff8000fffea538 (5032) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835472d8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x21e sys/kern/kern_synch.c:416 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 vm_map_lock_ln+0x143 sys/uvm/uvm_map.c:5252 #6 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1779 #7 uvm_fault_check+0x83e uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #7 uvm_fault_check+0x83e sys/uvm/uvm_fault.c:710 #8 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #9 kpageflttrap+0x2d0 sys/arch/amd64/amd64/trap.c:279 #10 kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 #11 alltraps_kern_meltdown+0x7b #12 _copyin+0x57 #13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 Process 81944 (syz-executor) thread 0xffff8000ffff4020 (218641) exclusive rrwlock inode r = 0 (0xfffffd806c4ee808) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 ufs_ihashins+0x4f sys/ufs/ufs/ufs_ihash.c:169 #5 ffs_vget+0x187 sys/ufs/ffs/ffs_vfsops.c:1230 #6 ffs_inode_alloc+0x283 sys/ufs/ffs/ffs_alloc.c:393 #7 ufs_mkdir+0x113 sys/ufs/ufs/ufs_vnops.c:1112 #8 VOP_MKDIR+0x102 sys/kern/vfs_vops.c:394 #9 domkdirat+0x179 sys/kern/vfs_syscalls.c:3099 #10 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #10 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c769d68) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 domkdirat+0x8b sys/kern/vfs_syscalls.c:3084 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10177 11046K 11059K 166960K 11255 0 pcb 17 12K 12K 166960K 17 0 rtable 188 5K 5K 166960K 278 0 pf 31 16K 16K 166960K 31 0 ifaddr 36 6K 6K 166960K 38 0 ifgroup 50 2K 2K 166960K 50 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 26 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1364 86K 86K 166960K 1380 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 27 101K 125K 166960K 135 0 proc 58 79K 127K 166960K 452 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2 0 in_multi 69 5K 5K 166960K 70 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 323 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 236 73K 73K 166960K 2540 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 50 100K 111K 166960K 1096 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 21 1K 1K 166960K 21 0 temp 34 6810K 6874K 166960K 3492 0 kqueue 13 20K 22K 166960K 23 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 30 0 25 1 0 1 1 0 8 0 rtentry 112 88 0 1 3 0 3 3 0 8 0 unpcb 144 168 0 148 1 0 1 1 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 11 0 4 1 0 1 1 0 8 0 arp 120 16 0 0 1 0 1 1 0 8 0 inpcb 336 61 0 51 1 0 1 1 0 8 0 nd6 136 15 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 331 0 0 21 0 21 21 0 8 0 art_table 32 332 0 0 3 0 3 3 0 8 0 art_node 16 87 0 7 1 0 1 1 0 8 0 semupl 112 1 0 0 1 0 1 1 0 8 0 semapl 112 3 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1544 0 45 94 0 94 94 0 8 0 ffsino 272 1544 0 45 100 0 100 100 0 8 0 nchpl 144 1730 0 57 62 0 62 62 0 8 0 uvmvnodes 80 1657 0 0 34 0 34 34 0 8 0 vnodes 216 1657 0 0 93 0 93 93 0 8 0 namei 1024 4928 0 4927 1 0 1 1 0 8 0 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5003 0 5002 4 1 3 3 1 8 2 plimitpl 152 35 0 11 1 0 1 1 0 8 0 sigapl 424 406 0 349 8 0 8 8 0 8 0 futexpl 64 97 0 92 1 0 1 1 0 8 0 knotepl 120 53 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 11 1 0 1 1 0 8 0 pipepl 320 102 0 72 3 0 3 3 0 8 0 fdescpl 496 388 0 349 7 1 6 6 0 8 0 filepl 152 1425 0 1172 10 0 10 10 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 21 0 5 1 0 1 1 0 8 0 pgrppl 48 29 0 5 1 0 1 1 0 8 0 ucredpl 104 72 0 56 1 0 1 1 0 8 0 zombiepl 144 349 0 349 1 0 1 1 0 8 1 processpl 1160 406 0 349 5 0 5 5 0 8 0 procpl 648 421 0 357 6 0 6 6 0 8 0 sockpl 664 259 0 223 4 0 4 4 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 145 0 0 19 0 19 19 0 8 0 mcl2k 2048 14 0 0 2 0 2 2 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 150 0 0 10 0 10 10 0 8 0 bufpl 280 2152 0 95 147 0 147 147 0 8 0 anonpl 24 130808 0 127594 24 0 24 24 0 185 4 amapchunkpl 152 8300 0 7820 19 0 19 19 0 158 0 amappl16 200 3506 0 3501 5 0 5 5 0 8 4 amappl15 192 27 0 27 1 0 1 1 0 8 1 amappl14 184 135 0 123 1 0 1 1 0 8 0 amappl13 176 37 0 37 1 0 1 1 0 8 1 amappl12 168 964 0 926 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 0 1 1 0 8 1 amappl9 144 141 0 141 1 0 1 1 0 8 1 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 107 0 95 1 0 1 1 0 8 0 amappl6 120 169 0 165 1 0 1 1 0 8 0 amappl5 112 124 0 116 1 0 1 1 0 8 0 amappl4 104 261 0 248 1 0 1 1 0 8 0 amappl3 96 1576 0 1487 3 0 3 3 0 8 0 amappl2 88 636 0 551 2 0 2 2 0 8 0 amappl1 80 7054 0 6474 13 0 13 13 0 8 0 amappl 88 2228 0 2051 4 0 4 4 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 253 0 253 1 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 388 0 349 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 388 0 349 1 0 1 1 0 8 0 vmmpekpl 168 4488 0 4454 2 0 2 2 0 8 0 vmmpepl 168 32223 0 30256 89 0 89 89 0 357 2 vmsppl 440 387 0 349 5 0 5 5 0 8 0 rwobjpl 56 14946 0 12399 37 0 37 37 0 8 0 pdppl 4096 783 0 698 115 18 97 97 0 8 12 pvpl 32 9170 0 0 75 0 75 75 0 265 1 pmappl 248 387 0 349 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 373 0 20 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(ffffffff8346aff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x33 sys/dev/kcov.c:158 __mp_lock(ffffffff835470d0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835470d0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 intr_handler(ffff8000372040a0,ffff800000079f80) at intr_handler+0xe1 sys/arch/amd64/amd64/intr.c:553 Xintr_ioapic_edge23_untramp() at Xintr_ioapic_edge23_untramp+0x18f end of kernel end trace frame: 0x799a3088dfd0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000fffea538,ffff80003720a3c0,ffff80003720a310) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003720a3c0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80003720a3c0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc366ebbbb20, count: -3