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(ffff800032409248,ffff80002a2a0350,ffff80002a2a02a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002a2a0350) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2a0350) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb182125dde0, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a2a0270 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff800032409248 rax 0xdeafbeaddeafbead r8 0x7f7fffffc000 r9 0 r10 0x550bfacd69a4791 r11 0xbe5ab1d28d3c7edf r12 0 r13 0xfffffd8067861a10 r14 0xffff80002a2a0350 r15 0 rip 0xffffffff81b74b45 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a2a0180 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=99639 pid=78630 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=86, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a340040,0xffff800032408030 process=0xffff80002a2a5350 user=0xffff80002a29b000, vmspace=0xfffffd806381dd80 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 60029 327973 33882 0 2 0 syz-executor 60029 512950 33882 0 3 0x4000080 fsleep syz-executor 60029 364241 33882 0 2 0x4000000 syz-executor 60029 34840 33882 0 2 0x4000000 syz-executor 68397 75806 97796 0 7 0 syz-executor 68397 389544 97796 0 2 0x4000000 syz-executor 68397 181644 97796 0 3 0x4000080 fsleep syz-executor 78630 56620 11442 0 2 0 syz-executor *78630 99639 11442 0 7 0x4000000 syz-executor 78630 34962 11442 0 3 0x4000080 fsleep syz-executor 78630 443254 11442 0 3 0x4000080 fsleep syz-executor 92796 140988 34968 0 2 0 syz-executor 92796 266388 34968 0 3 0x4000080 msgwait syz-executor 92796 250787 34968 0 3 0x4000080 msgwait syz-executor 92796 457501 34968 0 3 0x4000080 fsleep syz-executor 93265 413478 49421 0 3 0x80 nanoslp syz-executor 93265 27673 49421 0 3 0x4000080 pipewr syz-executor 93265 402570 49421 0 3 0x4000080 pipewr syz-executor 93265 374906 49421 0 3 0x4000080 fsleep syz-executor 47340 516392 71289 -1 3 0x3010 suspend syz-executor 47340 82804 71289 -1 2 0x4081010 syz-executor 47340 343424 71289 -1 3 0x4081010 inode syz-executor 58832 114187 67988 0 3 0x3000 suspend syz-executor 58832 464540 67988 0 2 0x4081000 syz-executor 32684 227908 0 0 3 0x14200 acct acct 82009 492596 95435 0 2 0x2 syz-executor 9139 161754 0 0 3 0x14200 bored sosplice 49421 396579 95435 0 3 0x82 nanoslp syz-executor 33882 32604 95435 0 3 0x82 nanoslp syz-executor 97796 369305 95435 0 3 0x82 nanoslp syz-executor 67988 7251 95435 0 3 0x82 wait syz-executor 11442 447638 95435 0 3 0x82 nanoslp syz-executor 34968 230746 95435 0 3 0x82 nanoslp syz-executor 71289 447463 95435 0 3 0x82 nanoslp syz-executor 95435 50978 38842 0 3 0x82 kqread syz-executor 38842 260989 98065 0 3 0x10008a sigsusp ksh 98065 336832 18066 0 3 0x98 kqread sshd-session 18066 447964 17557 0 3 0x92 kqread sshd-session 59284 89397 1 0 3 0x100083 ttyopn getty 17557 392830 1 0 3 0x88 kqread sshd 20248 158521 94040 74 3 0x1100092 bpf pflogd 94040 491625 1 0 3 0x80 sbwait pflogd 85944 297750 43811 73 3 0x1100090 kqread syslogd 43811 32458 1 0 3 0x100082 sbwait syslogd 55156 126740 1 0 3 0x100080 kqread resolvd 35865 279966 0 0 3 0x14200 bored smr 58111 432901 0 0 2 0x14200 zerothread 51560 215539 0 0 3 0x14200 aiodoned aiodoned 36744 466627 0 0 3 0x14200 syncer update 81628 457627 0 0 3 0x14200 cleaner cleaner 23827 364448 0 0 3 0x14200 reaper reaper 54846 362789 0 0 3 0x14200 pgdaemon pagedaemon 58154 416347 0 0 3 0x14200 bored viomb 44208 32153 0 0 3 0x40014200 acpi0 acpi0 42635 303457 0 0 3 0x40014200 idle1 56070 314334 0 0 3 0x14200 bored softnet7 81984 61411 0 0 3 0x14200 bored softnet6 36852 20136 0 0 3 0x14200 bored softnet5 96540 117017 0 0 3 0x14200 bored softnet4 56916 274347 0 0 3 0x14200 bored softnet3 94475 184663 0 0 3 0x14200 bored softnet2 51869 519070 0 0 3 0x14200 bored softnet1 6505 293210 0 0 3 0x14200 bored softnet0 37739 328359 0 0 3 0x14200 bored systqmp 13164 113331 0 0 3 0x14200 bored systq 94807 381137 0 0 3 0x14200 tmoslp softclockmp 90242 205678 0 0 3 0x40014200 tmoslp softclock 81807 475618 0 0 3 0x40014200 idle0 1 400512 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 78630 (syz-executor) thread 0xffff800032409248 (99639) Process 47340 (syz-executor) thread 0xffff800032408d18 (82804) Process 58832 (syz-executor) thread 0xffff80002a341500 (464540) Process 82009 (syz-executor) thread 0xffff800032409778 (492596) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10207 11090K 11234K 166960K 11868 0 pcb 17 14K 30K 166960K 294 0 rtable 177 12K 12K 166960K 390 0 pf 35 17K 67486K 166960K 147 0 ifaddr 34 5K 8K 166960K 99 0 ifgroup 51 2K 2K 166960K 163 0 sysctl 4 1K 9K 166960K 16 0 counters 66 36K 37K 166960K 324 0 ioctlops 0 0K 4K 166960K 1755 0 iov 0 0K 28K 166960K 185 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1376 87K 87K 166960K 1954 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 35 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 89K 166960K 1050 0 sigio 0 0K 0K 166960K 16 0 proc 67 99K 163K 166960K 661 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 125 0 in_multi 59 4K 7K 166960K 145 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 545 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 232 135K 186K 166960K 11474 0 UVM aobj 56 3K 3K 166960K 59 0 pinsyscall 37 74K 99K 166960K 2194 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 70 0 NDP 11 0K 2K 166960K 68 0 temp 67 8653K 8785K 166960K 43053 0 kqueue 7 12K 30K 166960K 203 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 165 0 163 2 1 1 2 0 8 0 rtentry 176 123 0 63 5 0 5 5 0 8 0 unpcb 144 649 0 623 9 7 2 4 0 8 0 syncache 336 11 0 11 4 3 1 1 0 8 1 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 736 377 0 369 10 6 4 7 0 8 2 arp 128 13 0 4 1 0 1 1 0 8 0 inpcb 328 988 0 980 17 13 4 12 0 8 2 nd6 144 21 0 9 1 0 1 1 0 8 0 pkpcb 40 14 0 14 3 2 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1192 115 0 115 5 4 1 1 0 8 1 pppxif 1504 4 0 4 3 2 1 1 0 8 1 pffrag 232 4 0 0 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 73 0 67 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 pfstitem 24 55 0 22 1 0 1 1 0 8 0 pfstkey 128 59 0 26 2 0 2 2 0 8 0 pfstate 384 56 0 24 4 0 4 4 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 579 0 311 29 8 21 28 0 8 0 art_table 40 581 0 311 5 0 5 5 0 8 0 art_node 32 121 0 71 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 9 1 0 1 1 0 8 0 semapl 112 27 0 18 1 0 1 1 0 8 0 shmpl 112 56 0 3 2 0 2 2 0 8 0 dirhash 1024 34 0 17 3 0 3 3 0 8 0 dino2pl 256 3330 0 1820 96 0 96 96 0 8 0 ffsino 296 3330 0 1820 118 0 118 118 0 8 0 nchpl 144 4808 0 4263 64 40 24 64 0 8 0 rtmask 32 16 0 16 4 4 0 1 0 8 0 uvmvnodes 80 3639 0 0 75 0 75 75 0 8 0 vnodes 216 3639 0 0 203 0 203 203 0 8 0 namei 1024 17206 0 17206 8 6 2 3 0 8 2 percpumem 16 177 0 129 1 0 1 1 0 8 0 kstatmem 264 104 0 78 3 0 3 3 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 7 0 7 4 4 0 1 0 8 0 scxspl 216 24613 0 24613 11 10 1 8 1 8 1 plimitpl 152 209 0 190 1 0 1 1 0 8 0 sigapl 424 1380 0 1327 10 3 7 9 0 8 0 knotepl 120 563 0 0 17 0 17 17 0 8 0 kqueuepl 224 448 0 442 6 5 1 5 0 8 0 pipepl 344 256 0 228 9 0 9 9 0 8 6 fdescpl 528 1336 0 1307 3 0 3 3 0 8 0 filepl 160 8179 0 7954 27 12 15 16 0 8 4 lockfpl 104 322 0 313 1 0 1 1 0 8 0 lockfspl 48 122 0 120 1 0 1 1 0 8 0 sessionpl 144 31 0 23 1 0 1 1 0 8 0 pgrppl 48 47 0 31 1 0 1 1 0 8 0 ucredpl 104 1178 0 1166 1 0 1 1 0 8 0 zombiepl 144 1462 0 1460 2 1 1 1 0 8 0 processpl 1232 1380 0 1327 6 1 5 6 0 8 0 procpl 664 3047 0 2976 9 2 7 8 0 8 0 sosppl 168 8 0 8 3 2 1 1 0 8 1 sockpl 752 1907 0 1871 38 30 8 17 0 8 4 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 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 108 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 36 0 0 4 0 4 4 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1186 0 0 73 0 73 73 0 8 0 bufpl 280 9413 0 3269 440 0 440 440 0 8 0 anonpl 32 11248 0 0 91 0 91 91 0 246 0 amapchunkpl 152 38929 0 38351 47 23 24 29 0 158 1 amappl16 200 4935 0 4651 75 52 23 25 0 8 1 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 129 0 120 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 1999 0 1971 4 1 3 3 0 8 0 amappl11 160 54 0 46 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 254 0 254 2 2 0 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 113 0 104 1 0 1 1 0 8 0 amappl6 120 202 0 198 1 0 1 1 0 8 0 amappl5 112 144 0 137 1 0 1 1 0 8 0 amappl4 104 327 0 309 1 0 1 1 0 8 0 amappl3 96 6731 0 6637 4 1 3 3 0 8 0 amappl2 88 1622 0 1560 3 0 3 3 0 8 0 amappl1 80 13899 0 13380 19 4 15 18 0 8 0 amappl 88 10576 0 10400 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 255 0 255 3 3 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 58 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1336 0 1307 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1336 0 1307 1 0 1 1 0 8 0 vmmpekpl 168 13068 0 13018 3 0 3 3 0 8 0 vmmpepl 168 91935 0 89943 133 37 96 107 0 357 0 vmsppl 488 1335 0 1307 6 2 4 5 0 8 0 rwobjpl 80 30805 0 26038 102 3 99 99 0 8 0 pdppl 4096 2680 0 2614 118 52 66 84 0 8 0 pvpl 32 18028 0 0 146 1 145 145 0 265 0 pmappl 256 1335 0 1307 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 370 0 77 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff800032409248,ffff80002a2a0350,ffff80002a2a02a0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80002a2a0350) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a2a0350) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb182125dde0, 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: 0x7848770d6ea0, count: -3