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(ffff80003c42ed20,ffff80003c435630,ffff80003c435580) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c435630) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c435630) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x89f217d80, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c435550 rbx 0xdeadbeefdeadbeef rdx 0 rcx 0xffff80003c42ed20 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0x1 r10 0x17f2dba3711cba46 r11 0x6064ea1cfcde02e5 r12 0 r13 0xfffffd80655d8af0 r14 0xffff80003c435630 r15 0 rip 0xffffffff81c2a965 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c435460 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=45179 pid=95551 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=0xffff80003c42e558,0xffff80003c42fcc0 process=0xffff80002ffcb040 user=0xffff80003c430000, vmspace=0xfffffd806b1dfd78 estcpu=6, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78735 260794 88459 -1 2 0x10 syz-executor 78735 48019 88459 -1 3 0x4000090 fsleep syz-executor 95551 132211 80856 0 2 0 syz-executor *95551 45179 80856 0 7 0x4000000 syz-executor 95551 481513 80856 0 3 0x4000080 fsleep syz-executor 95551 344248 80856 0 7 0x4000000 syz-executor 68804 299290 41034 0 2 0 syz-executor 68804 103636 41034 0 3 0x4000080 fsleep syz-executor 61504 175678 48990 0 2 0 syz-executor 61504 504562 48990 0 3 0x4000080 kqsel syz-executor 61504 503952 48990 0 3 0x4000080 fsleep syz-executor 61504 336 48990 0 3 0x4000080 fsleep syz-executor 61504 353885 48990 0 3 0x4000080 fsleep syz-executor 17562 370931 5376 0 2 0 syz-executor 17562 301979 5376 0 3 0x4000080 fsleep syz-executor 60670 443859 66053 0 4 0x82000 syz-executor 60670 54604 66053 0 2 0x4082000 syz-executor 60670 389924 66053 0 4 0x4082000 syz-executor 60670 305196 66053 0 3 0x4002000 suspend syz-executor 93146 420692 2308 0 2 0 syz-executor 93146 95052 2308 0 3 0x4000080 kqread syz-executor 93146 215251 2308 0 3 0x4000080 fsleep syz-executor 93146 154037 2308 0 3 0x4000080 fsleep syz-executor 93146 402689 2308 0 3 0x4000080 fsleep syz-executor 93146 401395 2308 0 3 0x4000080 fsleep syz-executor 49945 177428 0 0 3 0x14200 acct acct 36196 24252 19966 0 2 0x3 syz-executor 48990 230661 19966 0 2 0x2 syz-executor 2308 473484 19966 0 2 0x2 syz-executor 41034 377523 19966 0 2 0x3 syz-executor 66053 68520 19966 0 2 0x3 syz-executor 80856 4263 19966 0 3 0x82 nanoslp syz-executor 5376 445216 19966 0 2 0x3 syz-executor 88459 202308 19966 0 3 0x82 nanoslp syz-executor 19966 287251 20031 0 3 0x82 kqread syz-executor 20031 200919 13447 0 3 0x10008a sigsusp ksh 13447 94295 82418 0 3 0x98 kqread sshd-session 82418 246065 76513 0 3 0x92 kqread sshd-session 5872 307418 1 0 3 0x100083 ttyopn getty 76513 252255 1 0 3 0x88 kqread sshd 53431 353503 54421 74 3 0x1100092 bpf pflogd 54421 387863 1 0 3 0x80 sbwait pflogd 23755 61124 8175 73 3 0x1100090 kqread syslogd 8175 239061 1 0 3 0x100082 sbwait syslogd 54200 284957 1 0 3 0x100080 kqread resolvd 87199 478093 24271 77 3 0x100092 kqread dhcpleased 67842 439414 24271 77 3 0x100092 kqread dhcpleased 24271 350949 1 0 3 0x80 kqread dhcpleased 43887 311960 0 0 3 0x14200 bored smr 59659 289494 0 0 2 0x14200 zerothread 84859 199698 0 0 3 0x14200 aiodoned aiodoned 12571 415710 0 0 3 0x14200 syncer update 74636 350380 0 0 3 0x14200 cleaner cleaner 8746 361948 0 0 3 0x14200 reaper reaper 43301 258444 0 0 3 0x14200 pgdaemon pagedaemon 76646 436407 0 0 3 0x14200 bored viomb 89299 423229 0 0 3 0x40014200 acpi0 acpi0 37162 422016 0 0 3 0x40014200 idle1 56446 242466 0 0 3 0x14200 bored softnet1 86105 379945 0 0 3 0x14200 bored softnet0 61487 191811 0 0 3 0x14200 smrbar systqmp 56958 189001 0 0 3 0x14200 bored systq 99023 448657 0 0 3 0x14200 tmoslp softclockmp 89784 26085 0 0 3 0x40014200 tmoslp softclock 91490 418502 0 0 3 0x40014200 idle0 1 357288 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 95551 (syz-executor) thread 0xffff80003c42ed20 (45179) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839333c0) #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:775 #5 Xsyscall+0x128 Process 61487 (systqmp) thread 0xffff8000ffffe530 (191811) shared rwlock systqmp r = 0 (0xffffffff838a1bc8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11058 12149K 12264K 166960K 12262 0 pcb 18 13K 14K 166960K 85 0 rtable 233 8K 9K 166960K 387 0 pf 33 17K 19K 166960K 56 0 ifaddr 39 6K 8K 166960K 52 0 ifgroup 51 2K 2K 166960K 71 0 sysctl 4 1K 9K 166960K 8 0 counters 68 36K 38K 166960K 80 0 ioctlops 0 0K 4K 166960K 1484 0 iov 0 0K 16K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1337 84K 85K 166960K 1464 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 7 0 dirhash 12 2K 3K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 89K 166960K 249 0 proc 71 115K 163K 166960K 542 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 12 0 in_multi 88 6K 7K 166960K 106 0 ether_multi 1 0K 0K 166960K 7 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 385 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 250 167K 176K 166960K 4090 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 42 84K 104K 166960K 1378 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 11 0K 2K 166960K 33 0 temp 44 8679K 8746K 166960K 11566 0 kqueue 14 22K 26K 166960K 45 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 45 0 42 1 0 1 1 0 8 0 rtentry 176 115 0 13 6 0 6 6 0 8 0 unpcb 144 85 0 68 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 33 0 28 1 0 1 1 0 8 0 arp 136 18 0 2 1 0 1 1 0 8 0 inpcb 328 192 0 183 5 3 2 4 0 8 0 nd6 152 25 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 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 pfrule 1360 2 0 1 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 467 0 0 30 0 30 30 0 8 0 art_table 40 470 0 0 5 0 5 5 0 8 0 art_node 32 115 0 12 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semapl 112 4 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 1800 0 292 96 0 96 96 0 8 0 ffsino 296 1800 0 292 117 0 117 117 0 8 0 nchpl 144 2136 0 435 64 0 64 64 0 8 0 vnodes 216 1930 0 0 108 0 108 108 0 8 0 namei 1024 6779 0 6779 2 1 1 1 0 8 1 percpumem 16 55 0 6 1 0 1 1 0 8 0 kstatmem 264 36 0 12 3 1 2 3 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 7274 0 7274 3 2 1 2 1 8 1 plimitpl 152 44 0 26 1 0 1 1 0 8 0 sigapl 424 559 0 511 7 1 6 7 0 8 0 knotepl 120 298 0 0 10 0 10 10 0 8 0 kqueuepl 224 74 0 62 2 0 2 2 0 8 1 pipepl 344 122 0 95 3 0 3 3 0 8 0 fdescpl 528 542 0 511 3 0 3 3 0 8 0 filepl 160 2301 0 2082 11 1 10 11 0 8 0 lockfpl 104 39 0 37 1 0 1 1 0 8 0 lockfspl 48 21 0 19 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 35 0 18 1 0 1 1 0 8 0 ucredpl 104 197 0 183 1 0 1 1 0 8 0 zombiepl 144 563 0 563 1 0 1 1 0 8 1 processpl 1232 559 0 511 5 0 5 5 0 8 0 procpl 664 792 0 726 6 0 6 6 0 8 0 sosppl 176 2 0 2 1 0 1 1 0 8 1 sockpl 752 327 0 298 7 3 4 7 0 8 0 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 129 0 0 17 0 17 17 0 8 0 mcl2k 2048 24 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 146 0 0 10 0 10 10 0 8 0 bufpl 280 2823 0 130 193 0 193 193 0 8 0 anonpl 32 7444 0 0 61 0 61 61 0 246 0 amapchunkpl 152 12072 0 11555 28 2 26 26 0 158 3 amappl16 200 2244 0 2218 15 12 3 14 0 8 1 amappl15 192 11 0 10 1 0 1 1 0 8 0 amappl14 184 7 0 6 1 0 1 1 0 8 0 amappl13 176 425 0 424 1 0 1 1 0 8 0 amappl12 168 907 0 865 3 0 3 3 0 8 0 amappl11 160 30 0 30 1 1 0 1 0 8 0 amappl10 152 46 0 32 1 0 1 1 0 8 0 amappl9 144 249 0 249 1 1 0 1 0 8 0 amappl8 136 24 0 22 1 0 1 1 0 8 0 amappl7 128 103 0 101 1 0 1 1 0 8 0 amappl6 120 275 0 262 1 0 1 1 0 8 0 amappl5 112 95 0 85 1 0 1 1 0 8 0 amappl4 104 418 0 390 1 0 1 1 0 8 0 amappl3 96 1997 0 1901 4 1 3 3 0 8 0 amappl2 88 662 0 586 2 0 2 2 0 8 0 amappl1 80 9755 0 9156 15 1 14 15 0 8 0 amappl 88 3339 0 3166 5 0 5 5 0 92 0 uvmvnodes 80 101 0 0 3 0 3 3 0 8 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 1 1 1 0 8 1 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 543 0 512 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 543 0 512 1 0 1 1 0 8 0 vmmpekpl 168 6378 0 6345 2 0 2 2 0 8 0 vmmpepl 168 42667 0 40731 97 9 88 96 0 357 0 vmsppl 488 542 0 512 5 1 4 5 0 8 0 rwobjpl 80 15274 0 14226 27 3 24 27 0 8 0 pdppl 4096 1093 0 1024 97 26 71 83 0 8 2 pvpl 32 13767 0 0 113 1 112 112 0 265 0 pmappl 256 542 0 512 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 274 0 30 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff83864ff0) 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+0x2c kd_curproc sys/dev/kcov.c:584 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:153 __mp_lock(ffffffff83932bc0) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83932bc0) at __mp_lock+0x1a3 sys/kern/kern_lock.c:173 syscall(ffff80003c40f690) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c40f690) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9170942f0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff80003c42ed20,ffff80003c435630,ffff80003c435580) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c435630) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c435630) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x89f217d80, count: -3