kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace sys_semop(ffff80002ec01790,ffff80003a0d7c20,ffff80003a0d7b70) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003a0d7c20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003a0d7c20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e330bbbe60, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003a0d7b40 rbx 0xdeafbeaddeafbeb9 rdx 0 rcx 0xffff80002ec01790 rax 0xdeafbeaddeafbeb9 r8 0x7f7fffffc000 r9 0 r10 0x8e288fc0abab90d9 r11 0x74e73384749a5d0a r12 0 r13 0xfffffd806a159770 r14 0xffff80003a0d7c20 r15 0 rip 0xffffffff823b1d35 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003a0d7a50 ss 0 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=118598 pid=11190 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002ec00568 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002ec01a28,0xffff80002a340818 process=0xffff80002a2a5cf0 user=0xffff80003a0d2000, vmspace=0xfffffd800b027b70 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51587 37578 67568 0 2 0 syz-executor 51587 29628 67568 0 2 0x4000000 syz-executor 70226 305225 80364 0 2 0 syz-executor 70226 150802 80364 0 3 0x4000080 fsleep syz-executor 11190 138632 7240 0 3 0x3000 suspend syz-executor *11190 118598 7240 0 7 0x4081000 syz-executor 36884 182521 95937 0 2 0x100002 sh 4344 389419 24136 0 3 0x80 nanoslp syz-executor 4344 16370 24136 0 3 0x4000080 fsleep syz-executor 4344 129961 24136 0 3 0x4000080 kqread syz-executor 4344 251832 24136 0 3 0x4000080 fsleep syz-executor 10605 267908 81256 0 7 0 syz-executor 10605 341639 81256 0 3 0x4000080 fsleep syz-executor 10605 156100 81256 0 2 0x4000000 syz-executor 95937 182427 10939 0 3 0x82 wait syz-executor 7240 403209 10939 0 2 0x3 syz-executor 11772 238195 1 0 3 0x100083 ttyin getty 81256 350785 10939 0 3 0x82 nanoslp syz-executor 32402 79661 10939 0 2 0x3 syz-executor 9917 175388 10939 0 2 0x2 syz-executor 67568 134597 10939 0 2 0x3 syz-executor 24136 499851 10939 0 3 0x82 nanoslp syz-executor 79438 9221 0 0 3 0x14200 bored sosplice 80364 56331 10939 0 3 0x82 nanoslp syz-executor 10939 325491 33626 0 2 0x3 syz-executor 33626 123597 83709 0 3 0x10008a sigsusp ksh 83709 33429 51435 0 3 0x98 kqread sshd-session 51435 508405 64981 0 3 0x92 kqread sshd-session 64981 223823 1 0 3 0x88 kqread sshd 70095 233073 97144 74 3 0x1100092 bpf pflogd 97144 67827 1 0 3 0x80 sbwait pflogd 77029 306473 76224 73 3 0x1100090 kqread syslogd 76224 242996 1 0 3 0x100082 sbwait syslogd 8042 429213 1 0 3 0x100080 kqread resolvd 22612 109227 0 0 3 0x14200 bored smr 44756 239809 0 0 2 0x14200 zerothread 8362 488927 0 0 3 0x14200 aiodoned aiodoned 13229 499508 0 0 3 0x14200 syncer update 90235 360670 0 0 3 0x14200 cleaner cleaner 93864 147539 0 0 3 0x14200 reaper reaper 52769 115757 0 0 3 0x14200 pgdaemon pagedaemon 61947 395218 0 0 3 0x14200 bored viomb 89074 179105 0 0 3 0x40014200 acpi0 acpi0 29099 93245 0 0 3 0x40014200 idle1 1010 216054 0 0 3 0x14200 bored softnet7 90950 313849 0 0 3 0x14200 bored softnet6 74325 514908 0 0 3 0x14200 bored softnet5 91374 112622 0 0 3 0x14200 bored softnet4 60221 362840 0 0 3 0x14200 bored softnet3 48600 324510 0 0 3 0x14200 bored softnet2 78380 275974 0 0 3 0x14200 bored softnet1 20279 126570 0 0 3 0x14200 bored softnet0 78637 144066 0 0 3 0x14200 bored systqmp 12388 415617 0 0 3 0x14200 bored systq 36666 479452 0 0 3 0x14200 tmoslp softclockmp 52751 460794 0 0 3 0x40014200 tmoslp softclock 36653 196760 0 0 3 0x40014200 idle0 1 434436 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 11190 (syz-executor) thread 0xffff80002ec01790 (118598) Process 9917 (syz-executor) thread 0xffff80002ec01cc0 (175388) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10249 11066K 12499K 166960K 15796 0 pcb 17 18K 20K 166960K 1028 0 rtable 129 10K 12K 166960K 1297 0 pf 41 18K 131090K 166960K 689 0 ifaddr 29 5K 10K 166960K 415 0 ifgroup 63 2K 3K 166960K 708 0 sysctl 4 1K 9K 166960K 46 0 counters 72 37K 38K 166960K 650 0 ioctlops 0 0K 8K 166960K 2464 0 iov 0 0K 30K 166960K 409 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1526 96K 97K 166960K 5200 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 59 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 247 0 dirhash 12 2K 3K 166960K 111 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 244K 166960K 4791 0 sigio 0 0K 0K 166960K 107 0 proc 67 83K 180K 166960K 1899 0 subproc 72 4K 4K 166960K 355 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 610 0 in_multi 42 3K 7K 166960K 596 0 ether_multi 1 0K 0K 166960K 33 0 mrt 1 0K 0K 166960K 24 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 1614 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 72 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 211 153K 191K 166960K 43459 0 UVM aobj 76 4K 4K 166960K 82 0 pinsyscall 36 72K 103K 166960K 6716 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 354 0 NDP 14 0K 2K 166960K 311 0 temp 83 8652K 8905K 166960K 223921 0 kqueue 9 16K 32K 166960K 838 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> 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 488 0 487 4 3 1 3 0 8 0 rtentry 176 478 0 442 6 2 4 5 0 8 0 unpcb 144 3085 0 3074 27 25 2 9 0 8 1 syncache 336 24 0 24 12 12 0 1 0 8 0 tcpqe 32 11 0 11 6 6 0 1 0 8 0 tcpcb 736 1562 0 1556 26 25 1 7 0 8 0 arp 128 57 0 53 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 3 0 3 1 1 0 1 0 8 0 inpcb 328 5534 0 5527 67 63 4 12 0 8 3 nd6 144 89 0 82 1 0 1 1 0 8 0 pkpcb 40 39 0 39 13 12 1 1 0 8 1 kcovpl 48 39 0 31 1 0 1 1 0 8 0 mppekey 1024 4 0 4 3 3 0 1 0 8 0 ppxss 1192 206 0 206 7 6 1 1 0 8 1 pppxif 1504 25 0 25 12 12 0 1 0 8 0 pfstscr 40 10 0 10 6 6 0 1 0 8 0 pffrag 232 35 0 28 1 0 1 1 0 482 0 pffrnode 88 29 0 23 1 0 1 1 0 8 0 pffrent 40 161 0 154 1 0 1 1 0 8 0 pfosfp 40 1430 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1430 0 714 21 0 21 21 0 8 0 pfrktable 1344 3 0 3 2 2 0 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 270 0 229 1 0 1 1 0 8 0 pfstkey 128 287 0 246 3 0 3 3 0 8 0 pfstate 384 278 0 238 8 3 5 7 0 8 0 pfrule 1344 43 0 37 2 1 1 2 0 8 0 rttmr 136 3 0 3 3 3 0 1 0 8 0 art_heap8 4096 5 0 2 4 1 3 4 0 8 0 art_heap4 256 2354 0 2127 41 20 21 28 0 8 0 art_table 40 2359 0 2129 5 1 4 5 0 8 0 art_node 32 473 0 443 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 18 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 237 0 228 1 0 1 1 0 8 0 shmpl 112 79 0 6 3 0 3 3 0 8 0 dirhash 1024 84 0 67 3 0 3 3 0 8 0 dino2pl 256 9749 0 8181 99 0 99 99 0 8 0 ffsino 296 9749 0 8181 122 0 122 122 0 8 0 nchpl 144 16030 0 15429 65 39 26 65 0 8 0 rtmask 32 24 0 24 9 9 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 59184 0 59184 4 3 1 2 0 8 1 percpumem 16 340 0 289 1 0 1 1 0 8 0 kstatmem 264 476 0 442 3 0 3 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 20 0 20 11 10 1 1 0 8 1 scxspl 216 120450 0 120450 19 18 1 8 1 8 1 plimitpl 152 1218 0 1202 1 0 1 1 0 8 0 sigapl 424 5007 0 4956 9 1 8 9 0 8 0 knotepl 120 732 0 0 17 0 17 17 0 8 0 kqueuepl 224 1999 0 1991 23 20 3 5 0 8 2 pipepl 344 716 0 689 7 4 3 6 0 8 0 fdescpl 528 4943 0 4915 3 0 3 3 0 8 0 filepl 160 34065 0 33872 40 27 13 20 0 8 0 lockfpl 104 2170 0 2169 3 2 1 2 0 8 0 lockfspl 48 927 0 926 1 0 1 1 0 8 0 sessionpl 144 77 0 69 1 0 1 1 0 8 0 pgrppl 48 176 0 160 1 0 1 1 0 8 0 ucredpl 104 5536 0 5524 1 0 1 1 0 8 0 zombiepl 144 7299 0 7298 1 0 1 1 0 8 0 processpl 1232 5007 0 4956 6 1 5 6 0 8 0 procpl 664 12541 0 12482 10 3 7 9 0 8 0 sosppl 168 25 0 25 13 13 0 1 0 8 0 sockpl 752 9300 0 9281 100 94 6 24 0 8 3 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k 2048 44 0 0 5 0 5 5 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 500 0 0 29 0 29 29 0 8 0 bufpl 280 49402 0 43259 441 1 440 440 0 8 0 anonpl 32 14990 0 0 121 1 120 120 0 246 0 amapchunkpl 152 152240 0 151675 95 69 26 35 0 158 0 amappl16 200 16626 0 16566 113 100 13 29 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 223 0 214 1 0 1 1 0 8 0 amappl13 176 34 0 34 1 1 0 1 0 8 0 amappl12 168 6113 0 6085 3 1 2 2 0 8 0 amappl11 160 51 0 42 1 0 1 1 0 8 0 amappl10 152 29 0 29 1 1 0 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 27 0 24 1 0 1 1 0 8 0 amappl7 128 197 0 187 1 0 1 1 0 8 0 amappl6 120 567 0 562 1 0 1 1 0 8 0 amappl5 112 253 0 246 1 0 1 1 0 8 0 amappl4 104 430 0 412 1 0 1 1 0 8 0 amappl3 96 31260 0 31165 5 1 4 4 0 8 0 amappl2 88 1279 0 1230 2 0 2 2 0 8 0 amappl1 80 33920 0 33413 18 4 14 16 0 8 0 amappl 88 41381 0 41229 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma8192 8192 2 0 2 2 2 0 2 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 4 0 3 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 9 0 9 4 4 0 1 0 8 0 dma128 128 258 0 258 5 5 0 1 0 8 0 dma64 64 9 0 9 4 4 0 1 0 8 0 dma32 32 9 0 9 3 3 0 1 0 8 0 dma16 16 20 0 19 1 0 1 1 0 8 0 aobjpl 72 81 0 6 2 0 2 2 0 8 0 uaddrrnd 24 4942 0 4915 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4942 0 4915 1 0 1 1 0 8 0 vmmpekpl 168 38248 0 38186 4 0 4 4 0 8 0 vmmpepl 168 319092 0 317438 155 65 90 111 0 357 0 vmsppl 488 4942 0 4915 6 1 5 5 0 8 0 rwobjpl 80 89515 0 82679 162 15 147 150 0 8 0 pdppl 4096 9892 0 9830 199 131 68 88 0 8 6 pvpl 32 23175 0 0 188 1 187 187 0 265 0 pmappl 256 4942 0 4915 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 457 0 204 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80002ec01790,ffff80003a0d7c20,ffff80003a0d7b70) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003a0d7c20) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003a0d7c20) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e330bbbe60, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299edff0) 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 end of kernel end trace frame: 0x7a095483fb00, count: -3