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(ffff8000fffe9ca8,ffff80003c4e3b90,ffff80003c4e3ae0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c4e3b90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e3b90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x60439194b80, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c4e3ab0 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff8000fffe9ca8 rax 0xdeafbeaddeafbead r8 0x7f7fffffc000 r9 0 r10 0xddbe82c918141373 r11 0x404f4864ed35f679 r12 0 r13 0xfffffd80661d5a10 r14 0xffff80003c4e3b90 r15 0 rip 0xffffffff81c2a965 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c4e39c0 ss 0 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=139672 pid=53691 tcnt=5 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffe9778,0xffff8000fffe9258 process=0xffff8000ffff09b0 user=0xffff80003c4de000, vmspace=0xfffffd807c7f6b88 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7933 247032 54194 0 2 0 syz-executor 7933 56146 54194 0 3 0x4000080 fsleep syz-executor 53691 488330 66633 0 7 0 syz-executor 53691 216202 66633 0 2 0x4000000 syz-executor *53691 139672 66633 0 7 0x4000000 syz-executor 53691 516322 66633 0 3 0x4000080 fsleep syz-executor 53691 138881 66633 0 2 0x4000000 syz-executor 71972 134640 54591 0 2 0 syz-executor 71972 278020 54591 0 2 0x4000000 syz-executor 98787 233055 13192 0 2 0 syz-executor 98787 71914 13192 0 3 0x4000080 fsleep syz-executor 98787 136181 13192 0 3 0x4000080 fsleep syz-executor 98787 203432 13192 0 3 0x4000080 fsleep syz-executor 89835 265961 41951 0 2 0 syz-executor 89835 523776 41951 0 3 0x4000080 fsleep syz-executor 89835 349805 41951 0 2 0x4000000 syz-executor 68336 22592 0 0 3 0x14200 acct acct 60341 387797 20172 0 3 0x82 wait syz-executor 54591 428675 20172 0 3 0x82 nanoslp syz-executor 45816 505902 0 0 3 0x14280 nfsidl nfsio 45978 435642 0 0 3 0x14280 nfsidl nfsio 71384 226134 0 0 3 0x14280 nfsidl nfsio 60075 123556 0 0 3 0x14280 nfsidl nfsio 51154 469496 0 0 3 0x14280 nfsidl nfsio 8451 334755 0 0 3 0x14280 nfsidl nfsio 4415 487983 0 0 3 0x14280 nfsidl nfsio 68746 129514 0 0 3 0x14280 nfsidl nfsio 15555 214228 0 0 3 0x14280 nfsidl nfsio 87042 390378 0 0 3 0x14280 nfsidl nfsio 6893 120398 0 0 3 0x14280 nfsidl nfsio 64481 425416 0 0 3 0x14280 nfsidl nfsio 35004 31599 0 0 3 0x14280 nfsidl nfsio 25872 102805 0 0 3 0x14280 nfsidl nfsio 77303 334950 0 0 3 0x14280 nfsidl nfsio 16106 153101 0 0 3 0x14280 nfsidl nfsio 79487 11626 0 0 3 0x14280 nfsidl nfsio 35139 175981 0 0 3 0x14280 nfsidl nfsio 46813 462095 0 0 3 0x14280 nfsidl nfsio 89210 117508 0 0 3 0x14280 nfsidl nfsio 66633 512458 20172 0 3 0x82 nanoslp syz-executor 42799 135130 20172 0 2 0x3 syz-executor 13192 380412 20172 0 3 0x82 nanoslp syz-executor 54194 514135 20172 0 3 0x82 nanoslp syz-executor 92288 253595 20172 0 3 0x82 wait syz-executor 41951 170829 20172 0 3 0x82 nanoslp syz-executor 20172 320099 85255 0 3 0x82 kqread syz-executor 85255 447855 16932 0 3 0x10008a sigsusp ksh 16932 194358 24247 0 3 0x98 kqread sshd-session 24247 517724 62949 0 3 0x92 kqread sshd-session 89831 398073 1 0 3 0x100083 ttyopn getty 62949 416890 1 0 3 0x88 kqread sshd 75250 74920 68117 74 3 0x1100092 bpf pflogd 68117 275037 1 0 3 0x80 sbwait pflogd 24410 456331 27303 73 3 0x1100090 kqread syslogd 27303 519528 1 0 3 0x100082 sbwait syslogd 92411 155009 1 0 3 0x100080 kqread resolvd 36272 197557 78053 77 3 0x100092 kqread dhcpleased 9903 347118 78053 77 3 0x100092 kqread dhcpleased 78053 73613 1 0 3 0x80 kqread dhcpleased 3760 259315 0 0 3 0x14200 bored smr 81432 293710 0 0 2 0x14200 zerothread 70631 301572 0 0 3 0x14200 aiodoned aiodoned 49879 241928 0 0 3 0x14200 syncer update 23132 154082 0 0 3 0x14200 cleaner cleaner 47957 473066 0 0 3 0x14200 reaper reaper 224 128465 0 0 3 0x14200 pgdaemon pagedaemon 61250 497443 0 0 3 0x14200 bored viomb 65940 110308 0 0 3 0x40014200 acpi0 acpi0 75194 202327 0 0 3 0x40014200 idle1 24434 510903 0 0 3 0x14200 bored softnet1 82800 145782 0 0 3 0x14200 bored softnet0 13251 265784 0 0 3 0x14200 bored systqmp 28355 315791 0 0 3 0x14200 bored systq 79866 238831 0 0 3 0x14200 tmoslp softclockmp 4945 229594 0 0 3 0x40014200 tmoslp softclock 24460 80958 0 0 3 0x40014200 idle0 1 266004 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 53691 (syz-executor) thread 0xffff8000fffe9778 (216202) Process 53691 (syz-executor) thread 0xffff8000fffe9ca8 (139672) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11064 12096K 13023K 166960K 13584 0 pcb 17 17K 18K 166960K 303 0 rtable 175 9K 11K 166960K 645 0 pf 31 17K 81K 166960K 196 0 ifaddr 29 5K 8K 166960K 116 0 ifgroup 40 1K 3K 166960K 200 0 sysctl 4 1K 9K 166960K 19 0 counters 64 36K 39K 166960K 208 0 ioctlops 0 0K 4K 166960K 1810 0 iov 0 0K 16K 166960K 88 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1420 89K 90K 166960K 2535 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 15 0K 0K 166960K 192 0 dirhash 15 2K 2K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 232K 166960K 1414 0 sigio 0 0K 0K 166960K 23 0 proc 73 115K 179K 166960K 745 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 148 0 in_multi 55 4K 7K 166960K 178 0 ether_multi 1 0K 0K 166960K 13 0 mrt 0 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 689 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 254 152K 185K 166960K 15069 0 UVM aobj 19 6K 6K 166960K 19 0 pinsyscall 42 84K 102K 166960K 2621 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 108 0 NDP 9 0K 1K 166960K 83 0 temp 82 8688K 8793K 166960K 72957 0 kqueue 13 20K 30K 166960K 246 0 SYN cache 2 8K 16K 166960K 3 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 210 0 207 4 3 1 3 0 8 0 rtentry 176 180 0 116 6 0 6 6 0 8 2 unpcb 144 1256 0 1239 10 8 2 6 0 8 1 syncache 336 9 0 9 4 4 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 525 0 519 9 5 4 9 0 8 3 arp 136 29 0 18 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 328 1714 0 1705 10 4 6 10 0 8 4 ip6q 72 5 0 1 1 0 1 1 0 8 0 ip6af 40 6 0 2 1 0 1 1 0 8 0 nd6 152 37 0 24 1 0 1 1 0 8 0 pkpcb 40 9 0 9 3 2 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 51 0 51 2 1 1 1 0 8 1 pppxif 1504 7 0 7 3 2 1 1 0 8 1 pfstscr 40 2 0 2 2 1 1 1 0 8 1 pffrag 232 5 0 1 1 0 1 1 0 482 0 pffrnode 88 5 0 1 1 0 1 1 0 8 0 pffrent 40 11 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 pfrktable 1344 13 0 13 1 1 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pftag 88 2 0 1 1 0 1 1 0 8 0 pfstkey 128 8 0 8 3 2 1 1 0 8 1 pfstate 448 5 0 5 3 2 1 1 0 8 1 pfrule 1360 10 0 8 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 761 0 483 32 8 24 30 0 8 3 art_table 40 765 0 483 5 0 5 5 0 8 0 art_node 32 180 0 124 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 185 0 173 1 0 1 1 0 8 0 shmpl 112 15 0 0 1 0 1 1 0 8 0 dirhash 1024 35 0 16 3 0 3 3 0 8 0 dino2pl 256 4137 0 2629 96 0 96 96 0 8 0 ffsino 296 4137 0 2629 118 0 118 118 0 8 0 nchpl 144 6081 0 4369 64 0 64 64 0 8 0 rtmask 32 12 0 12 3 2 1 1 0 8 1 vnodes 216 4789 0 0 267 0 267 267 0 8 0 namei 1024 22387 0 22386 3 1 2 2 0 8 1 percpumem 16 119 0 72 1 0 1 1 0 8 0 vcpupl 3968 1 0 0 1 0 1 1 0 8 0 vmpool 848 1 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 4 0 4 1 1 0 1 0 8 0 kstatmem 264 122 0 100 5 2 3 3 0 8 1 scsiplug 72 9 0 9 2 2 0 1 0 8 0 scxspl 216 48912 0 48912 12 9 3 8 1 8 3 plimitpl 152 378 0 361 1 0 1 1 0 8 0 sigapl 424 1725 0 1657 9 1 8 8 0 8 0 knotepl 120 517 0 0 16 0 16 16 0 8 0 kqueuepl 224 683 0 674 10 5 5 5 0 8 4 pipepl 344 257 0 230 6 3 3 6 0 8 0 fdescpl 528 1685 0 1654 3 0 3 3 0 8 0 filepl 160 11829 0 11609 23 8 15 18 0 8 4 lockfpl 104 436 0 433 1 0 1 1 0 8 0 lockfspl 48 164 0 161 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 123 0 106 1 0 1 1 0 8 0 ucredpl 104 1715 0 1701 1 0 1 1 0 8 0 zombiepl 144 2296 0 2294 1 0 1 1 0 8 0 processpl 1232 1725 0 1657 7 1 6 6 0 8 0 procpl 664 4039 0 3960 8 0 8 8 0 8 0 sosppl 176 13 0 13 3 2 1 1 0 8 1 sockpl 752 3222 0 3193 44 34 10 23 0 8 6 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 107 0 0 14 1 13 14 0 8 0 mcl2k 2048 27 0 0 4 0 4 4 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1206 0 0 74 0 74 74 0 8 0 bufpl 280 20216 0 14080 439 0 439 439 0 8 0 anonpl 32 16786 0 0 136 0 136 136 0 246 0 amapchunkpl 152 56949 0 56304 57 14 43 43 0 158 13 amappl16 200 6348 0 6313 56 41 15 32 0 8 8 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 7 0 6 1 0 1 1 0 8 0 amappl13 176 470 0 469 1 0 1 1 0 8 0 amappl12 168 2072 0 2030 3 0 3 3 0 8 0 amappl11 160 6 0 5 1 0 1 1 0 8 0 amappl10 152 52 0 38 1 0 1 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 28 0 25 1 0 1 1 0 8 0 amappl7 128 88 0 87 1 0 1 1 0 8 0 amappl6 120 317 0 302 1 0 1 1 0 8 0 amappl5 112 91 0 80 1 0 1 1 0 8 0 amappl4 104 466 0 434 1 0 1 1 0 8 0 amappl3 96 8806 0 8707 4 1 3 3 0 8 0 amappl2 88 1828 0 1751 2 0 2 2 0 8 0 amappl1 80 15792 0 15201 14 0 14 14 0 8 0 amappl 88 14053 0 13877 5 0 5 5 0 92 0 uvmvnodes 80 148 0 0 4 0 4 4 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma256 256 10 0 10 4 4 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 8 0 8 2 1 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 18 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1685 0 1654 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1685 0 1654 1 0 1 1 0 8 0 vmmpekpl 168 15455 0 15402 3 0 3 3 0 8 0 vmmpepl 168 114708 0 112760 119 9 110 111 0 357 11 vmsppl 488 1684 0 1654 5 0 5 5 0 8 0 rwobjpl 80 33327 0 32211 36 2 34 35 0 8 1 pdppl 4096 3379 0 3309 108 36 72 83 0 8 2 pvpl 32 26499 0 0 214 1 213 213 0 265 0 pmappl 256 1685 0 1654 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 367 0 63 9 0 9 9 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff8000fffe9ca8,ffff80003c4e3b90,ffff80003c4e3ae0) at sys_semop+0x3d5 sys/kern/sysv_sem.c:619 syscall(ffff80003c4e3b90) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4e3b90) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x60439194b80, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299ddff0) 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(ffffffff83932bc0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83932bc0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff800037bec4c0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff800037bec4c0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7addae90ad00, count: -6