login: 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(ffff800039801a28,ffff80003c42d2d0,ffff80003c42d220) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c42d2d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c42d2d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9e4865f1200, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c42d1f0 rbx 0xdeafbeaddeafd9ad rdx 0 rcx 0xffff800039801a28 rax 0xdeafbeaddeafd9ad r8 0x7f7fffffc000 r9 0xfffffd80097fb340 r10 0x9a4dd5750e9228aa r11 0xc6dc7760a8ed7108 r12 0 r13 0xfffffd806ba55850 r14 0xffff80003c42d2d0 r15 0 rip 0xffffffff82219125 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c42d100 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=52562 pid=33396 tcnt=4 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=0xffff800039800568,0xffff8000398002e0 process=0xffff80003c4a7048 user=0xffff80003c428000, vmspace=0xfffffd806bda59a8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33396 248418 1960 0 2 0 syz-executor 33396 399855 1960 0 3 0x4000080 rest syz-executor *33396 52562 1960 0 7 0x4000000 syz-executor 33396 154957 1960 0 7 0x4000000 syz-executor 49483 222609 22658 0 2 0 syz-executor 49483 506756 22658 0 2 0x4000000 syz-executor 97484 232501 19036 0 2 0 syz-executor 97484 456397 19036 0 3 0x4000080 kqsel syz-executor 43069 103057 48396 0 4 0x82000 syz-executor 43069 1116 48396 0 3 0x4082000 inode syz-executor 43069 524267 48396 0 2 0x4082000 syz-executor 43069 58951 48396 0 3 0x4002000 suspend syz-executor 43069 24275 48396 0 4 0x4082000 syz-executor 60299 361901 0 0 3 0x14200 acct acct 93555 484602 1 0 3 0x100083 ttyin getty 85857 249046 0 0 3 0x14280 nfsidl nfsio 84587 370338 0 0 3 0x14280 nfsidl nfsio 21607 120723 0 0 3 0x14280 nfsidl nfsio 25292 165249 0 0 3 0x14280 nfsidl nfsio 66787 247434 0 0 3 0x14280 nfsidl nfsio 46731 506079 0 0 3 0x14280 nfsidl nfsio 11573 508726 0 0 3 0x14280 nfsidl nfsio 18338 354097 0 0 3 0x14280 nfsidl nfsio 39625 112700 0 0 3 0x14280 nfsidl nfsio 77150 217979 0 0 3 0x14280 nfsidl nfsio 36624 59767 0 0 3 0x14280 nfsidl nfsio 37095 373775 0 0 3 0x14280 nfsidl nfsio 29566 82029 0 0 3 0x14280 nfsidl nfsio 86463 139005 0 0 3 0x14280 nfsidl nfsio 85620 330745 0 0 3 0x14280 nfsidl nfsio 94957 387257 0 0 3 0x14280 nfsidl nfsio 9504 220853 0 0 3 0x14280 nfsidl nfsio 98371 378962 0 0 3 0x14280 nfsidl nfsio 85804 452661 0 0 3 0x14280 nfsidl nfsio 46871 342695 0 0 3 0x14280 nfsidl nfsio 86205 131656 0 0 3 0x14200 bored sosplice 21519 514588 51591 0 3 0x100082 sbwait arp 51591 117183 57500 0 3 0x10008a sigsusp sh 75303 339558 64741 0 3 0x100082 sbwait arp 64741 270175 35268 0 3 0x10008a sigsusp sh 19036 377956 61840 0 3 0x82 nanoslp syz-executor 48396 411736 61840 0 3 0x82 nanoslp syz-executor 12983 389648 61840 0 2 0x2 syz-executor 4773 409335 61840 0 3 0x82 wait syz-executor 57500 136584 61840 0 3 0x82 wait syz-executor 1960 294786 61840 0 3 0x82 nanoslp syz-executor 22658 492234 61840 0 3 0x82 nanoslp syz-executor 35268 64097 61840 0 3 0x82 wait syz-executor 61840 468048 43265 0 3 0x82 kqread syz-executor 43265 131438 52925 0 3 0x10008a sigsusp ksh 52925 249636 70770 0 3 0x98 kqread sshd-session 70770 438897 20789 0 3 0x92 kqread sshd-session 20789 273389 1 0 3 0x88 kqread sshd 93305 468295 45670 74 3 0x1100092 bpf pflogd 45670 35551 1 0 3 0x80 sbwait pflogd 20753 482361 43861 73 3 0x1100090 kqread syslogd 43861 510846 1 0 3 0x100082 sbwait syslogd 18039 43720 1 0 3 0x100080 kqread resolvd 47506 315356 49348 77 3 0x100092 kqread dhcpleased 97373 453526 49348 77 3 0x100092 kqread dhcpleased 49348 474855 1 0 3 0x80 kqread dhcpleased 43844 438171 0 0 3 0x14200 bored smr 82382 521433 0 0 2 0x14200 zerothread 9352 442839 0 0 3 0x14200 aiodoned aiodoned 28262 363403 0 0 3 0x14200 syncer update 58918 403495 0 0 3 0x14200 cleaner cleaner 54716 446723 0 0 3 0x14200 reaper reaper 47592 152844 0 0 3 0x14200 pgdaemon pagedaemon 95525 5327 0 0 3 0x14200 bored viomb 93596 332231 0 0 3 0x40014200 acpi0 acpi0 31940 382542 0 0 3 0x40014200 idle1 87505 378343 0 0 3 0x14200 bored softnet1 86820 97371 0 0 3 0x14200 bored softnet0 37424 164581 0 0 3 0x14200 bored systqmp 4787 487797 0 0 3 0x14200 bored systq 85820 481840 0 0 3 0x14200 tmoslp softclockmp 79158 161340 0 0 3 0x40014200 tmoslp softclock 37532 72519 0 0 3 0x40014200 idle0 1 56981 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33396 (syz-executor) thread 0xffff800039801a28 (52562) Process 49483 (syz-executor) thread 0xffff800039800d30 (506756) Process 43069 (syz-executor) thread 0xffff8000ffffca68 (524267) Process 12983 (syz-executor) thread 0xffff8000fffef4d8 (389648) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10224 11028K 11238K 166960K 11967 0 pcb 19 14K 16K 166960K 189 0 rtable 198 8K 9K 166960K 370 0 pf 43 19K 23K 166960K 82 0 ifaddr 37 5K 7K 166960K 57 0 ifgroup 63 2K 2K 166960K 86 0 sysctl 4 1K 9K 166960K 10 0 counters 72 37K 37K 166960K 92 0 ioctlops 0 0K 4K 166960K 1526 0 iov 0 0K 12K 166960K 21 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1466 92K 93K 166960K 1826 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 18 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 19 69K 97K 166960K 396 0 sigio 0 0K 0K 166960K 5 0 proc 72 115K 147K 166960K 550 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 47 0 in_multi 57 4K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 139 625K 625K 166960K 139 0 exec 0 0K 1K 166960K 441 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 258 163K 173K 166960K 5712 0 UVM aobj 13 2K 2K 166960K 13 0 pinsyscall 46 92K 114K 166960K 1516 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 22 0 NDP 14 0K 1K 166960K 34 0 temp 53 8645K 8710K 166960K 19265 0 kqueue 14 22K 28K 166960K 70 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 51 0 45 1 0 1 1 0 8 0 rtentry 176 108 0 29 5 0 5 5 0 8 0 unpcb 144 185 0 165 2 1 1 2 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpcb 736 103 0 98 4 3 1 4 0 8 0 arp 136 19 0 5 1 0 1 1 0 8 0 inpcb 328 470 0 460 9 2 7 7 0 8 5 nd6 152 22 0 7 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 6 0 6 2 1 1 1 0 8 1 pppxif 1504 1 0 1 1 1 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 6 0 1 1 0 1 1 0 482 0 pffrnode 88 6 0 1 1 0 1 1 0 8 0 pffrent 40 8 0 2 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 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 34 0 1 1 0 1 1 0 8 0 pfstkey 128 36 0 3 2 0 2 2 0 8 0 pfstate 384 35 0 2 4 0 4 4 0 8 0 pfrule 1344 24 0 18 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 416 0 125 26 0 26 26 0 8 4 art_table 40 418 0 125 5 0 5 5 0 8 0 art_node 32 108 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 15 0 7 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2205 0 695 95 0 95 95 0 8 0 ffsino 296 2205 0 695 117 0 117 117 0 8 0 nchpl 144 2794 0 1098 64 0 64 64 0 8 0 vnodes 216 2537 0 0 141 0 141 141 0 8 0 namei 1024 8997 0 8996 2 1 1 2 0 8 0 percpumem 16 61 0 10 1 0 1 1 0 8 0 kstatmem 264 48 0 14 4 1 3 3 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 12563 0 12563 10 2 8 8 1 8 8 plimitpl 152 59 0 40 1 0 1 1 0 8 0 sigapl 424 729 0 658 10 1 9 9 0 8 0 knotepl 120 734 0 0 23 0 23 23 0 8 0 kqueuepl 224 105 0 94 1 0 1 1 0 8 0 pipepl 344 125 0 98 3 0 3 3 0 8 0 fdescpl 528 691 0 658 3 0 3 3 0 8 0 filepl 160 3771 0 3540 19 6 13 16 0 8 3 lockfpl 104 129 0 127 1 0 1 1 0 8 0 lockfspl 48 52 0 50 1 0 1 1 0 8 0 sessionpl 144 25 0 16 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 691 0 678 1 0 1 1 0 8 0 zombiepl 144 716 0 715 1 0 1 1 0 8 0 processpl 1232 729 0 658 6 0 6 6 0 8 0 procpl 664 1225 0 1145 8 0 8 8 0 8 0 sockpl 752 718 0 682 14 3 11 11 0 8 7 mcl64k 65536 6 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 108 0 0 14 0 14 14 0 8 0 mcl2k 2048 38 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 280 0 0 18 0 18 18 0 8 0 bufpl 280 4749 0 131 330 0 330 330 0 8 0 anonpl 32 9704 0 0 79 0 79 79 0 246 0 amapchunkpl 152 17756 0 17261 31 5 26 26 0 158 6 amappl16 200 2868 0 2765 22 16 6 19 0 8 0 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 2 0 2 1 1 0 1 0 8 0 amappl13 176 416 0 412 1 0 1 1 0 8 0 amappl12 168 1053 0 1007 3 0 3 3 0 8 0 amappl11 160 8 0 7 1 0 1 1 0 8 0 amappl10 152 49 0 35 1 0 1 1 0 8 0 amappl9 144 245 0 245 1 1 0 1 0 8 0 amappl8 136 44 0 42 1 0 1 1 0 8 0 amappl7 128 93 0 92 1 0 1 1 0 8 0 amappl6 120 277 0 260 1 0 1 1 0 8 0 amappl5 112 81 0 71 1 0 1 1 0 8 0 amappl4 104 418 0 385 2 1 1 2 0 8 0 amappl3 96 2906 0 2809 4 1 3 3 0 8 0 amappl2 88 818 0 741 2 0 2 2 0 8 0 amappl1 80 10682 0 10026 17 1 16 17 0 8 0 amappl 88 4929 0 4758 5 0 5 5 0 92 0 uvmvnodes 80 2537 0 0 52 0 52 52 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 6 0 6 1 1 0 1 0 8 0 dma128 128 257 0 257 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 12 0 0 1 0 1 1 0 8 0 uaddrrnd 24 691 0 658 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 691 0 658 1 0 1 1 0 8 0 vmmpekpl 168 7609 0 7578 2 0 2 2 0 8 0 vmmpepl 168 52750 0 50679 104 6 98 104 0 357 0 vmsppl 488 690 0 658 5 0 5 5 0 8 0 rwobjpl 80 20174 0 16527 75 0 75 75 0 8 0 pdppl 4096 1390 0 1316 102 26 76 88 0 8 2 pvpl 32 17999 0 0 146 0 146 146 0 265 0 pmappl 256 690 0 658 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 282 0 34 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff800039801a28,ffff80003c42d2d0,ffff80003c42d220) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c42d2d0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c42d2d0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9e4865f1200, 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 __mp_lock(ffffffff839ded00) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff839ded00) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80003c4bfc40) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c4bfc40) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9e4d5c1d780, count: -6