login: 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(ffff800031384538,ffff80003721abf0,ffff80003721ab40) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003721abf0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003721abf0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x25b55238ba0, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003721ab10 rbx 0 rdx 0 rcx 0xffff800031384538 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0 r10 0xaa13894a91e51587 r11 0x2b370edfcf7734a7 r12 0xffff800001324504 r13 0 r14 0xffff80003721abf0 r15 0 rip 0xffffffff8197b9eb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003721a9f0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=486503 pid=90067 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800031385468,0xffff800031384a58 process=0xffff8000ffff2460 user=0xffff800037215000, vmspace=0xfffffd806d0c0e10 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75053 316756 14876 0 2 0 syz-executor 75053 367013 14876 0 3 0x4000080 fsleep syz-executor 90067 158402 38474 0 3 0 futex syz-executor *90067 486503 38474 0 7 0x4000000 syz-executor 90067 158681 38474 0 2 0x4000000 syz-executor 90067 4006 38474 0 3 0x4000080 fsleep syz-executor 5112 354348 94226 0 2 0 syz-executor 5112 265064 94226 0 3 0x4000080 fsleep syz-executor 5112 282138 94226 0 2 0x4000000 syz-executor 89339 356594 1 0 3 0x100083 ttyin getty 57618 426429 0 0 3 0x14200 bored sosplice 73663 178902 2751 0 3 0x100082 sbwait arp 2751 280831 48141 0 3 0x10008a sigsusp sh 14876 472192 30216 0 2 0x482 syz-executor 38474 72445 30216 0 3 0x82 nanoslp syz-executor 48141 128543 30216 0 3 0x82 wait syz-executor 94226 432069 30216 0 2 0x482 syz-executor 39273 106499 30216 0 3 0x82 wait syz-executor 95601 92978 30216 0 2 0x2 syz-executor 86191 392932 30216 0 2 0x2 syz-executor 82937 29262 30216 0 7 0x2 syz-executor 30216 284633 48815 0 2 0x2 syz-executor 48815 192226 82421 0 3 0x10008a sigsusp ksh 82421 520213 79432 0 3 0x98 kqread sshd-session 79432 304385 65859 0 3 0x92 kqread sshd-session 65859 20878 1 0 3 0x88 kqread sshd 96375 474266 44311 74 3 0x1100092 bpf pflogd 44311 266517 1 0 3 0x80 sbwait pflogd 57847 346107 12134 73 3 0x1100090 kqread syslogd 12134 427166 1 0 3 0x100082 sbwait syslogd 38030 35633 1 0 3 0x100080 kqread resolvd 11864 47613 69733 77 3 0x100092 kqread dhcpleased 65569 234153 69733 77 3 0x100092 kqread dhcpleased 69733 468866 1 0 3 0x80 kqread dhcpleased 61331 295570 0 0 2 0x14200 smr 94342 32242 0 0 2 0x14200 zerothread 79745 58744 0 0 3 0x14200 aiodoned aiodoned 30447 205010 0 0 3 0x14200 syncer update 44077 519078 0 0 3 0x14200 cleaner cleaner 5341 352289 0 0 2 0x14200 reaper 13887 378627 0 0 3 0x14200 pgdaemon pagedaemon 95550 311378 0 0 3 0x14200 bored viomb 41727 437131 0 0 3 0x40014200 acpi0 acpi0 50945 349476 0 0 3 0x40014200 idle1 20330 240980 0 0 3 0x14200 bored softnet3 25066 425744 0 0 3 0x14200 bored softnet2 81995 263878 0 0 3 0x14200 bored softnet1 74352 214142 0 0 3 0x14200 bored softnet0 41845 42106 0 0 3 0x14200 bored systqmp 61659 409362 0 0 3 0x14200 bored systq 2497 296669 0 0 3 0x14200 tmoslp softclockmp 80904 317908 0 0 3 0x40014200 tmoslp softclock 88228 450878 0 0 3 0x40014200 idle0 1 254305 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 90067 (syz-executor) thread 0xffff800031384538 (486503) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83553710) #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 yield+0x6a sys/kern/sched_bsd.c:320 #4 malloc+0xe5 sys/kern/kern_malloc.c:170 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #6 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 90067 (syz-executor) thread 0xffff800031384a48 (158681) exclusive rwlock futex r = 0 (0xffffffff834b0e80) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 sys_futex+0x69 sys/kern/sys_futex.c:98 #2 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #2 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #3 Xsyscall+0x128 Process 5112 (syz-executor) thread 0xffff800031384cd0 (282138) exclusive rwlock vmmaplk r = 0 (0xfffffd806b782490) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1813 #3 uvm_fault_check+0x831 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #3 uvm_fault_check+0x831 sys/uvm/uvm_fault.c:712 #4 uvm_fault+0xf5 sys/uvm/uvm_fault.c:600 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #6 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #7 recall_trap+0x8 Process 95601 (syz-executor) thread 0xffff80002a03e7b0 (92978) exclusive rrwlock inode r = 0 (0xfffffd806bdf25f0) #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 vget+0x2bd sys/kern/vfs_subr.c:678 #6 ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98 #7 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201 #8 ufs_lookup+0x19f8 sys/ufs/ufs/ufs_lookup.c:478 #9 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #10 vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 #11 namei+0x7aa sys/kern/vfs_lookup.c:250 #12 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #13 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #13 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806cdbc928) #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 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 86191 (syz-executor) thread 0xffff80002a03f1d0 (392932) exclusive rrwlock inode r = 0 (0xfffffd806cdbc3d8) #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:178 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 Process 5341 (reaper) thread 0xffff800029fd8a28 (352289) exclusive rwlock kmmaplk r = 0 (0xffffffff83571e18) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5255 #2 uvm_unmap+0x81 sys/uvm/uvm_map.c:1792 #3 km_free+0x87 sys/uvm/uvm_km.c:833 #4 uvm_uarea_free+0x4f sys/uvm/uvm_glue.c:284 #5 reaper+0x1fe sys/kern/kern_exit.c:466 #6 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10197 11127K 11448K 166960K 11940 0 pcb 19 16K 21K 166960K 211 0 rtable 183 6K 7K 166960K 409 0 pf 36 17K 18K 166960K 61 0 ifaddr 40 6K 7K 166960K 57 0 ifgroup 59 2K 2K 166960K 81 0 sysctl 3 0K 0K 166960K 3 0 counters 66 36K 36K 166960K 78 0 ioctlops 0 0K 4K 166960K 1512 0 iov 0 0K 20K 166960K 94 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1421 89K 90K 166960K 1752 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 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 93K 166960K 596 0 sigio 0 0K 0K 166960K 15 0 proc 72 91K 127K 166960K 565 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 51 0 in_multi 78 5K 6K 166960K 116 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 506 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 221 72K 77K 166960K 7237 0 UVM aobj 19 2K 4K 166960K 20 0 pinsyscall 42 84K 106K 166960K 1675 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 90 0 NDP 14 0K 1K 166960K 34 0 temp 57 6823K 6888K 166960K 17934 0 kqueue 14 22K 26K 166960K 109 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 56 0 52 1 0 1 1 0 8 0 rtentry 112 121 0 41 4 1 3 4 0 8 0 unpcb 144 486 0 466 6 3 3 4 0 8 2 syncache 336 6 0 6 3 3 0 1 0 8 0 tcpcb 808 249 0 245 7 6 1 7 0 8 0 arp 120 20 0 4 1 0 1 1 0 8 0 inpcb 336 694 0 685 14 12 2 13 0 8 0 nd6 136 24 0 8 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 3 0 3 1 1 0 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 57 0 3 1 0 1 1 0 8 0 pfstkey 128 57 0 3 2 0 2 2 0 8 0 pfstate 376 57 0 3 6 0 6 6 0 8 0 pfrule 1344 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 517 0 154 27 2 25 27 0 8 2 art_table 32 519 0 154 4 0 4 4 0 8 0 art_node 16 118 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 80 0 40 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 27 0 18 1 0 1 1 0 8 0 shmpl 112 17 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2444 0 945 95 0 95 95 0 8 0 ffsino 272 2444 0 945 101 0 101 101 0 8 0 nchpl 144 3326 0 2793 63 40 23 63 0 8 0 uvmvnodes 80 2753 0 0 57 0 57 57 0 8 0 vnodes 216 2753 0 0 153 0 153 153 0 8 0 namei 1024 10648 0 10646 2 1 1 1 0 8 0 percpumem 16 53 0 6 1 0 1 1 0 8 0 kstatmem 264 38 0 12 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 10932 0 10932 9 8 1 8 1 8 1 plimitpl 152 149 0 132 1 0 1 1 0 8 0 sigapl 424 900 0 851 7 0 7 7 0 8 0 futexpl 64 7101 0 7097 1 0 1 1 0 8 0 knotepl 120 559 0 0 17 0 17 17 0 8 0 kqueuepl 216 141 0 131 1 0 1 1 0 8 0 pipepl 320 148 0 121 3 0 3 3 0 8 0 fdescpl 496 880 0 850 5 0 5 5 0 8 0 filepl 152 4723 0 4473 18 6 12 18 0 8 2 lockfpl 104 151 0 149 1 0 1 1 0 8 0 lockfspl 48 63 0 61 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 40 0 23 1 0 1 1 0 8 0 ucredpl 104 634 0 621 1 0 1 1 0 8 0 zombiepl 144 896 0 895 1 0 1 1 0 8 0 processpl 1160 900 0 851 5 1 4 5 0 8 0 procpl 648 1713 0 1657 6 0 6 6 0 8 0 srpgc 96 2 0 2 1 0 1 1 0 8 1 sosppl 168 6 0 6 2 1 1 1 0 8 1 sockpl 664 1243 0 1210 20 14 6 17 0 8 2 mcl64k 65536 3 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 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 152 0 0 19 1 18 19 0 8 0 mcl2k 2048 36 0 0 4 0 4 4 0 8 0 mtagpl 96 9 0 0 1 0 1 1 0 8 0 mbufpl 256 336 0 0 21 0 21 21 0 8 0 bufpl 280 4235 0 107 295 0 295 295 0 8 0 anonpl 24 215910 0 212442 65 18 47 47 0 185 15 amapchunkpl 152 23847 0 23410 30 7 23 25 0 158 2 amappl16 200 6002 0 5982 26 14 12 14 0 8 8 amappl15 192 42 0 42 2 1 1 1 0 8 1 amappl14 184 122 0 109 1 0 1 1 0 8 0 amappl13 176 15 0 15 1 1 0 1 0 8 0 amappl12 168 1528 0 1497 3 1 2 2 0 8 0 amappl11 160 80 0 66 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 186 0 186 1 1 0 1 0 8 0 amappl8 136 49 0 46 1 0 1 1 0 8 0 amappl7 128 110 0 97 1 0 1 1 0 8 0 amappl6 120 162 0 160 1 0 1 1 0 8 0 amappl5 112 141 0 128 1 0 1 1 0 8 0 amappl4 104 321 0 298 1 0 1 1 0 8 0 amappl3 96 4307 0 4222 3 0 3 3 0 8 0 amappl2 88 1182 0 1097 3 0 3 3 0 8 0 amappl1 80 9628 0 9033 15 1 14 15 0 8 0 amappl 88 6821 0 6665 6 1 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 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 19 0 1 1 0 1 1 0 8 0 uaddrrnd 24 880 0 850 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 880 0 850 1 0 1 1 0 8 0 vmmpekpl 168 8796 0 8754 3 0 3 3 0 8 0 vmmpepl 168 63391 0 61603 101 5 96 96 0 357 9 vmsppl 448 879 0 850 5 0 5 5 0 8 0 rwobjpl 56 24756 0 21025 55 0 55 55 0 8 0 pdppl 4096 1767 0 1700 111 38 73 85 0 8 6 pvpl 32 14793 0 0 121 1 120 120 0 265 0 pmappl 248 879 0 850 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 421 0 66 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff800031384538,ffff80003721abf0,ffff80003721ab40) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003721abf0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003721abf0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x25b55238ba0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029b7bff0) 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+0x1a kd_curproc sys/dev/kcov.c:580 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1a sys/dev/kcov.c:153 __mp_lock(ffffffff83553508) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83553508) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff83553508,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 yield() at yield+0x6a sys/kern/sched_bsd.c:320 pool_get(ffffffff83557350,1) at pool_get+0x242 sys/kern/subr_pool.c:589 namei(ffff80002a09bd98) at namei+0xdf sys/kern/vfs_lookup.c:145 vn_open(ffff80002a09bd98,30001,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a03ef48,ffffff9c,7d834f58af70,30000,0,ffff80002a09bf40) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff80002a09bff0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a09bff0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d834f58aa70, count: -14