kernel: protection fault trap, code=0 Stopped at sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%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(ffff8000fffe8a68,ffff80003c422a00,ffff80003c422950) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff80003c422a00) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c422a00) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4d62586f920, count: -3 ddb{1}> show registers rdi 0 rsi 0x7665 __ALIGN_SIZE+0x6665 rbp 0xffff80003c422920 rbx 0 rdx 0 rcx 0x12c8d mp_pdirpa+0x1c87 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0x1 r10 0x6d3899cbfaae5ac8 r11 0x612510353de093d4 r12 0xffff800001489004 r13 0x7665 __ALIGN_SIZE+0x6665 r14 0xffff80003c422a00 r15 0x7665 __ALIGN_SIZE+0x6665 rip 0xffffffff827544ce sys_semop+0x3ae cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c422800 ss 0x10 sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb{1}> show proc PROC (syz-executor) tid=277750 pid=45580 tcnt=3 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=0xffff8000fffe8028,0xffff8000fffe8d08 process=0xffff8000fffe4e48 user=0xffff80003c41d000, vmspace=0xfffffd806b192200 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45580 152430 52851 0 2 0 syz-executor *45580 277750 52851 0 7 0x4000000 syz-executor 45580 184663 52851 0 3 0x4000080 fsleep syz-executor 61698 438417 15823 -1 2 0x90 syz-executor 61698 106592 15823 -1 3 0x4000090 fsleep syz-executor 43304 430724 3679 0 3 0x80 fsleep syz-executor 43304 22455 3679 0 3 0x4000080 kqread syz-executor 92844 447606 79836 0 3 0x80 fsleep syz-executor 92844 233187 79836 0 7 0x4000000 syz-executor 50457 148709 16507 0 3 0x80 nanoslp syz-executor 50457 427605 16507 0 3 0x4000080 kqsel syz-executor 50457 94433 16507 0 3 0x4000080 fsleep syz-executor 12353 152627 29718 0 3 0x80 nanoslp syz-executor 12353 274347 29718 0 3 0x4000080 ttyretype syz-executor 12353 226576 29718 0 3 0x4000080 fsleep syz-executor 79836 367054 45915 0 3 0x82 nanoslp syz-executor 55995 27198 0 0 3 0x14200 acct acct 26004 370706 0 0 3 0x14280 nfsidl nfsio 36737 440770 0 0 3 0x14280 nfsidl nfsio 17932 414041 0 0 3 0x14280 nfsidl nfsio 1320 51837 0 0 3 0x14280 nfsidl nfsio 5019 333119 0 0 3 0x14280 nfsidl nfsio 39969 143054 0 0 3 0x14280 nfsidl nfsio 46428 145454 0 0 3 0x14280 nfsidl nfsio 12015 270215 0 0 3 0x14280 nfsidl nfsio 8930 511808 0 0 3 0x14280 nfsidl nfsio 27958 290322 0 0 3 0x14280 nfsidl nfsio 25502 500852 0 0 3 0x14280 nfsidl nfsio 29396 330521 0 0 3 0x14280 nfsidl nfsio 60444 191602 0 0 3 0x14280 nfsidl nfsio 55490 362407 0 0 3 0x14280 nfsidl nfsio 65051 290021 0 0 3 0x14280 nfsidl nfsio 85241 373972 0 0 3 0x14280 nfsidl nfsio 54601 238476 0 0 3 0x14280 nfsidl nfsio 68000 484961 0 0 3 0x14280 nfsidl nfsio 43414 171985 0 0 3 0x14280 nfsidl nfsio 31020 294273 0 0 3 0x14280 nfsidl nfsio 16507 311478 45915 0 3 0x82 nanoslp syz-executor 68196 294345 0 0 3 0x14200 bored sosplice 70153 422987 17781 0 3 0x100082 sbwait ndp 17781 203373 16572 0 3 0x10008a sigsusp sh 15823 11840 45915 0 3 0x82 nanoslp syz-executor 24872 458236 45915 0 3 0x82 nanoslp syz-executor 52851 160954 45915 0 3 0x82 nanoslp syz-executor 16572 275004 45915 0 3 0x82 wait syz-executor 29718 464789 45915 0 3 0x82 nanoslp syz-executor 3679 490815 45915 0 3 0x82 nanoslp syz-executor 45915 363968 42072 0 3 0x82 kqread syz-executor 42072 33478 57900 0 3 0x10008a sigsusp ksh 57900 521529 76401 0 3 0x98 kqread sshd-session 76401 74024 33078 0 3 0x92 kqread sshd-session 44663 489702 1 0 3 0x100083 ttyin getty 33078 275998 1 0 3 0x88 kqread sshd 702 436606 22096 74 3 0x1100092 bpf pflogd 22096 200765 1 0 3 0x80 sbwait pflogd 25751 128111 26725 73 3 0x1100090 kqread syslogd 26725 306486 1 0 3 0x100082 sbwait syslogd 38176 235115 1 0 3 0x100080 kqread resolvd 56714 197212 51082 77 3 0x100092 kqread dhcpleased 16874 8377 51082 77 3 0x100092 kqread dhcpleased 51082 94147 1 0 3 0x80 kqread dhcpleased 84591 459813 0 0 3 0x14200 bored smr 76295 195610 0 0 3 0x14200 pgzero zerothread 35389 182663 0 0 3 0x14200 aiodoned aiodoned 48318 333891 0 0 3 0x14200 syncer update 62261 424862 0 0 3 0x14200 cleaner cleaner 97403 199165 0 0 3 0x14200 reaper reaper 64191 367314 0 0 3 0x14200 pgdaemon pagedaemon 58057 37767 0 0 3 0x14200 bored viomb 75925 457852 0 0 3 0x40014200 acpi0 acpi0 15788 66195 0 0 3 0x40014200 idle1 9662 323497 0 0 3 0x14200 bored softnet3 89535 507127 0 0 3 0x14200 bored softnet2 86829 25238 0 0 3 0x14200 bored softnet1 50737 65614 0 0 3 0x14200 bored softnet0 98820 164879 0 0 3 0x14200 bored systqmp 99704 348193 0 0 3 0x14200 syncxs systq 64196 37155 0 0 3 0x14200 tmoslp softclockmp 68856 351356 0 0 3 0x40014200 tmoslp softclock 11692 145812 0 0 3 0x40014200 idle0 1 141755 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 45580 (syz-executor) thread 0xffff8000fffe8a68 (277750) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff839eaeb0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #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:579 #7 Xsyscall+0x128 Process 99704 (systq) thread 0xffff8000ffffe290 (348193) shared rwlock systq r = 0 (0xffffffff838811d8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb 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 10240 11100K 12359K 166960K 12964 0 pcb 17 16K 18K 166960K 236 0 rtable 198 9K 10K 166960K 598 0 pf 34 17K 19K 166960K 125 0 ifaddr 37 6K 8K 166960K 107 0 ifgroup 55 2K 3K 166960K 169 0 sysctl 3 1K 9K 166960K 17 0 counters 66 36K 38K 166960K 178 0 ioctlops 0 0K 4K 166960K 1629 0 iov 0 0K 16K 166960K 58 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1457 92K 92K 166960K 2375 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 26 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 71 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 240K 166960K 1151 0 sigio 0 0K 0K 166960K 58 0 proc 72 91K 128K 166960K 729 0 subproc 72 4K 4K 166960K 109 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 136 0 in_multi 68 5K 7K 166960K 176 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 2 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 533 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 261 162K 171K 166960K 11928 0 UVM aobj 12 2K 2K 166960K 13 0 pinsyscall 45 90K 102K 166960K 2385 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 58 0 NDP 14 0K 2K 166960K 70 0 temp 63 8667K 8777K 166960K 47766 0 kqueue 15 24K 31K 166960K 223 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 vscsiccb 40 1 0 0 1 0 1 1 0 8 0 plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 105 0 101 1 0 1 1 0 8 0 rtentry 176 183 0 101 6 0 6 6 0 8 0 unpcb 144 911 0 893 9 3 6 6 0 8 5 syncache 336 8 0 8 2 2 0 1 0 8 0 tcpcb 808 335 0 329 11 10 1 8 0 8 0 arp 128 29 0 13 1 0 1 1 0 8 0 inpcb 384 1255 0 1243 21 13 8 14 0 8 6 nd6 144 38 0 21 1 0 1 1 0 8 0 pkpcb 40 18 0 18 1 0 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1192 38 0 38 2 1 1 1 0 8 1 pppxif 1504 8 0 8 3 2 1 1 0 8 1 pffrag 232 23 0 18 2 1 1 1 0 482 0 pffrnode 88 6 0 2 2 1 1 1 0 8 0 pffrent 40 45 0 40 2 1 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 pfstitem 24 61 0 22 1 0 1 1 0 8 0 pfstkey 128 61 0 22 2 0 2 2 0 8 0 pfstate 384 61 0 22 4 0 4 4 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 768 0 425 31 6 25 29 0 8 3 art_table 32 771 0 425 4 0 4 4 0 8 0 art_node 16 179 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 6 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 68 0 59 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 3370 0 1862 95 0 95 95 0 8 0 ffsino 288 3370 0 1862 109 0 109 109 0 8 0 nchpl 144 4886 0 3175 64 0 64 64 0 8 0 rtmask 32 11 0 11 2 2 0 1 0 8 0 uvmvnodes 80 4097 0 0 84 0 84 84 0 8 0 vnodes 216 4097 0 0 228 0 228 228 0 8 0 namei 1024 16825 0 16825 3 2 1 2 0 8 1 percpumem 16 104 0 56 1 0 1 1 0 8 0 kstatmem 264 96 0 68 3 0 3 3 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 12 0 12 3 2 1 1 0 8 1 scxspl 216 17026 0 17025 11 10 1 8 1 8 0 plimitpl 152 347 0 328 1 0 1 1 0 8 0 sigapl 424 1469 0 1396 9 0 9 9 0 8 0 knotepl 120 549 0 0 17 0 17 17 0 8 0 kqueuepl 224 509 0 494 8 3 5 5 0 8 4 pipepl 336 289 0 262 8 0 8 8 0 8 5 fdescpl 520 1427 0 1394 3 0 3 3 0 8 0 filepl 160 8959 0 8727 23 5 18 18 0 8 5 lockfpl 104 306 0 303 1 0 1 1 0 8 0 lockfspl 48 132 0 129 1 0 1 1 0 8 0 sessionpl 144 31 0 22 1 0 1 1 0 8 0 pgrppl 48 52 0 35 1 0 1 1 0 8 0 ucredpl 104 1181 0 1167 1 0 1 1 0 8 0 zombiepl 144 1831 0 1830 1 0 1 1 0 8 0 processpl 1208 1469 0 1396 6 0 6 6 0 8 0 procpl 656 3140 0 3058 9 1 8 8 0 8 0 srpgc 96 12 0 12 2 1 1 1 0 8 1 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 728 2312 0 2279 24 13 11 15 0 8 8 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 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 122 0 0 16 0 16 16 0 8 0 mcl2k 2048 35 0 0 4 0 4 4 0 8 0 mtagpl 96 24 0 0 1 0 1 1 0 8 0 mbufpl 256 2280 0 0 141 0 141 141 0 8 0 bufpl 280 5211 0 128 364 0 364 364 0 8 0 anonpl 32 11003 0 0 89 0 89 89 0 246 0 amapchunkpl 152 39085 0 38472 32 4 28 28 0 158 3 amappl16 200 4125 0 4013 44 28 16 31 0 8 7 amappl15 192 17 0 17 1 1 0 1 0 8 0 amappl14 184 138 0 123 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2153 0 2119 3 1 2 2 0 8 0 amappl11 160 50 0 36 1 0 1 1 0 8 0 amappl10 152 73 0 73 1 1 0 1 0 8 0 amappl9 144 245 0 245 1 1 0 1 0 8 0 amappl8 136 33 0 29 1 0 1 1 0 8 0 amappl7 128 124 0 110 1 0 1 1 0 8 0 amappl6 120 235 0 231 1 0 1 1 0 8 0 amappl5 112 143 0 133 1 0 1 1 0 8 0 amappl4 104 368 0 346 1 0 1 1 0 8 0 amappl3 96 7936 0 7808 5 1 4 4 0 8 0 amappl2 88 749 0 681 2 0 2 2 0 8 0 amappl1 80 14039 0 13397 15 0 15 15 0 8 0 amappl 88 10950 0 10767 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 262 0 262 3 2 1 1 0 8 1 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 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1427 0 1394 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1427 0 1394 1 0 1 1 0 8 0 vmmpekpl 168 13012 0 12953 3 0 3 3 0 8 0 vmmpepl 168 96651 0 94455 126 18 108 115 0 357 4 vmsppl 480 1426 0 1394 5 0 5 5 0 8 0 rwobjpl 72 30807 0 25599 97 1 96 96 0 8 1 pdppl 4096 2862 0 2788 116 40 76 84 0 8 2 pvpl 32 20626 0 0 167 0 167 167 0 265 0 pmappl 256 1426 0 1394 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 552 0 62 15 0 15 15 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff83889ff0) 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 __mp_lock(ffffffff839eaca8) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff839eaca8) at __mp_lock+0x199 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:840 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff839eaca8) at __mp_lock+0x19e __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff839eaca8) at __mp_lock+0x19e sys/kern/kern_lock.c:144 ifioctl(ffff800010fdc898,80206979,ffff800038018960,ffff8000fffe87d8) at ifioctl+0x5b4 sys/net/if.c:2078 sys_ioctl(ffff8000fffe87d8,ffff800038018b40,ffff800038018a90) at sys_ioctl+0x5c3 sys/kern/sys_generic.c:-1 syscall(ffff800038018b40) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800038018b40) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1d354b10430, count: -12 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb{1}> trace sys_semop(ffff8000fffe8a68,ffff80003c422a00,ffff80003c422950) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff80003c422a00) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c422a00) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4d62586f920, count: -3