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(ffff8000ffff0a60,ffff800039c06920,ffff800039c06870) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff800039c06920) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c06920) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x49b600515d0, count: -3 ddb{1}> show registers rdi 0 rsi 0x7665 __ALIGN_SIZE+0x6665 rbp 0xffff800039c06840 rbx 0 rdx 0 rcx 0x12c8d mp_pdirpa+0x1c87 rax 0xdeadbeefdeadbeef r8 0x7f7fffffc000 r9 0x1 r10 0x8eb164561dbc17b5 r11 0xb8413a5eecbc327f r12 0xffff8000014d6e04 r13 0x7665 __ALIGN_SIZE+0x6665 r14 0xffff800039c06920 r15 0x7665 __ALIGN_SIZE+0x6665 rip 0xffffffff810a7c9e sys_semop+0x3ae cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800039c06720 ss 0x10 sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb{1}> show proc PROC (syz-executor) tid=172940 pid=89747 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=0xffff8000ffff1210,0xffff8000ffff0d00 process=0xffff8000fffe49d8 user=0xffff800039c01000, vmspace=0xfffffd8069047208 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 89747 134666 87290 0 2 0 syz-executor *89747 172940 87290 0 7 0x4000000 syz-executor 89747 256400 87290 0 3 0x4000080 fsleep syz-executor 5172 426780 18364 0 3 0x80 fsleep syz-executor 5172 440326 18364 0 7 0x4000000 syz-executor 42445 502949 65594 0 3 0x80 fsleep syz-executor 42445 223822 65594 0 3 0x4000080 sbwait syz-executor 40538 146747 58929 0 3 0x80 fsleep syz-executor 40538 210082 58929 0 3 0x4000080 sbwait syz-executor 43568 370296 51585 0 3 0x80 fsleep syz-executor 43568 19908 51585 0 3 0x4000080 sbwait syz-executor 32798 329950 90278 0 3 0x80 fsleep syz-executor 32798 307498 90278 0 3 0x4000080 sbwait syz-executor 51585 174461 22401 0 3 0x82 nanoslp syz-executor 56850 465599 0 0 3 0x14200 acct acct 18364 270779 22401 0 3 0x82 nanoslp syz-executor 33925 243082 22401 0 3 0x82 nanoslp syz-executor 90278 241808 22401 0 3 0x82 nanoslp syz-executor 87290 155432 22401 0 3 0x82 nanoslp syz-executor 23755 135121 0 0 3 0x14280 nfsidl nfsio 55325 75987 0 0 3 0x14280 nfsidl nfsio 75710 241454 0 0 3 0x14280 nfsidl nfsio 2663 331678 0 0 3 0x14280 nfsidl nfsio 47154 385782 0 0 3 0x14280 nfsidl nfsio 46779 6863 0 0 3 0x14280 nfsidl nfsio 67771 84354 0 0 3 0x14280 nfsidl nfsio 31571 56495 0 0 3 0x14280 nfsidl nfsio 26943 67179 0 0 3 0x14280 nfsidl nfsio 82616 392537 0 0 3 0x14280 nfsidl nfsio 45630 499978 0 0 3 0x14280 nfsidl nfsio 36555 365342 0 0 3 0x14280 nfsidl nfsio 65760 97692 0 0 3 0x14280 nfsidl nfsio 6653 298483 0 0 3 0x14280 nfsidl nfsio 51282 387344 0 0 3 0x14280 nfsidl nfsio 26471 434507 0 0 3 0x14280 nfsidl nfsio 76919 266979 0 0 3 0x14280 nfsidl nfsio 55762 81664 0 0 3 0x14280 nfsidl nfsio 86325 462707 0 0 3 0x14280 nfsidl nfsio 90387 172111 0 0 3 0x14280 nfsidl nfsio 36269 43401 0 0 3 0x14200 bored sosplice 56196 431950 22401 0 3 0x82 nanoslp syz-executor 65594 318871 22401 0 3 0x82 nanoslp syz-executor 58929 167668 22401 0 3 0x82 nanoslp syz-executor 22401 263296 49411 0 3 0x82 kqread syz-executor 49411 209448 39323 0 3 0x10008a sigsusp ksh 39323 123723 43354 0 3 0x98 kqread sshd-session 43354 521676 21143 0 3 0x92 kqread sshd-session 71075 233815 1 0 3 0x100083 ttyopn getty 21143 226458 1 0 3 0x88 kqread sshd 45941 190953 67568 74 3 0x1100092 bpf pflogd 67568 125011 1 0 3 0x80 sbwait pflogd 76260 93023 73767 73 3 0x1100090 kqread syslogd 73767 461588 1 0 3 0x100082 sbwait syslogd 19076 332517 1 0 3 0x100080 kqread resolvd 54527 189252 12654 77 3 0x100092 kqread dhcpleased 3393 129211 12654 77 3 0x100092 kqread dhcpleased 12654 376528 1 0 3 0x80 kqread dhcpleased 47257 198032 0 0 3 0x14200 bored smr 38913 14550 0 0 3 0x14200 pgzero zerothread 22993 331185 0 0 3 0x14200 aiodoned aiodoned 95208 22590 0 0 3 0x14200 syncer update 92479 370408 0 0 3 0x14200 cleaner cleaner 62608 61146 0 0 3 0x14200 reaper reaper 52913 345453 0 0 3 0x14200 pgdaemon pagedaemon 40874 265495 0 0 3 0x14200 bored viomb 39382 347605 0 0 3 0x40014200 acpi0 acpi0 96902 491476 0 0 3 0x40014200 idle1 91024 258138 0 0 3 0x14200 bored softnet3 24103 231390 0 0 3 0x14200 bored softnet2 83573 88947 0 0 3 0x14200 bored softnet1 66062 515146 0 0 3 0x14200 bored softnet0 97093 106148 0 0 3 0x14200 bored systqmp 55813 343726 0 0 3 0x14200 bored systq 197 26801 0 0 3 0x14200 tmoslp softclockmp 36608 247302 0 0 3 0x40014200 tmoslp softclock 82550 42978 0 0 3 0x40014200 idle0 1 66633 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 89747 (syz-executor) thread 0xffff8000ffff0a60 (172940) ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10216 11112K 12385K 166960K 13502 0 pcb 17 16K 18K 166960K 367 0 rtable 217 11K 12K 166960K 728 0 pf 37 18K 82K 166960K 263 0 ifaddr 38 7K 8K 166960K 143 0 ifgroup 55 2K 3K 166960K 221 0 sysctl 4 1K 9K 166960K 14 0 counters 68 36K 38K 166960K 240 0 ioctlops 0 0K 8K 166960K 1911 0 iov 3 40K 44K 166960K 171 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1486 93K 94K 166960K 2835 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 34 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 96 0 dirhash 12 2K 2K 166960K 30 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 1892 0 sigio 0 0K 0K 166960K 32 0 proc 72 91K 128K 166960K 863 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 384 0 in_multi 76 5K 7K 166960K 230 0 ether_multi 1 0K 0K 166960K 13 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 745 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 250 160K 177K 166960K 18945 0 UVM aobj 47 4K 4K 166960K 53 0 pinsyscall 43 86K 106K 166960K 3095 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 94 0 NDP 12 0K 1K 166960K 92 0 temp 77 8688K 8944K 166960K 104418 0 kqueue 14 22K 31K 166960K 357 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 187 0 184 2 1 1 2 0 8 0 rtentry 176 212 0 132 6 1 5 6 0 8 0 unpcb 144 1264 0 1239 10 8 2 6 0 8 1 syncache 336 4 0 4 2 2 0 1 0 8 0 tcpcb 736 733 0 729 14 10 4 7 0 8 3 arp 128 33 0 17 1 0 1 1 0 8 0 inpcb 328 2472 0 2459 25 18 7 12 0 8 5 nd6 144 42 0 23 1 0 1 1 0 8 0 pkpcb 40 22 0 22 2 1 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 mppekey 1024 3 0 3 2 1 1 1 0 8 1 ppxss 1192 63 0 63 1 0 1 1 0 8 1 pppxif 1504 8 0 8 2 1 1 1 0 8 1 pffrag 232 14 0 5 1 0 1 1 0 482 0 pffrnode 88 13 0 5 1 0 1 1 0 8 0 pffrent 40 23 0 14 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 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 1 0 1 0 8 0 pfstitem 24 127 0 44 1 0 1 1 0 8 0 pfstkey 128 127 0 44 3 0 3 3 0 8 0 pfstate 384 127 0 44 9 0 9 9 0 8 0 pfrule 1344 31 0 25 2 1 1 2 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 1 3 0 3 3 0 8 1 art_heap4 256 928 0 558 36 9 27 29 0 8 0 art_table 32 931 0 559 4 0 4 4 0 8 0 art_node 16 210 0 138 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 6 1 0 1 1 0 8 0 semapl 112 92 0 83 1 0 1 1 0 8 0 shmpl 112 50 0 6 2 0 2 2 0 8 0 dirhash 1024 29 0 12 3 0 3 3 0 8 0 dino2pl 256 4788 0 3273 95 0 95 95 0 8 0 ffsino 288 4788 0 3273 109 0 109 109 0 8 0 nchpl 144 7427 0 5720 65 1 64 64 0 8 0 rtmask 32 17 0 17 6 5 1 1 0 8 1 uvmvnodes 80 5666 0 0 116 0 116 116 0 8 0 vnodes 216 5666 0 0 315 0 315 315 0 8 0 namei 1024 25559 0 25559 4 3 1 2 0 8 1 percpumem 16 135 0 86 1 0 1 1 0 8 0 kstatmem 264 138 0 108 3 0 3 3 0 8 0 acpiwqpl 32 3 0 3 1 0 1 1 1 8 1 scsiplug 72 5 0 5 4 3 1 1 0 8 1 scxspl 216 54653 0 54653 13 11 2 8 1 8 2 plimitpl 152 570 0 552 1 0 1 1 0 8 0 sigapl 424 2193 0 2121 10 1 9 9 0 8 0 knotepl 120 561 0 0 17 0 17 17 0 8 0 kqueuepl 224 749 0 739 9 7 2 5 0 8 1 pipepl 336 492 0 465 8 5 3 8 0 8 0 fdescpl 520 2146 0 2114 3 0 3 3 0 8 0 filepl 160 14652 0 14421 24 9 15 18 0 8 1 lockfpl 104 1045 0 1040 2 1 1 2 0 8 0 lockfspl 48 400 0 395 1 0 1 1 0 8 0 sessionpl 144 28 0 19 1 0 1 1 0 8 0 pgrppl 48 134 0 117 1 0 1 1 0 8 0 ucredpl 104 1783 0 1770 1 0 1 1 0 8 0 zombiepl 144 2836 0 2834 1 0 1 1 0 8 0 processpl 1240 2193 0 2121 6 0 6 6 0 8 0 procpl 656 5172 0 5093 8 0 8 8 0 8 0 srpgc 96 15 0 15 4 3 1 1 0 8 1 sosppl 168 13 0 13 3 2 1 1 0 8 1 sockpl 728 4000 0 3959 36 27 9 15 0 8 5 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 115 0 0 15 0 15 15 0 8 0 mcl2k 2048 71 0 0 7 0 7 7 0 8 0 mtagpl 96 177 0 0 5 0 5 5 0 8 0 mbufpl 256 1328 0 0 82 0 82 82 0 8 0 bufpl 280 23539 0 17397 440 1 439 440 0 8 0 anonpl 32 16486 0 0 133 0 133 133 0 246 0 amapchunkpl 152 64519 0 63982 47 20 27 35 0 158 5 amappl16 200 9199 0 9164 92 64 28 41 0 8 19 amappl15 192 10 0 10 1 1 0 1 0 8 0 amappl14 184 124 0 112 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 2871 0 2839 3 1 2 2 0 8 0 amappl11 160 54 0 39 1 0 1 1 0 8 0 amappl10 152 37 0 36 1 0 1 1 0 8 0 amappl9 144 244 0 244 1 1 0 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 119 0 107 1 0 1 1 0 8 0 amappl6 120 231 0 227 1 0 1 1 0 8 0 amappl5 112 144 0 135 1 0 1 1 0 8 0 amappl4 104 337 0 317 1 0 1 1 0 8 0 amappl3 96 13013 0 12889 5 1 4 4 0 8 0 amappl2 88 716 0 651 2 0 2 2 0 8 0 amappl1 80 15668 0 15065 14 0 14 14 0 8 0 amappl 88 17902 0 17724 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 1 0 1 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 2 0 1 0 8 0 dma128 128 256 0 256 3 3 0 1 0 8 0 dma64 64 8 0 8 3 3 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 52 0 6 1 0 1 1 0 8 0 uaddrrnd 24 2146 0 2114 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2146 0 2114 1 0 1 1 0 8 0 vmmpekpl 168 18258 0 18201 3 0 3 3 0 8 0 vmmpepl 168 140485 0 138427 134 23 111 122 0 357 10 vmsppl 480 2145 0 2114 6 1 5 5 0 8 0 rwobjpl 72 44539 0 37870 131 1 130 130 0 8 6 pdppl 4096 4299 0 4228 117 46 71 85 0 8 0 pvpl 32 23405 0 0 189 0 189 189 0 265 0 pmappl 256 2145 0 2114 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 509 0 81 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8382cff0) 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+0xf sys/dev/kcov.c:149 softintr_dispatch(0) at softintr_dispatch+0x12a sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:847 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83991c98) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83991c98) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80002a2fad80) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2fad80) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1deee5cbd50, count: -10 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3ae: movzwl 0x8(%rax,%rcx,4),%r15d ddb{1}> trace sys_semop(ffff8000ffff0a60,ffff800039c06920,ffff800039c06870) at sys_semop+0x3ae sys/kern/sysv_sem.c:620 syscall(ffff800039c06920) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800039c06920) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:742 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x49b600515d0, count: -3