kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace sys_semop(ffff80003c94b4e0,ffff800036d1f4c0,ffff800036d1f410) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff800036d1f4c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800036d1f4c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x46ff0f9640, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff800036d1f3f0 rbx 0xdead4110dead4110 rdx 0 rcx 0 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0 r10 0x74238b521f1b8d99 r11 0xc97fe4516f32a4cc r12 0 r13 0xfffffd80666e2d90 r14 0xffff800036d1f4c0 r15 0 rip 0xffffffff813fffe5 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800036d1f300 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb> show proc PROC (syz-executor) tid=314283 pid=23022 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7ccd10,0xffff80003c94a560 process=0xffff8000ffff8018 user=0xffff800036d1a000, vmspace=0xfffffd806c23eb90 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 65106 288856 98586 0 2 0 syz-executor 65106 226195 98586 0 3 0x4000080 fsleep syz-executor 11243 441751 17508 0 2 0 syz-executor 11243 339325 17508 0 3 0x4000080 fsleep syz-executor 46405 48859 22501 0 2 0 syz-executor 46405 462563 22501 0 3 0x4000080 fsleep syz-executor 65977 406949 36280 0 2 0 syz-executor 23022 53587 97162 0 2 0 syz-executor 23022 471295 97162 0 3 0x4000080 kqsel syz-executor *23022 314283 97162 0 7 0x4000000 syz-executor 23022 516341 97162 0 3 0x4000080 fsleep syz-executor 39050 511956 70480 0 2 0 syz-executor 39050 43034 70480 0 2 0x4000000 syz-executor 53283 175096 2323 0 2 0 syz-executor 53283 396056 2323 0 2 0x4000000 syz-executor 53283 165320 2323 0 3 0x4000080 fsleep syz-executor 98586 361729 81832 0 3 0x82 nanoslp syz-executor 70480 109963 81832 0 3 0x82 nanoslp syz-executor 22501 503812 81832 0 3 0x82 nanoslp syz-executor 97162 391743 81832 0 3 0x82 nanoslp syz-executor 18317 478833 0 0 3 0x14200 acct acct 36280 90231 81832 0 3 0x82 nanoslp syz-executor 2323 403212 81832 0 3 0x82 nanoslp syz-executor 17508 486241 81832 0 3 0x82 nanoslp syz-executor 86811 428904 81832 0 2 0x2 syz-executor 81832 122633 85777 0 3 0x82 kqread syz-executor 85777 398973 40891 0 3 0x10008a sigsusp ksh 40891 435270 80831 0 3 0x98 kqread sshd-session 80831 46940 46865 0 3 0x92 kqread sshd-session 32081 39705 1 0 3 0x100083 ttyin getty 46865 387985 1 0 3 0x88 kqread sshd 6114 97434 90162 73 3 0x1100090 kqread syslogd 90162 99660 1 0 3 0x100082 sbwait syslogd 96960 391577 1 0 3 0x100080 kqread resolvd 31266 200991 88082 77 3 0x100092 kqread dhcpleased 48335 277940 88082 77 3 0x100092 kqread dhcpleased 88082 216083 1 0 3 0x80 kqread dhcpleased 62940 487930 0 0 3 0x14200 bored smr 3981 34951 0 0 2 0x14200 zerothread 19343 10876 0 0 3 0x14200 aiodoned aiodoned 71047 513861 0 0 3 0x14200 syncer update 79068 355505 0 0 3 0x14200 cleaner cleaner 72867 44230 0 0 3 0x14200 reaper reaper 46321 376983 0 0 3 0x14200 pgdaemon pagedaemon 59562 460589 0 0 3 0x14200 bored viomb 23943 264573 0 0 3 0x40014200 acpi0 acpi0 92743 433510 0 0 3 0x14200 bored softnet0 20316 28433 0 0 3 0x14200 bored systqmp 6745 204529 0 0 3 0x14200 bored systq 18953 368820 0 0 3 0x40014200 tmoslp softclock 90216 203162 0 0 3 0x40014200 idle0 1 107254 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10183 11056K 11338K 166960K 12779 0 pcb 17 18K 20K 166960K 435 0 rtable 276 11K 12K 166960K 676 0 pf 30 12K 19K 166960K 135 0 ifaddr 43 8K 8K 166960K 108 0 ifgroup 50 2K 2K 166960K 167 0 sysctl 4 1K 9K 166960K 44 0 counters 32 17K 18K 166960K 86 0 ioctlops 0 0K 4K 166960K 338 0 iov 0 0K 24K 166960K 42 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1465 92K 92K 166960K 2390 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 21 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 32 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 236K 166960K 1079 0 sigio 0 0K 0K 166960K 21 0 proc 60 59K 124K 166960K 690 0 subproc 72 4K 4K 166960K 108 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 342 0 in_multi 99 7K 7K 166960K 175 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 14 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 121 546K 546K 166960K 121 0 exec 0 0K 1K 166960K 497 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 150K 174K 166960K 11047 0 UVM aobj 89 3K 3K 166960K 92 0 pinsyscall 39 78K 96K 166960K 2246 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 53 0 NDP 11 0K 2K 166960K 75 0 temp 82 8656K 8732K 166960K 56156 0 kqueue 13 20K 28K 166960K 197 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 234 0 231 3 2 1 3 0 8 0 rtentry 136 191 0 78 4 0 4 4 0 8 0 unpcb 144 624 0 607 4 3 1 4 0 8 0 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 546 0 540 8 6 2 7 0 8 1 arp 96 31 0 10 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 328 1606 0 1595 16 11 5 13 0 8 3 nd6 112 41 0 16 1 0 1 1 0 8 0 pkpcb 40 69 0 69 1 1 0 1 0 8 0 kcovpl 48 12 0 4 1 0 1 1 0 8 0 mppekey 1024 2 0 2 1 0 1 1 0 8 1 ppxss 1072 40 0 40 2 1 1 1 0 8 1 pppxif 1384 4 0 4 1 1 0 1 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfrule 1344 3 0 2 1 0 1 1 0 8 0 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 812 0 357 36 7 29 31 0 8 0 art_table 40 816 0 357 5 0 5 5 0 8 0 art_node 32 190 0 94 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 27 0 18 1 0 1 1 0 8 0 shmpl 112 89 0 3 3 0 3 3 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 3230 0 1726 95 0 95 95 0 8 0 ffsino 256 3230 0 1726 95 0 95 95 0 8 0 nchpl 144 4644 0 2941 64 0 64 64 0 8 0 rtmask 32 7 0 7 1 1 0 1 0 8 0 vnodes 216 4017 0 0 224 0 224 224 0 8 0 namei 1024 16433 0 16432 2 1 1 2 0 8 0 kstatmem 264 102 0 80 2 0 2 2 0 8 0 scsiplug 72 11 0 11 2 1 1 1 0 8 1 scxspl 216 15487 0 15487 8 7 1 8 1 8 1 plimitpl 152 363 0 347 1 0 1 1 0 8 0 sigapl 424 1346 0 1302 6 0 6 6 0 8 0 knotepl 120 49767 0 49720 35 25 10 17 0 8 6 kqueuepl 184 302 0 292 1 0 1 1 0 8 0 pipepl 304 328 0 300 5 2 3 5 0 8 0 fdescpl 448 1328 0 1298 5 1 4 5 0 8 0 filepl 120 8718 0 8505 15 5 10 15 0 8 0 lockfpl 104 448 0 446 2 1 1 2 0 8 0 lockfspl 48 142 0 140 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 46 0 30 1 0 1 1 0 8 0 ucredpl 104 1119 0 1107 1 0 1 1 0 8 0 zombiepl 144 1475 0 1475 1 0 1 1 0 8 1 processpl 1152 1346 0 1302 4 0 4 4 0 8 0 procpl 664 2727 0 2674 6 0 6 6 0 8 0 sosppl 176 7 0 6 1 0 1 1 0 8 0 sockpl 552 2560 0 2529 14 9 5 12 0 8 1 mcl64k 65536 111 0 111 2 1 1 1 0 8 1 mcl8k 8192 14 0 14 1 1 0 1 0 8 0 mcl4k 4096 3618 0 3568 14 6 8 13 0 8 1 mcl2k 2048 1578 0 1578 6 3 3 3 0 8 3 mtagpl 96 9 0 9 1 1 0 1 0 8 0 mbufpl 256 17629 0 17438 74 56 18 72 0 8 2 bufpl 280 5366 0 121 375 0 375 375 0 8 0 anonpl 24 198035 0 194955 70 13 57 57 0 187 21 amapchunkpl 152 37485 0 37009 42 14 28 36 0 158 5 amappl16 200 3263 0 3233 39 27 12 16 0 8 8 amappl15 192 17 0 17 1 1 0 1 0 8 0 amappl14 184 6 0 6 2 1 1 1 0 8 1 amappl13 176 456 0 455 1 0 1 1 0 8 0 amappl12 168 1689 0 1651 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 41 0 31 1 0 1 1 0 8 0 amappl9 144 260 0 260 1 1 0 1 0 8 0 amappl8 136 20 0 19 1 0 1 1 0 8 0 amappl7 128 93 0 91 1 0 1 1 0 8 0 amappl6 120 307 0 295 1 0 1 1 0 8 0 amappl5 112 69 0 61 1 0 1 1 0 8 0 amappl4 104 403 0 378 1 0 1 1 0 8 0 amappl3 96 6320 0 6230 3 0 3 3 0 8 0 amappl2 88 1431 0 1361 2 0 2 2 0 8 0 amappl1 80 12992 0 12450 14 1 13 14 0 8 0 amappl 88 10124 0 9965 5 0 5 5 0 92 0 uvmvnodes 80 4017 0 0 82 0 82 82 0 8 0 dma4096 4096 3 0 3 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 1 1 0 1 0 8 0 dma64 64 7 0 7 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 91 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1327 0 1298 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1327 0 1298 1 0 1 1 0 8 0 vmmpekpl 168 12049 0 12010 3 0 3 3 0 8 0 vmmpepl 168 88129 0 86344 100 9 91 93 0 357 9 vmsppl 368 1327 0 1298 4 1 3 4 0 8 0 rwobjpl 40 28196 0 23248 52 1 51 51 0 8 0 pdppl 4096 2660 0 2596 106 40 66 82 0 8 2 pvpl 32 575091 0 566871 162 31 131 131 0 265 37 pmappl 216 1326 0 1298 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 460 0 126 12 0 12 12 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_semop(ffff80003c94b4e0,ffff800036d1f4c0,ffff800036d1f410) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff800036d1f4c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800036d1f4c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x46ff0f9640, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_semop(ffff80003c94b4e0,ffff800036d1f4c0,ffff800036d1f410) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff800036d1f4c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff800036d1f4c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x46ff0f9640, count: -3