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(ffff8000ffff7468,ffff80003c58dfa0,ffff80003c58def0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c58dfa0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c58dfa0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd27096fc310, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c58dec0 rbx 0 rdx 0 rcx 0xffff8000ffff7468 rax 0xdeaf4152deaf4176 r8 0x7f7fffffc000 r9 0x1 r10 0xef45bd4277513f2a r11 0xc06fdf7c863edd49 r12 0xffff8000012f4504 r13 0 r14 0xffff80003c58dfa0 r15 0 rip 0xffffffff8257f7bb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c58dda0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=376241 pid=72151 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=0xffff8000ffff7c00,0xffff8000ffff6ce0 process=0xffff80003c5826e0 user=0xffff80003c589000, vmspace=0xfffffd806bbbd1e8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72151 477275 25484 0 3 0 futex syz-executor *72151 376241 25484 0 7 0x4000000 syz-executor 72151 157729 25484 0 2 0x4000000 syz-executor 72151 447522 25484 0 3 0x4000080 fsleep syz-executor 14511 330930 94985 0 2 0 syz-executor 14511 214768 94985 0 3 0x4000080 sbwait syz-executor 4044 253937 38696 0 2 0 syz-executor 4044 218587 38696 0 3 0x4000080 fsleep syz-executor 4044 135580 38696 0 3 0x4000080 fsleep syz-executor 22401 251510 15448 0 3 0x80 nanoslp syz-executor 22401 265225 15448 0 3 0x4000080 kqread syz-executor 22401 189364 15448 0 3 0x4000080 fsleep syz-executor 22401 171992 15448 0 3 0x4000080 fsleep syz-executor 58752 406323 87275 0 3 0x80 nanoslp syz-executor 58752 172786 87275 0 3 0x4000080 msgwait syz-executor 58752 94186 87275 0 3 0x4000080 fsleep syz-executor 58752 298412 87275 0 3 0x4000080 fsleep syz-executor 71191 257314 0 0 3 0x14200 bored sosplice 38696 432770 56948 0 3 0x82 nanoslp syz-executor 87275 284465 56948 0 3 0x82 nanoslp syz-executor 86976 346845 56948 0 7 0x2 syz-executor 3903 195982 56948 0 3 0x82 nanoslp syz-executor 25484 406610 56948 0 3 0x82 nanoslp syz-executor 64496 437542 56948 0 3 0x82 nanoslp syz-executor 94985 6489 56948 0 3 0x82 nanoslp syz-executor 15448 257553 56948 0 3 0x82 nanoslp syz-executor 56948 99943 29968 0 3 0x82 kqread syz-executor 29968 482875 85733 0 3 0x10008a sigsusp ksh 85733 27414 87124 0 3 0x98 kqread sshd-session 87124 160768 34989 0 3 0x92 kqread sshd-session 11823 40668 1 0 3 0x100083 ttyin getty 34989 39114 1 0 3 0x88 kqread sshd 11675 52593 38876 74 3 0x1100092 bpf pflogd 38876 81893 1 0 3 0x80 sbwait pflogd 45526 52689 60379 73 3 0x1100090 kqread syslogd 60379 83044 1 0 3 0x100082 sbwait syslogd 95035 76442 1 0 3 0x100080 kqread resolvd 53797 515163 60146 77 3 0x100092 kqread dhcpleased 99569 24043 60146 77 3 0x100092 kqread dhcpleased 60146 441090 1 0 3 0x80 kqread dhcpleased 4596 516456 0 0 3 0x14200 bored smr 12537 349821 0 0 2 0x14200 zerothread 24220 446625 0 0 3 0x14200 aiodoned aiodoned 40247 420489 0 0 3 0x14200 syncer update 96239 138916 0 0 3 0x14200 cleaner cleaner 76344 268109 0 0 3 0x14200 reaper reaper 21647 448201 0 0 3 0x14200 pgdaemon pagedaemon 85973 71526 0 0 3 0x14200 bored viomb 33522 76732 0 0 3 0x40014200 acpi0 acpi0 27896 380910 0 0 3 0x40014200 idle1 21643 322040 0 0 3 0x14200 bored softnet3 55168 250774 0 0 3 0x14200 bored softnet2 75546 225562 0 0 3 0x14200 bored softnet1 32904 13556 0 0 3 0x14200 bored softnet0 63455 191020 0 0 3 0x14200 bored systqmp 26847 55141 0 0 3 0x14200 bored systq 35138 212953 0 0 3 0x14200 tmoslp softclockmp 48426 488540 0 0 3 0x40014200 tmoslp softclock 21560 351794 0 0 3 0x40014200 idle0 1 508183 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 72151 (syz-executor) thread 0xffff8000ffff7468 (376241) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff835eaf78) #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:174 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 72151 (syz-executor) thread 0xffff8000ffff6cd0 (157729) exclusive rwlock futex r = 0 (0xffffffff834dda68) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 sys_futex+0x69 sys/kern/sys_futex.c:98 #3 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10227 11090K 11287K 166960K 11416 0 pcb 18 12K 12K 166960K 33 0 rtable 223 6K 7K 166960K 539 0 pf 34 17K 18K 166960K 54 0 ifaddr 41 7K 7K 166960K 71 0 ifgroup 55 2K 2K 166960K 66 0 sysctl 1 1K 1K 166960K 1 0 counters 64 36K 36K 166960K 72 0 ioctlops 0 0K 4K 166960K 1486 0 iov 0 0K 8K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1340 84K 85K 166960K 1417 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 4 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 89K 166960K 218 0 sigio 0 0K 0K 166960K 2 0 proc 71 91K 128K 166960K 530 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 2 0K 0K 166960K 20 0 in_multi 91 6K 7K 166960K 219 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 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 380 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 231 72K 76K 166960K 3597 0 UVM aobj 6 2K 2K 166960K 7 0 pinsyscall 42 84K 104K 166960K 1339 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 9 0 NDP 12 0K 2K 166960K 52 0 temp 38 6886K 6952K 166960K 5704 0 kqueue 14 22K 24K 166960K 33 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 42 0 38 1 0 1 1 0 8 0 rtentry 112 195 0 92 4 0 4 4 0 8 0 unpcb 144 154 0 128 5 2 3 3 0 8 2 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 31 0 26 1 0 1 1 0 8 0 arp 120 19 0 1 1 0 1 1 0 8 0 inpcb 376 141 0 130 2 0 2 2 0 8 0 nd6 136 45 0 24 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 4 0 4 1 0 1 1 0 8 1 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 26 0 0 1 0 1 1 0 8 0 pfstkey 128 26 0 0 1 0 1 1 0 8 0 pfstate 376 26 0 0 3 0 3 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 948 0 514 29 0 29 29 0 8 1 art_table 32 950 0 514 4 0 4 4 0 8 0 art_node 16 194 0 100 1 0 1 1 0 8 0 semapl 112 2 0 1 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1702 0 191 95 0 95 95 0 8 0 ffsino 280 1702 0 191 109 0 109 109 0 8 0 nchpl 144 2002 0 316 63 0 63 63 0 8 0 uvmvnodes 80 1820 0 0 38 0 38 38 0 8 0 vnodes 216 1820 0 0 102 0 102 102 0 8 0 namei 1024 7051 0 7051 3 2 1 2 0 8 1 percpumem 16 50 0 4 1 0 1 1 0 8 0 kstatmem 264 32 0 8 2 0 2 2 0 8 0 scxspl 216 6197 0 6197 3 2 1 2 1 8 1 plimitpl 152 40 0 21 1 0 1 1 0 8 0 sigapl 424 530 0 480 8 2 6 7 0 8 0 futexpl 64 1368 0 1360 1 0 1 1 0 8 0 knotepl 120 304 0 0 10 0 10 10 0 8 0 kqueuepl 216 109 0 97 5 0 5 5 0 8 4 pipepl 328 185 0 158 3 0 3 3 0 8 0 fdescpl 504 511 0 480 5 0 5 5 0 8 0 filepl 152 2513 0 2275 17 1 16 16 0 8 6 lockfpl 104 28 0 24 1 0 1 1 0 8 0 lockfspl 48 15 0 11 1 0 1 1 0 8 0 sessionpl 144 22 0 13 1 0 1 1 0 8 0 pgrppl 48 32 0 15 1 0 1 1 0 8 0 ucredpl 104 374 0 361 1 0 1 1 0 8 0 zombiepl 144 519 0 517 1 0 1 1 0 8 0 processpl 1168 530 0 480 5 1 4 5 0 8 0 procpl 648 699 0 636 7 1 6 6 0 8 0 sockpl 688 337 0 297 10 3 7 7 0 8 3 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 109 0 0 14 0 14 14 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 340 0 0 22 0 22 22 0 8 0 bufpl 280 2535 0 130 172 0 172 172 0 8 0 anonpl 24 105383 0 101833 32 3 29 29 0 185 0 amapchunkpl 152 10893 0 10389 23 0 23 23 0 158 1 amappl16 200 2011 0 1978 9 3 6 6 0 8 1 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 127 0 115 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 1176 0 1145 3 1 2 2 0 8 0 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 243 0 243 1 1 0 1 0 8 0 amappl8 136 25 0 23 1 0 1 1 0 8 0 amappl7 128 112 0 100 1 0 1 1 0 8 0 amappl6 120 175 0 172 1 0 1 1 0 8 0 amappl5 112 126 0 117 1 0 1 1 0 8 0 amappl4 104 331 0 310 1 0 1 1 0 8 0 amappl3 96 1877 0 1763 4 0 4 4 0 8 0 amappl2 88 654 0 592 2 0 2 2 0 8 0 amappl1 80 8099 0 7522 15 2 13 15 0 8 0 amappl 88 3203 0 3028 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 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 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 511 0 480 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 511 0 480 1 0 1 1 0 8 0 vmmpekpl 168 5964 0 5932 2 0 2 2 0 8 0 vmmpepl 168 37628 0 35755 87 0 87 87 0 357 0 vmsppl 456 510 0 480 5 1 4 5 0 8 0 rwobjpl 64 15486 0 12722 46 0 46 46 0 8 0 pdppl 4096 1029 0 960 101 30 71 83 0 8 2 pvpl 32 11619 0 0 94 0 94 94 0 265 0 pmappl 248 510 0 480 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 291 0 36 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(ffffffff834e6ff0) 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+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(ffffffff835ead70) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff835ead70) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff835ead70,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(ffffffff8358d1d8,1) at pool_get+0x265 sys/kern/subr_pool.c:593 fork1(ffff8000ffff9460,1,ffffffff818da210,0,ffff80002a50e420,0) at fork1+0x348 thread_new sys/kern/kern_fork.c:150 [inline] fork1(ffff8000ffff9460,1,ffffffff818da210,0,ffff80002a50e420,0) at fork1+0x348 sys/kern/kern_fork.c:404 syscall(ffff80002a50e4d0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a50e4d0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77b2e9397150, count: -12 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000ffff7468,ffff80003c58dfa0,ffff80003c58def0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c58dfa0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c58dfa0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd27096fc310, count: -3