kernel: protection fault trap, code=0 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%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(ffff80003c458fb8,ffff80003c48fc70,ffff80003c48fbc0) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c48fc70) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c48fc70) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9b09ea36d90, count: -3 ddb{1}> show registers rdi 0 rsi 0xb rbp 0xffff80003c48fb90 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff80003c458fb8 rax 0xffff8000299edff0 r8 0x7f7fffffc000 r9 0x1 r10 0x706c4de6794d5a5f r11 0xcda4488249bd2c08 r12 0xb r13 0xfffffd80664a5b60 r14 0xffff80003c48fc70 r15 0xb rip 0xffffffff81717ff2 sys_semop+0x352 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c48faa0 ss 0x10 sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> show proc PROC (syz-executor) tid=488017 pid=58513 tcnt=3 stat=onproc flags process=4000000 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c458558,0xffff80003c459260 process=0xffff800039024e90 user=0xffff80003c48a000, vmspace=0xfffffd806b9dfd70 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 58513 519313 43415 0 7 0x4000000 syz-executor *58513 488017 43415 0 7 0x4000000 syz-executor 58513 44479 43415 0 3 0x4000080 fsleep syz-executor 26289 163998 71602 0 3 0x80 fsleep syz-executor 26289 280127 71602 0 3 0x4000080 fsleep syz-executor 26289 336564 71602 0 3 0x4000080 ttyout syz-executor 26289 219995 71602 0 3 0x4000080 fsleep syz-executor 60307 145616 57717 0 3 0x80 fsleep syz-executor 60307 126416 57717 0 3 0x4000080 bell syz-executor 84214 157084 14544 0 3 0x80 fsleep syz-executor 84214 464992 14544 0 3 0x4000080 piperd syz-executor 12389 413635 3403 0 3 0x80 fsleep syz-executor 12389 91919 3403 0 3 0x4000080 kqread syz-executor 41590 74885 0 0 3 0x14200 acct acct 10341 43398 71644 0 3 0x80 fsleep syz-executor 10341 52359 71644 0 3 0x4000080 kqsel syz-executor 44652 150883 85092 0 3 0x80 fsleep syz-executor 44652 357000 85092 0 3 0x4000080 kqread syz-executor 44652 185477 85092 0 3 0x4000080 fsleep syz-executor 27951 152134 1 0 3 0x100083 ttyin getty 85092 337607 18336 0 3 0x82 nanoslp syz-executor 57717 258637 18336 0 3 0x82 nanoslp syz-executor 43415 45521 18336 0 3 0x82 nanoslp syz-executor 29654 405020 0 0 3 0x14200 bored sosplice 71602 201751 18336 0 3 0x82 nanoslp syz-executor 3403 125652 18336 0 3 0x82 nanoslp syz-executor 14544 236103 18336 0 3 0x82 nanoslp syz-executor 79077 390210 18336 0 3 0x82 wait syz-executor 71644 3121 18336 0 3 0x82 nanoslp syz-executor 18336 290864 76640 0 3 0x82 kqread syz-executor 76640 155136 23149 0 3 0x10008a sigsusp ksh 23149 328273 55142 0 3 0x98 kqread sshd-session 55142 403029 67207 0 3 0x92 kqread sshd-session 67207 94624 1 0 3 0x88 kqread sshd 98028 96099 49476 74 3 0x1100092 bpf pflogd 49476 211596 1 0 3 0x80 sbwait pflogd 57355 508237 58077 73 3 0x1100090 kqread syslogd 58077 157597 1 0 3 0x100082 sbwait syslogd 77457 361340 1 0 3 0x100080 kqread resolvd 36744 119506 22644 77 3 0x100092 kqread dhcpleased 49357 127442 22644 77 3 0x100092 kqread dhcpleased 22644 113078 1 0 3 0x80 kqread dhcpleased 71637 175917 0 0 3 0x14200 bored smr 88462 110040 0 0 3 0x14200 pgzero zerothread 8854 168764 0 0 3 0x14200 aiodoned aiodoned 73879 497973 0 0 3 0x14200 syncer update 673 67656 0 0 3 0x14200 cleaner cleaner 3698 16280 0 0 3 0x14200 reaper reaper 76542 79906 0 0 3 0x14200 pgdaemon pagedaemon 35172 418270 0 0 3 0x14200 bored viomb 71744 69585 0 0 3 0x40014200 acpi0 acpi0 87142 175557 0 0 3 0x40014200 idle1 12119 221451 0 0 3 0x14200 bored softnet7 79190 120848 0 0 3 0x14200 bored softnet6 38976 298600 0 0 3 0x14200 bored softnet5 81051 284320 0 0 3 0x14200 bored softnet4 62199 87556 0 0 3 0x14200 bored softnet3 21261 167431 0 0 3 0x14200 bored softnet2 18916 166659 0 0 3 0x14200 bored softnet1 85576 80351 0 0 3 0x14200 bored softnet0 17135 173814 0 0 3 0x14200 bored systqmp 24372 208725 0 0 3 0x14200 bored systq 63902 378630 0 0 3 0x14200 tmoslp softclockmp 63606 12499 0 0 3 0x40014200 tmoslp softclock 16965 244301 0 0 3 0x40014200 idle0 1 59494 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 58513 (syz-executor) thread 0xffff80003c458fb8 (488017) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838d4148) #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:174 #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:748 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10239 11147K 12379K 166960K 13918 0 pcb 19 15K 17K 166960K 393 0 rtable 167 10K 10K 166960K 560 0 pf 41 18K 82K 166960K 291 0 ifaddr 35 6K 7K 166960K 147 0 ifgroup 63 2K 2K 166960K 256 0 sysctl 4 1K 9K 166960K 24 0 counters 72 37K 38K 166960K 268 0 ioctlops 0 0K 4K 166960K 1741 0 iov 0 0K 24K 166960K 201 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1553 98K 98K 166960K 3125 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 101 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 232K 166960K 1763 0 sigio 0 0K 0K 166960K 169 0 proc 72 115K 148K 166960K 831 0 subproc 72 4K 4K 166960K 119 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 330 0 in_multi 54 4K 7K 166960K 205 0 ether_multi 1 0K 0K 166960K 12 0 mrt 2 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 133 599K 599K 166960K 133 0 exec 0 0K 1K 166960K 635 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 257 168K 188K 166960K 17612 0 UVM aobj 39 5K 5K 166960K 47 0 pinsyscall 43 86K 106K 166960K 2981 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 89 0 NDP 14 0K 1K 166960K 108 0 temp 81 8652K 8901K 166960K 83471 0 kqueue 14 22K 29K 166960K 332 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 302 0 299 3 2 1 3 0 8 0 rtentry 176 169 0 110 5 0 5 5 0 8 0 unpcb 144 1137 0 1119 10 7 3 6 0 8 2 syncache 336 7 0 7 3 3 0 1 0 8 0 tcpcb 736 409 0 404 7 4 3 4 0 8 2 arp 128 20 0 10 1 0 1 1 0 8 0 inpcb 328 1620 0 1610 13 10 3 7 0 8 2 nd6 144 30 0 20 1 0 1 1 0 8 0 pkpcb 40 15 0 15 2 1 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 mppekey 1024 6 0 6 2 2 0 1 0 8 0 ppxss 1192 77 0 77 2 1 1 1 0 8 1 pppxif 1504 7 0 7 3 2 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 10 0 4 1 0 1 1 0 482 0 pffrnode 88 10 0 4 1 0 1 1 0 8 0 pffrent 40 17 0 10 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 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 109 0 34 1 0 1 1 0 8 0 pfstkey 128 111 0 36 3 0 3 3 0 8 0 pfstate 384 109 0 35 8 0 8 8 0 8 0 pfrule 1344 36 0 31 2 1 1 2 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 802 0 556 30 12 18 28 0 8 0 art_table 40 805 0 556 5 1 4 5 0 8 0 art_node 32 169 0 119 1 0 1 1 0 8 0 sysvmsgpl 40 25 0 16 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 97 0 88 1 0 1 1 0 8 0 shmpl 112 44 0 8 2 0 2 2 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 4616 0 3107 95 0 95 95 0 8 0 ffsino 296 4616 0 3107 117 0 117 117 0 8 0 nchpl 144 6968 0 5257 64 0 64 64 0 8 0 rtmask 32 10 0 10 3 3 0 1 0 8 0 uvmvnodes 80 5838 0 0 120 0 120 120 0 8 0 vnodes 216 5838 0 0 325 0 325 325 0 8 0 namei 1024 23932 0 23932 4 3 1 2 0 8 1 percpumem 16 149 0 98 1 0 1 1 0 8 0 kstatmem 264 170 0 136 3 0 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 7 0 7 5 4 1 1 0 8 1 scxspl 216 46657 0 46657 12 11 1 8 1 8 1 plimitpl 152 443 0 425 1 0 1 1 0 8 0 sigapl 424 2052 0 1996 7 0 7 7 0 8 0 knotepl 120 569 0 0 17 0 17 17 0 8 0 kqueuepl 224 840 0 827 12 5 7 7 0 8 6 pipepl 344 411 0 382 9 6 3 9 0 8 0 fdescpl 528 2025 0 1993 3 0 3 3 0 8 0 filepl 160 12984 0 12758 21 7 14 16 0 8 3 lockfpl 104 1136 0 1134 2 1 1 2 0 8 0 lockfspl 48 385 0 383 1 0 1 1 0 8 0 sessionpl 144 32 0 23 1 0 1 1 0 8 0 pgrppl 48 70 0 53 1 0 1 1 0 8 0 ucredpl 104 1677 0 1663 1 0 1 1 0 8 0 zombiepl 144 2241 0 2240 1 0 1 1 0 8 0 processpl 1232 2052 0 1996 5 0 5 5 0 8 0 procpl 664 4753 0 4686 7 0 7 7 0 8 0 sosppl 168 7 0 7 2 2 0 1 0 8 0 sockpl 752 3126 0 3095 32 21 11 17 0 8 7 mcl64k 65536 30 0 0 4 0 4 4 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 107 0 0 14 0 14 14 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 42 0 0 5 0 5 5 0 8 0 mtagpl 96 70 0 0 2 0 2 2 0 8 0 mbufpl 256 1179 0 0 74 0 74 74 0 8 0 bufpl 280 19090 0 12947 440 0 440 440 0 8 0 anonpl 32 12080 0 0 98 0 98 98 0 246 0 amapchunkpl 152 60426 0 59884 44 18 26 37 0 158 2 amappl16 200 6829 0 6789 40 25 15 28 0 8 4 amappl15 192 11 0 11 3 3 0 1 0 8 0 amappl14 184 132 0 120 1 0 1 1 0 8 0 amappl13 176 8 0 8 1 1 0 1 0 8 0 amappl12 168 2816 0 2783 3 1 2 2 0 8 0 amappl11 160 50 0 36 1 0 1 1 0 8 0 amappl10 152 19 0 19 1 1 0 1 0 8 0 amappl9 144 252 0 252 1 1 0 1 0 8 0 amappl8 136 21 0 18 1 0 1 1 0 8 0 amappl7 128 119 0 107 1 0 1 1 0 8 0 amappl6 120 232 0 229 1 0 1 1 0 8 0 amappl5 112 143 0 133 1 0 1 1 0 8 0 amappl4 104 326 0 305 1 0 1 1 0 8 0 amappl3 96 12035 0 11912 4 0 4 4 0 8 0 amappl2 88 733 0 670 2 0 2 2 0 8 0 amappl1 80 16167 0 15558 15 0 15 15 0 8 0 amappl 88 16570 0 16388 5 0 5 5 0 92 0 dma4096 4096 3 0 3 3 3 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 8 0 8 3 3 0 1 0 8 0 dma128 128 256 0 256 4 3 1 1 0 8 1 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 46 0 8 1 0 1 1 0 8 0 uaddrrnd 24 2025 0 1993 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2025 0 1993 1 0 1 1 0 8 0 vmmpekpl 168 17528 0 17483 3 0 3 3 0 8 0 vmmpepl 168 131993 0 129906 116 14 102 112 0 357 0 vmsppl 488 2024 0 1993 5 0 5 5 0 8 0 rwobjpl 80 41151 0 34306 141 0 141 141 0 8 1 pdppl 4096 4058 0 3986 106 34 72 86 0 8 0 pvpl 32 19621 0 0 160 2 158 158 0 265 0 pmappl 256 2024 0 1993 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 362 0 64 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(ffffffff83827ff0) 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(ffffffff838d3f40) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838d3f40) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80003c4753a0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c4753a0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70026558aec0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> trace sys_semop(ffff80003c458fb8,ffff80003c48fc70,ffff80003c48fbc0) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c48fc70) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c48fc70) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9b09ea36d90, count: -3