kernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: 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(ffff8000ffff82a8,ffff80003c4e4f20,ffff80003c4e4e70) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c4e4f20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e4f20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7b4aabaff0, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c4e4e40 rbx 0 rdx 0 rcx 0xffff8000ffff82a8 rax 0xdeafbeaddeafc0d5 r8 0x7f7fffffc000 r9 0 r10 0x175afcfa8af51ae1 r11 0x35df981e8b0e36b7 r12 0xffff8000014f4e04 r13 0 r14 0xffff80003c4e4f20 r15 0 rip 0xffffffff81052feb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c4e4d20 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=59749 pid=11143 tcnt=3 stat=onproc flags process=4000000 proc=4000000 runpri=83, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff9460,0xffff8000ffff8cd8 process=0xffff80002a479008 user=0xffff80003c4df000, vmspace=0xfffffd806bea8018 estcpu=33, cpticks=0, pctcpu=0.1, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 70838 192599 15623 0 2 0 syz-executor 70838 191063 15623 0 2 0x4000000 syz-executor 56749 322092 62730 0 2 0 syz-executor 56749 313231 62730 0 2 0x4000000 syz-executor 60442 60166 55965 0 2 0 syz-executor 60442 449455 55965 0 3 0x4000080 fsleep syz-executor 60442 209074 55965 0 3 0x4000080 fsleep syz-executor 11143 518281 19734 0 3 0x4000080 nanoslp syz-executor *11143 59749 19734 0 7 0x4000000 syz-executor 11143 336574 19734 0 2 0x4000000 syz-executor 60560 324222 93362 0 3 0x1 inode syz-executor 60560 148270 93362 0 3 0x4000080 pipewr syz-executor 60560 95456 93362 0 3 0x4000080 fsleep syz-executor 66795 267064 43922 0 3 0x3 inode syz-executor 58600 285563 0 0 3 0x14200 acct acct 27405 379846 43922 0 3 0x3 inode syz-executor 94554 63994 0 0 3 0x14200 bored sosplice 95144 34369 43922 0 3 0x3 inode syz-executor 15623 42023 43922 0 7 0x3 syz-executor 55965 256698 43922 0 2 0x3 syz-executor 93362 262456 43922 0 3 0x3 inode syz-executor 19734 151133 43922 0 3 0x82 nanoslp syz-executor 62730 17482 43922 0 2 0x3 syz-executor 43922 231756 40897 0 3 0x3 inode syz-executor 40897 98754 95733 0 3 0x10008a sigsusp ksh 95733 78050 17253 0 3 0x98 kqread sshd-session 17253 153221 73673 0 3 0x92 kqread sshd-session 73793 196606 1 0 3 0x100083 ttyopn getty 73673 72954 1 0 3 0x88 kqread sshd 45881 387122 19881 74 3 0x1100092 bpf pflogd 19881 49096 1 0 3 0x80 sbwait pflogd 40869 279213 12655 73 3 0x1100090 kqread syslogd 12655 371596 1 0 3 0x100082 sbwait syslogd 36990 514382 1 0 3 0x100080 kqread resolvd 44054 298635 2178 77 3 0x100092 kqread dhcpleased 6026 15483 2178 77 3 0x100092 kqread dhcpleased 2178 137310 1 0 3 0x80 kqread dhcpleased 22759 520461 0 0 3 0x14200 bored smr 41242 81126 0 0 2 0x14200 zerothread 10094 183300 0 0 3 0x14200 aiodoned aiodoned 82782 198550 0 0 3 0x14200 syncer update 20030 439844 0 0 3 0x14200 cleaner cleaner 35451 435794 0 0 3 0x14200 reaper reaper 85257 334373 0 0 3 0x14200 pgdaemon pagedaemon 56360 522003 0 0 3 0x14200 bored viomb 41532 420472 0 0 3 0x40014200 acpi0 acpi0 89252 196488 0 0 3 0x40014200 idle1 13129 283855 0 0 3 0x14200 bored softnet3 11654 194049 0 0 3 0x14200 bored softnet2 89516 324727 0 0 3 0x14200 bored softnet1 94707 467745 0 0 3 0x14200 bored softnet0 92485 38144 0 0 3 0x14200 bored systqmp 92927 350352 0 0 3 0x14200 bored systq 22517 343417 0 0 3 0x14200 tmoslp softclockmp 56924 426377 0 0 3 0x40014200 tmoslp softclock 3651 346341 0 0 3 0x40014200 idle0 1 444573 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 70838 (syz-executor) thread 0xffff8000ffff87b8 (191063) Process 56749 (syz-executor) thread 0xffff8000ffff9970 (313231) Process 11143 (syz-executor) thread 0xffff8000ffff82a8 (59749) Process 11143 (syz-executor) thread 0xffff80002a45c030 (336574) Process 62730 (syz-executor) thread 0xffff80002a39c528 (17482) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10201 11023K 11416K 166960K 12648 0 pcb 82 17K 17K 166960K 270 0 rtable 157 5K 7K 166960K 473 0 pf 32 17K 18K 166960K 96 0 ifaddr 34 5K 8K 166960K 84 0 ifgroup 51 2K 2K 166960K 115 0 sysctl 4 1K 1K 166960K 6 0 counters 62 36K 37K 166960K 114 0 ioctlops 0 0K 4K 166960K 1684 0 iov 0 0K 32K 166960K 48 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1430 90K 90K 166960K 2164 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 15 0 VM map 2 1K 1K 166960K 2 0 sem 15 17K 17K 166960K 120 0 dirhash 12 2K 2K 166960K 33 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 89K 166960K 944 0 sigio 0 0K 0K 166960K 17 0 proc 72 91K 128K 166960K 681 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 221 0 in_multi 71 5K 7K 166960K 151 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 523 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 218 72K 77K 166960K 10535 0 UVM aobj 25 6K 6K 166960K 27 0 pinsyscall 41 82K 104K 166960K 2089 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 51 0 NDP 11 0K 2K 166960K 55 0 temp 72 8642K 8769K 166960K 44323 0 kqueue 13 20K 30K 166960K 169 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 90 0 87 1 0 1 1 0 8 0 rtentry 112 150 0 81 4 0 4 4 0 8 0 unpcb 144 836 0 817 10 9 1 8 0 8 0 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpcb 808 247 0 243 6 2 4 4 0 8 3 arp 120 24 0 10 1 0 1 1 0 8 0 inpcb 376 1332 0 1257 17 9 8 8 0 8 0 nd6 136 35 0 18 1 0 1 1 0 8 0 pkpcb 40 5 0 5 3 2 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1168 18 0 18 2 1 1 1 0 8 1 pppxif 1472 4 0 4 3 2 1 1 0 8 1 pffrag 232 7 0 1 1 0 1 1 0 482 0 pffrnode 88 7 0 1 1 0 1 1 0 8 0 pffrent 40 13 0 7 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 62 0 22 1 0 1 1 0 8 0 pfstkey 128 62 0 22 2 0 2 2 0 8 0 pfstate 376 62 0 22 5 0 5 5 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 674 0 340 30 4 26 30 0 8 2 art_table 32 675 0 340 4 0 4 4 0 8 0 art_node 16 148 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 9 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 115 0 103 1 0 1 1 0 8 0 shmpl 112 24 0 2 1 0 1 1 0 8 0 dirhash 1024 31 0 14 3 0 3 3 0 8 0 dino2pl 256 3028 0 1518 96 0 96 96 0 8 0 ffsino 280 3028 0 1518 109 0 109 109 0 8 0 nchpl 144 4298 0 2610 64 0 64 64 0 8 0 uvmvnodes 80 3673 0 0 75 0 75 75 0 8 0 vnodes 216 3674 0 0 205 0 205 205 0 8 0 namei 1024 14870 0 14869 2 1 1 1 0 8 0 percpumem 16 71 0 26 1 0 1 1 0 8 0 kstatmem 264 66 0 44 3 1 2 3 0 8 0 scsiplug 72 5 0 5 2 1 1 1 0 8 1 scxspl 216 13800 0 13800 11 9 2 8 1 8 2 plimitpl 152 251 0 234 1 0 1 1 0 8 0 sigapl 424 1264 0 1214 10 3 7 9 0 8 0 futexpl 64 11873 0 11869 1 0 1 1 0 8 0 knotepl 120 328 0 0 10 0 10 10 0 8 0 kqueuepl 216 282 0 273 3 0 3 3 0 8 2 pipepl 328 256 0 227 6 2 4 6 0 8 1 fdescpl 504 1223 0 1193 5 0 5 5 0 8 0 filepl 152 7746 0 7396 23 9 14 18 0 8 0 lockfpl 104 320 0 318 1 0 1 1 0 8 0 lockfspl 48 107 0 105 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 884 0 870 1 0 1 1 0 8 0 zombiepl 144 1595 0 1594 1 0 1 1 0 8 0 processpl 1168 1264 0 1214 7 2 5 6 0 8 0 procpl 648 2664 0 2606 8 1 7 8 0 8 0 srpgc 96 8 0 8 2 1 1 1 0 8 1 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 688 2272 0 2177 34 24 10 25 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 30 0 0 4 0 4 4 0 8 0 mtagpl 96 100 0 0 3 0 3 3 0 8 0 mbufpl 256 337 0 0 22 0 22 22 0 8 0 bufpl 280 4037 0 134 279 0 279 279 0 8 0 anonpl 24 179897 0 176463 55 9 46 47 0 184 12 amapchunkpl 152 33305 0 32837 28 5 23 25 0 158 1 amappl16 200 3521 0 3479 20 9 11 15 0 8 7 amappl15 192 19 0 19 1 1 0 1 0 8 0 amappl14 184 119 0 107 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 1900 0 1870 4 1 3 3 0 8 0 amappl11 160 52 0 37 1 0 1 1 0 8 0 amappl10 152 3 0 3 1 1 0 1 0 8 0 amappl9 144 247 0 247 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 119 0 106 1 0 1 1 0 8 0 amappl6 120 202 0 198 1 0 1 1 0 8 0 amappl5 112 129 0 120 1 0 1 1 0 8 0 amappl4 104 326 0 308 1 0 1 1 0 8 0 amappl3 96 6736 0 6628 4 0 4 4 0 8 0 amappl2 88 698 0 635 2 0 2 2 0 8 0 amappl1 80 10905 0 10341 14 0 14 14 0 8 0 amappl 88 10070 0 9909 5 0 5 5 0 92 0 dma8192 8192 1 0 1 1 1 0 1 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 254 0 254 2 2 0 1 0 8 0 dma64 64 8 0 8 2 2 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 26 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1223 0 1193 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1223 0 1193 1 0 1 1 0 8 0 vmmpekpl 168 11577 0 11522 3 0 3 3 0 8 0 vmmpepl 168 80503 0 78671 98 2 96 96 0 357 8 vmsppl 456 1222 0 1193 5 0 5 5 0 8 0 rwobjpl 64 27088 0 22460 77 1 76 76 0 8 0 pdppl 4096 2454 0 2386 108 36 72 84 0 8 4 pvpl 32 15346 0 0 124 0 124 124 0 265 0 pmappl 248 1222 0 1193 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 310 0 51 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff8000ffff82a8,ffff80003c4e4f20,ffff80003c4e4e70) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c4e4f20) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e4f20) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd7b4aabaff0, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800029aabff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 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(ffffffff839ad010) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff839ad010) at __mp_lock+0x199 sys/kern/kern_lock.c:144 ktrsyscall(ffff8000ffffd958,b,20,ffff80002a482340) at ktrsyscall+0x2b3 sys/kern/kern_ktrace.c:183 syscall(ffff80002a482340) at syscall+0x2e6 mi_syscall sys/sys/syscall_mi.h:154 [inline] syscall(ffff80002a482340) at syscall+0x2e6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75bfbd9384b0, count: -7