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(ffff80002d982f50,ffff800031392f30,ffff800031392e80) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff800031392f30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800031392f30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62333aacb70, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff800031392e50 rbx 0 rdx 0 rcx 0xffff80002d982f50 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0 r10 0x9edc7995302333de r11 0x74c2986011f4f777 r12 0xffff8000012c5904 r13 0 r14 0xffff800031392f30 r15 0 rip 0xffffffff82950a2b sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800031392d30 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=464891 pid=89183 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002d9831d8,0xffff80002d9822b8 process=0xffff80002ef88490 user=0xffff80003138d000, vmspace=0xfffffd806b950dc8 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 13482 317500 68507 0 2 0 syz-executor 13482 236936 68507 0 3 0x4000080 fsleep syz-executor 76109 314331 4163 0 7 0 syz-executor 76109 78422 4163 0 3 0x4000080 fsleep syz-executor 98152 332364 77819 0 2 0 syz-executor 98152 174527 77819 0 3 0x4000080 fsleep syz-executor 64157 26101 89965 0 2 0 syz-executor 64157 302523 89965 0 2 0x4000000 syz-executor 74136 75874 30217 0 3 0 futex syz-executor 74136 422025 30217 0 3 0x4000080 fsleep syz-executor 28194 321480 71374 0 2 0 syz-executor 28194 443808 71374 0 3 0x4000080 fsleep syz-executor 89183 178326 1769 0 2 0 syz-executor *89183 464891 1769 0 7 0x4000000 syz-executor 89183 494587 1769 0 2 0x4000000 syz-executor 52016 21545 0 0 3 0x14280 nfsidl nfsio 37358 506396 0 0 3 0x14280 nfsidl nfsio 42394 286867 0 0 3 0x14280 nfsidl nfsio 54938 401681 0 0 3 0x14280 nfsidl nfsio 14755 345074 0 0 3 0x14280 nfsidl nfsio 7828 24989 0 0 3 0x14280 nfsidl nfsio 54631 261302 0 0 3 0x14280 nfsidl nfsio 51398 104715 0 0 3 0x14280 nfsidl nfsio 51511 265845 0 0 3 0x14280 nfsidl nfsio 18345 163452 0 0 3 0x14280 nfsidl nfsio 85051 74260 0 0 3 0x14280 nfsidl nfsio 34400 322366 0 0 3 0x14280 nfsidl nfsio 41509 171790 0 0 3 0x14280 nfsidl nfsio 55767 475447 0 0 3 0x14280 nfsidl nfsio 9221 98157 0 0 3 0x14280 nfsidl nfsio 3729 91324 0 0 3 0x14280 nfsidl nfsio 5747 169401 0 0 3 0x14280 nfsidl nfsio 80831 18267 0 0 3 0x14280 nfsidl nfsio 53698 366113 0 0 3 0x14280 nfsidl nfsio 5911 181377 0 0 3 0x14280 nfsidl nfsio 94957 176373 0 0 3 0x14200 bored sosplice 10507 454421 1 0 3 0x100083 ttyin getty 89965 215426 91124 0 2 0x482 syz-executor 68507 327906 91124 0 3 0x82 nanoslp syz-executor 1769 57036 91124 0 2 0x482 syz-executor 71374 294018 91124 0 3 0x82 nanoslp syz-executor 30217 18032 91124 0 3 0x82 nanoslp syz-executor 77819 182747 91124 0 2 0x482 syz-executor 4163 354596 91124 0 3 0x82 nanoslp syz-executor 11743 271155 91124 0 2 0x2 syz-executor 91124 324519 64880 0 2 0x2 syz-executor 64880 348592 75016 0 3 0x10008a sigsusp ksh 75016 163817 51651 0 3 0x98 kqread sshd-session 51651 476418 27842 0 3 0x92 kqread sshd-session 27842 79137 1 0 3 0x88 kqread sshd 35176 446637 75666 74 3 0x1100092 bpf pflogd 75666 465534 1 0 3 0x80 sbwait pflogd 79239 94947 79162 73 3 0x1100090 kqread syslogd 79162 195581 1 0 3 0x100082 sbwait syslogd 41228 197326 1 0 3 0x100080 kqread resolvd 68176 221430 99455 77 3 0x100092 kqread dhcpleased 33347 389923 99455 77 3 0x100092 kqread dhcpleased 99455 25018 1 0 3 0x80 kqread dhcpleased 15168 147156 0 0 3 0x14200 bored smr 54353 388396 0 0 2 0x14200 zerothread 82800 356983 0 0 3 0x14200 aiodoned aiodoned 14978 419031 0 0 3 0x14200 syncer update 50543 69809 0 0 3 0x14200 cleaner cleaner 38897 310181 0 0 3 0x14200 reaper reaper 53633 251937 0 0 3 0x14200 pgdaemon pagedaemon 66396 180554 0 0 3 0x14200 bored viomb 68175 145735 0 0 3 0x40014200 acpi0 acpi0 41423 521739 0 0 3 0x40014200 idle1 54493 68330 0 0 3 0x14200 bored softnet3 41278 44783 0 0 3 0x14200 bored softnet2 50811 437228 0 0 3 0x14200 bored softnet1 54189 134729 0 0 3 0x14200 bored softnet0 83839 85162 0 0 3 0x14200 bored systqmp 38403 105997 0 0 3 0x14200 bored systq 43444 377105 0 0 3 0x14200 tmoslp softclockmp 21826 148068 0 0 2 0x40014200 softclock 18628 349136 0 0 3 0x40014200 idle0 1 106222 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 76109 (syz-executor) thread 0xffff80002d9856f0 (314331) shared rwlock vmmaplk r = 0 (0xfffffd806b950d00) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1785 #2 uvm_fault_check+0x47 sys/uvm/uvm_fault.c:672 #3 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #4 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #5 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #6 recall_trap+0x8 Process 64157 (syz-executor) thread 0xffff80002d985978 (302523) exclusive rwlock vmmaplk r = 0 (0xfffffd806b950620) #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 vm_map_lock_ln+0x143 sys/uvm/uvm_map.c:5252 #3 uvmfault_lookup+0xe8 sys/uvm/uvm_fault.c:1779 #4 uvm_fault_check+0x83e uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #4 uvm_fault_check+0x83e sys/uvm/uvm_fault.c:710 #5 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #6 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #7 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #8 recall_trap+0x8 Process 89183 (syz-executor) thread 0xffff80002d982f50 (464891) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83562a18) #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+0x658 sys/kern/sched_bsd.c:460 #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:179 [inline] #6 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 89183 (syz-executor) thread 0xffff80002d983970 (494587) exclusive rwlock futex r = 0 (0xffffffff834abd50) #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:179 [inline] #2 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #3 Xsyscall+0x128 Process 11743 (syz-executor) thread 0xffff80002a03ef48 (271155) exclusive rrwlock inode r = 0 (0xfffffd8067f82f88) #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 (0xfffffd806cce3818) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10240 11253K 11440K 166960K 11626 0 pcb 18 12K 12K 166960K 65 0 rtable 225 6K 7K 166960K 387 0 pf 36 18K 21K 166960K 59 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 55 2K 2K 166960K 57 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 66 0 ioctlops 0 0K 4K 166960K 1538 0 iov 0 0K 30K 166960K 59 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1437 90K 91K 166960K 1620 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 9 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 17 61K 85K 166960K 349 0 sigio 0 0K 0K 166960K 1 0 proc 73 91K 128K 166960K 560 0 subproc 104 6K 6K 166960K 105 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 27 0 in_multi 96 7K 7K 166960K 105 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 383 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 233 72K 76K 166960K 4923 0 UVM aobj 6 4K 4K 166960K 6 0 pinsyscall 42 84K 99K 166960K 1432 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 11 0 NDP 12 0K 2K 166960K 29 0 temp 44 6816K 7071K 166960K 9886 0 kqueue 13 20K 26K 166960K 50 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 43 0 40 1 0 1 1 0 8 0 rtentry 112 123 0 19 4 0 4 4 0 8 0 unpcb 144 287 0 270 6 4 2 6 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 94 0 90 4 3 1 4 0 8 0 arp 120 20 0 3 1 0 1 1 0 8 0 inpcb 336 364 0 354 7 5 2 7 0 8 0 nd6 136 27 0 0 1 0 1 1 0 8 0 pkpcb 40 3 0 3 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 4 0 1 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 pfanchor 1288 1 0 1 1 0 1 1 0 8 1 pfstitem 24 34 0 1 1 0 1 1 0 8 0 pfstkey 128 34 0 1 2 0 2 2 0 8 0 pfstate 376 33 0 1 4 0 4 4 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 477 0 53 30 0 30 30 0 8 1 art_table 32 478 0 53 4 0 4 4 0 8 0 art_node 16 121 0 30 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 3 1 0 1 1 0 8 0 semapl 112 7 0 1 1 0 1 1 0 8 0 shmpl 112 3 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1951 0 450 95 0 95 95 0 8 0 ffsino 272 1951 0 450 102 0 102 102 0 8 0 nchpl 144 2469 0 788 63 0 63 63 0 8 0 uvmvnodes 80 2236 0 0 46 0 46 46 0 8 0 vnodes 216 2236 0 0 125 0 125 125 0 8 0 namei 1024 8543 0 8542 2 1 1 1 0 8 0 percpumem 16 47 0 1 1 0 1 1 0 8 0 kstatmem 264 26 0 2 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 7954 0 7954 10 8 2 8 1 8 2 plimitpl 152 90 0 73 1 0 1 1 0 8 0 sigapl 424 672 0 602 9 1 8 8 0 8 0 futexpl 64 3485 0 3479 1 0 1 1 0 8 0 knotepl 120 310 0 0 10 0 10 10 0 8 0 kqueuepl 216 142 0 133 4 1 3 3 0 8 2 pipepl 320 132 0 105 3 0 3 3 0 8 0 fdescpl 496 633 0 602 5 0 5 5 0 8 0 filepl 152 3513 0 3268 17 4 13 16 0 8 1 lockfpl 104 208 0 206 2 1 1 2 0 8 0 lockfspl 48 44 0 42 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 32 0 15 1 0 1 1 0 8 0 ucredpl 104 393 0 380 1 0 1 1 0 8 0 zombiepl 144 687 0 687 2 1 1 1 0 8 1 processpl 1160 672 0 602 7 1 6 6 0 8 0 procpl 648 1099 0 1021 8 0 8 8 0 8 1 srpgc 96 4 0 4 1 0 1 1 0 8 1 sosppl 168 3 0 3 1 1 0 1 0 8 0 sockpl 664 698 0 668 15 11 4 14 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 150 0 0 19 0 19 19 0 8 0 mcl2k 2048 42 0 0 5 0 5 5 0 8 0 mtagpl 96 11 0 0 1 0 1 1 0 8 0 mbufpl 256 175 0 0 11 0 11 11 0 8 0 bufpl 280 2707 0 102 187 0 187 187 0 8 0 anonpl 24 165368 0 161981 58 11 47 47 0 185 13 amapchunkpl 152 16070 0 15579 34 9 25 30 0 158 2 amappl16 200 4506 0 4475 25 13 12 15 0 8 8 amappl15 192 38 0 38 1 1 0 1 0 8 0 amappl14 184 119 0 106 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 1283 0 1252 3 1 2 2 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 163 0 163 1 1 0 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 106 0 94 1 0 1 1 0 8 0 amappl6 120 172 0 170 1 0 1 1 0 8 0 amappl5 112 138 0 126 1 0 1 1 0 8 0 amappl4 104 302 0 283 1 0 1 1 0 8 0 amappl3 96 3138 0 3026 5 1 4 4 0 8 0 amappl2 88 680 0 610 2 0 2 2 0 8 0 amappl1 80 8076 0 7511 14 1 13 14 0 8 0 amappl 88 4528 0 4358 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 7 0 7 2 2 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 633 0 602 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 633 0 602 1 0 1 1 0 8 0 vmmpekpl 168 6504 0 6462 3 0 3 3 0 8 0 vmmpepl 168 47621 0 45759 100 5 95 95 0 357 10 vmsppl 440 632 0 602 6 2 4 5 0 8 0 rwobjpl 56 19573 0 16405 48 0 48 48 0 8 1 pdppl 4096 1273 0 1204 97 26 71 81 0 8 2 pvpl 32 14933 0 0 121 0 121 121 0 265 0 pmappl 248 632 0 602 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 384 0 40 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80002d982f50,ffff800031392f30,ffff800031392e80) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff800031392f30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800031392f30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x62333aacb70, 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 __mp_lock(ffffffff83562810) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83562810) at __mp_lock+0x192 sys/kern/kern_lock.c:144 uvm_fault(fffffd806b950c10,ed413ba000,0,1) at uvm_fault+0x1ed sys/uvm/uvm_fault.c:622 upageflttrap(ffff8000371cbfa0,ed413ba000) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 usertrap(ffff8000371cbfa0) at usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x6fff8244a2f0, count: -8