login: 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(ffff8000fffef240,ffff80003c3f1860,ffff80003c3f17b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c3f1860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f1860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1759d4690c0, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c3f1780 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff8000fffef240 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0x1 r10 0xc58b4d380ab1b391 r11 0xcd53d65b205c1313 r12 0 r13 0xfffffd806c788690 r14 0xffff80003c3f1860 r15 0 rip 0xffffffff832e3045 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c3f1690 ss 0 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=510112 pid=92793 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=0xffff8000fffee548,0xffff8000fffeed20 process=0xffff8000ffff2b60 user=0xffff80003c3ec000, vmspace=0xfffffd8060310210 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92793 82475 93056 0 7 0 syz-executor *92793 510112 93056 0 7 0x4000000 syz-executor 92793 65108 93056 0 3 0x4000080 fsleep syz-executor 92793 58607 93056 0 2 0x4000000 syz-executor 21907 459750 72772 0 2 0 syz-executor 26294 117587 86783 0 2 0 syz-executor 84521 373340 18518 0 2 0x1 syz-executor 84521 517251 18518 0 3 0x4000080 fsleep syz-executor 84146 371932 53712 0 2 0 syz-executor 84146 465871 53712 0 3 0x4000080 fsleep syz-executor 15596 246480 90534 0 2 0 syz-executor 15596 496891 90534 0 3 0x4000080 fsleep syz-executor 39720 265219 1 0 3 0x100083 ttyin getty 47245 74180 15920 0 2 0x10000003 syz-executor 90534 301319 15920 0 3 0x82 nanoslp syz-executor 53712 37827 15920 0 3 0x82 nanoslp syz-executor 86783 136323 15920 0 3 0x82 nanoslp syz-executor 18518 115618 15920 0 3 0x82 nanoslp syz-executor 93056 281654 15920 0 3 0x82 nanoslp syz-executor 72772 102118 15920 0 3 0x82 nanoslp syz-executor 79467 274417 15920 0 2 0x3 syz-executor 15920 87732 25580 0 2 0x2 syz-executor 25580 306800 45645 0 3 0x10008a sigsusp ksh 45645 479912 35169 0 3 0x98 kqread sshd-session 35169 250661 58808 0 3 0x92 kqread sshd-session 58808 486630 1 0 3 0x88 kqread sshd 19014 439660 46829 74 3 0x1100092 bpf pflogd 46829 494309 1 0 3 0x80 sbwait pflogd 95221 199271 164 73 3 0x1100090 kqread syslogd 164 297750 1 0 3 0x100082 sbwait syslogd 6691 162711 1 0 3 0x100080 kqread resolvd 57047 470830 78172 77 3 0x100092 kqread dhcpleased 31285 216113 78172 77 3 0x100092 kqread dhcpleased 78172 370144 1 0 3 0x80 kqread dhcpleased 78155 520667 0 0 3 0x14200 bored smr 17387 236727 0 0 2 0x14200 zerothread 71911 471747 0 0 3 0x14200 aiodoned aiodoned 12541 324823 0 0 3 0x14200 syncer update 89939 223356 0 0 3 0x14200 cleaner cleaner 79402 116883 0 0 3 0x14200 reaper reaper 19664 288861 0 0 3 0x14200 pgdaemon pagedaemon 14029 144810 0 0 3 0x14200 bored viomb 9224 480265 0 0 3 0x40014200 acpi0 acpi0 62150 245085 0 0 3 0x40014200 idle1 18091 10250 0 0 3 0x14200 bored softnet1 8790 435840 0 0 3 0x14200 bored softnet0 20028 66542 0 0 3 0x14200 bored systqmp 84025 507193 0 0 3 0x14200 bored systq 40780 462313 0 0 3 0x14200 tmoslp softclockmp 4581 510943 0 0 3 0x40014200 tmoslp softclock 96298 110902 0 0 3 0x40014200 idle0 1 106618 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 92793 (syz-executor) thread 0xffff8000fffef240 (510112) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83980b40) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:175 #3 sys_semop+0x22f sys/kern/sysv_sem.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11098 12112K 13979K 166960K 14452 0 pcb 17 16K 32K 166960K 359 0 rtable 218 13K 13K 166960K 835 0 pf 30 16K 81K 166960K 234 0 ifaddr 36 7K 8K 166960K 145 0 ifgroup 44 1K 2K 166960K 224 0 sysctl 4 1K 9K 166960K 19 0 counters 66 36K 37K 166960K 246 0 ioctlops 0 0K 4K 166960K 1873 0 iov 0 0K 16K 166960K 154 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1473 93K 93K 166960K 2829 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 22 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 91 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 240K 166960K 1605 0 sigio 0 0K 0K 166960K 23 0 proc 72 115K 180K 166960K 911 0 subproc 72 4K 4K 166960K 148 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 169 0 in_multi 77 5K 7K 166960K 257 0 ether_multi 1 0K 0K 166960K 23 0 mrt 1 0K 0K 166960K 44 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 265 1182K 1182K 166960K 265 0 exec 0 0K 1K 166960K 706 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 213 174K 200K 166960K 16601 0 UVM aobj 13 10K 10K 166960K 15 0 pinsyscall 41 82K 102K 166960K 3059 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 124 0 NDP 10 0K 2K 166960K 102 0 temp 80 9088K 9168K 166960K 83909 0 kqueue 13 20K 30K 166960K 324 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 182 0 178 2 1 1 2 0 8 0 rtentry 176 238 0 156 6 0 6 6 0 8 0 unpcb 144 1063 0 1046 14 9 5 6 0 8 4 syncache 336 15 0 15 4 3 1 1 0 8 1 tcpqe 32 3 0 3 3 3 0 1 0 8 0 tcpcb 736 458 0 452 15 13 2 7 0 8 1 arp 136 36 0 22 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 1969 0 1960 37 33 4 15 0 8 2 nd6 152 53 0 33 2 0 2 2 0 8 0 pkpcb 40 12 0 12 3 3 0 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 2 0 1 0 8 0 ppxss 1192 66 0 66 3 2 1 1 0 8 1 pppxif 1504 7 0 7 5 4 1 1 0 8 1 pffrag 232 7 0 4 1 0 1 1 0 482 0 pffrnode 88 7 0 4 1 0 1 1 0 8 0 pffrent 40 11 0 8 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 2 0 2 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 79 0 58 1 0 1 1 0 8 0 pfstkey 128 79 0 58 2 0 2 2 0 8 0 pfstate 448 79 0 58 5 1 4 5 0 8 0 pfrule 1360 62 0 57 2 1 1 2 0 8 0 rttmr 136 4 0 4 3 3 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1017 0 649 32 9 23 30 0 8 0 art_table 40 1019 0 649 5 0 5 5 0 8 0 art_node 32 237 0 165 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 5 0 5 4 4 0 1 0 8 0 semapl 112 83 0 74 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 4390 0 2911 94 0 94 94 0 8 1 ffsino 296 4390 0 2911 115 0 115 115 0 8 0 nchpl 144 6573 0 4840 65 0 65 65 0 8 0 rtmask 32 12 0 12 4 4 0 1 0 8 0 vnodes 216 5271 0 0 293 0 293 293 0 8 0 namei 1024 24052 0 24052 7 6 1 3 0 8 1 percpumem 16 138 0 90 1 0 1 1 0 8 0 vcpupl 3968 5 0 1 1 0 1 1 0 8 0 vmpool 848 5 0 1 1 0 1 1 0 8 0 kstatmem 264 138 0 116 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 11 0 11 6 6 0 1 0 8 0 scxspl 216 47716 0 47716 15 13 2 8 1 8 2 plimitpl 152 488 0 471 1 0 1 1 0 8 0 sigapl 424 1920 0 1873 7 1 6 7 0 8 0 knotepl 120 593 0 0 17 0 17 17 0 8 0 kqueuepl 224 656 0 647 10 9 1 5 0 8 0 pipepl 344 269 0 242 3 0 3 3 0 8 0 fdescpl 528 1897 0 1867 3 0 3 3 0 8 0 filepl 160 13379 0 13167 49 31 18 25 0 8 6 lockfpl 104 474 0 471 1 0 1 1 0 8 0 lockfspl 48 200 0 197 1 0 1 1 0 8 0 sessionpl 144 44 0 35 1 0 1 1 0 8 0 pgrppl 48 84 0 67 1 0 1 1 0 8 0 ucredpl 104 2142 0 2128 1 0 1 1 0 8 0 zombiepl 144 2552 0 2551 1 0 1 1 0 8 0 processpl 1232 1920 0 1873 5 1 4 5 0 8 0 procpl 664 4474 0 4421 8 2 6 7 0 8 0 sosppl 176 19 0 19 5 4 1 1 0 8 1 sockpl 752 3414 0 3384 61 50 11 20 0 8 7 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 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 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 23 0 0 3 0 3 3 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1131 0 0 71 0 71 71 0 8 0 bufpl 280 20077 0 13947 439 0 439 439 0 8 0 anonpl 32 12126 0 0 98 0 98 98 0 246 0 amapchunkpl 152 54993 0 54589 60 29 31 38 0 158 10 amappl16 200 6494 0 6466 74 61 13 28 0 8 8 amappl15 192 41 0 41 1 1 0 1 0 8 0 amappl14 184 561 0 560 1 0 1 1 0 8 0 amappl13 176 175 0 163 1 0 1 1 0 8 0 amappl12 168 2215 0 2186 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 87 0 73 1 0 1 1 0 8 0 amappl9 144 261 0 261 1 1 0 1 0 8 0 amappl8 136 139 0 137 1 0 1 1 0 8 0 amappl7 128 290 0 277 1 0 1 1 0 8 0 amappl6 120 244 0 242 1 0 1 1 0 8 0 amappl5 112 128 0 117 1 0 1 1 0 8 0 amappl4 104 380 0 359 1 0 1 1 0 8 0 amappl3 96 11245 0 11150 4 0 4 4 0 8 0 amappl2 88 753 0 692 2 0 2 2 0 8 0 amappl1 80 21314 0 20701 24 7 17 19 0 8 0 amappl 88 15371 0 15232 5 0 5 5 0 92 0 uvmvnodes 80 168 0 0 4 0 4 4 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 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 255 0 255 3 3 0 1 0 8 0 dma64 64 7 0 7 2 2 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 19 0 18 1 0 1 1 0 8 0 aobjpl 72 14 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1897 0 1867 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1897 0 1867 1 0 1 1 0 8 0 vmmpekpl 168 18081 0 18030 4 0 4 4 0 8 0 vmmpepl 168 134672 0 132822 147 42 105 110 0 357 7 vmsppl 488 1896 0 1867 6 1 5 5 0 8 0 rwobjpl 80 40020 0 38934 40 7 33 34 0 8 0 pdppl 4096 3811 0 3740 159 82 77 85 0 8 6 pvpl 32 20499 0 0 165 0 165 165 0 265 0 pmappl 256 1901 0 1868 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 426 0 121 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8390eff0) 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(ffffffff83980340) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83980340) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 syscall(ffff80003bbd1df0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003bbd1df0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x772f2f63e0c0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000fffef240,ffff80003c3f1860,ffff80003c3f17b0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c3f1860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3f1860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1759d4690c0, count: -3