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(ffff80003c5422c0,ffff80003c52eac0,ffff80003c52ea10) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c52eac0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c52eac0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d2d47c4fc0, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c52e9e0 rbx 0 rdx 0 rcx 0xffff80003c5422c0 rax 0xdeadbeefdeadbf1f r8 0x7f7fffffc000 r9 0 r10 0xfd8fc13fbe9eff2e r11 0x82beafd97865a686 r12 0xffff800001474d04 r13 0 r14 0xffff80003c52eac0 r15 0 rip 0xffffffff81fc55bb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c52e8c0 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{0}> show proc PROC (syz-executor) tid=241732 pid=96211 tcnt=3 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=0xffff80003c542f68,0xffff80003c542558 process=0xffff80003c519490 user=0xffff80003c529000, vmspace=0xfffffd805f88e748 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 96211 473616 88138 0 7 0 syz-executor *96211 241732 88138 0 7 0x4000000 syz-executor 96211 220501 88138 0 2 0x4000000 syz-executor 80535 50402 24756 0 2 0 syz-executor 80535 356363 24756 0 3 0x4000080 ttyout syz-executor 80535 277998 24756 0 2 0x4000000 syz-executor 11058 99796 35086 0 3 0x80 nanoslp syz-executor 11058 232083 35086 0 3 0x4000080 netcon syz-executor 11058 163629 35086 0 3 0x4000080 fsleep syz-executor 59317 241170 38021 0 3 0x80 nanoslp syz-executor 59317 94060 38021 0 3 0x4000080 sbwait syz-executor 59317 387078 38021 0 3 0x4000080 fsleep syz-executor 83399 216126 39407 0 3 0x80 nanoslp syz-executor 83399 309205 39407 0 3 0x4000080 pipewr syz-executor 83399 286186 39407 0 3 0x4000080 fsleep syz-executor 83399 371793 39407 0 3 0x4000080 fsleep syz-executor 56216 469698 0 0 3 0x14200 acct acct 47789 495932 1 0 3 0x100083 ttyin getty 35086 217034 71693 0 3 0x82 nanoslp syz-executor 37794 463046 71693 0 3 0x82 wait syz-executor 24756 353997 71693 0 3 0x82 nanoslp syz-executor 69625 377615 71693 0 2 0x2 syz-executor 62387 379563 0 0 3 0x14280 nfsidl nfsio 99171 153057 0 0 3 0x14280 nfsidl nfsio 9320 191188 0 0 3 0x14280 nfsidl nfsio 27804 149797 0 0 3 0x14280 nfsidl nfsio 49079 94719 0 0 3 0x14280 nfsidl nfsio 30736 469438 0 0 3 0x14280 nfsidl nfsio 84213 29532 0 0 3 0x14280 nfsidl nfsio 57459 365647 0 0 3 0x14280 nfsidl nfsio 92484 325719 0 0 3 0x14280 nfsidl nfsio 39855 213488 0 0 3 0x14280 nfsidl nfsio 398 278986 0 0 3 0x14280 nfsidl nfsio 36374 138112 0 0 3 0x14280 nfsidl nfsio 95528 40112 0 0 3 0x14280 nfsidl nfsio 75930 464542 0 0 3 0x14280 nfsidl nfsio 61366 390872 0 0 3 0x14280 nfsidl nfsio 3728 308485 0 0 3 0x14280 nfsidl nfsio 73615 409100 0 0 3 0x14280 nfsidl nfsio 87670 257829 0 0 3 0x14280 nfsidl nfsio 60030 162547 0 0 3 0x14280 nfsidl nfsio 80565 216848 0 0 3 0x14280 nfsidl nfsio 7332 497793 0 0 3 0x14200 bored sosplice 79431 258197 71693 0 2 0x2 syz-executor 39407 190677 71693 0 3 0x82 nanoslp syz-executor 38021 59238 71693 0 3 0x82 nanoslp syz-executor 88138 318158 71693 0 3 0x82 nanoslp syz-executor 71693 499887 20630 0 2 0x2 syz-executor 20630 19497 35453 0 3 0x10008a sigsusp ksh 35453 379854 48587 0 3 0x98 kqread sshd-session 48587 395542 27886 0 3 0x92 kqread sshd-session 27886 193806 1 0 3 0x88 kqread sshd 62823 513380 62404 74 3 0x1100092 bpf pflogd 62404 120893 1 0 3 0x80 sbwait pflogd 98823 295535 35339 73 3 0x1100090 kqread syslogd 35339 64180 1 0 3 0x100082 sbwait syslogd 34856 237353 1 0 3 0x100080 kqread resolvd 2100 264684 6653 77 3 0x100092 kqread dhcpleased 26988 277921 6653 77 3 0x100092 kqread dhcpleased 6653 227015 1 0 3 0x80 kqread dhcpleased 65832 423915 0 0 3 0x14200 bored smr 29350 324268 0 0 2 0x14200 zerothread 44304 209849 0 0 3 0x14200 aiodoned aiodoned 31756 368749 0 0 3 0x14200 syncer update 5588 311580 0 0 3 0x14200 cleaner cleaner 21850 106245 0 0 3 0x14200 reaper reaper 40422 404401 0 0 3 0x14200 pgdaemon pagedaemon 54801 520557 0 0 3 0x14200 bored viomb 41367 329641 0 0 3 0x40014200 acpi0 acpi0 51008 116892 0 0 3 0x40014200 idle1 44996 324482 0 0 3 0x14200 bored softnet3 19170 462029 0 0 3 0x14200 bored softnet2 13038 309937 0 0 3 0x14200 bored softnet1 79509 266865 0 0 2 0x14200 softnet0 5822 92094 0 0 3 0x14200 bored systqmp 45581 277546 0 0 3 0x14200 bored systq 21707 404289 0 0 3 0x14200 tmoslp softclockmp 89825 135207 0 0 3 0x40014200 tmoslp softclock 73125 78386 0 0 3 0x40014200 idle0 1 278803 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 96211 (syz-executor) thread 0xffff80003c5422c0 (241732) Process 96211 (syz-executor) thread 0xffff80003c542548 (220501) Process 69625 (syz-executor) thread 0xffff80003c542038 (377615) Process 79431 (syz-executor) thread 0xffff8000ffffc518 (258197) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10205 11044K 12433K 166960K 14191 0 pcb 18 16K 18K 166960K 335 0 rtable 180 7K 8K 166960K 762 0 pf 34 17K 21K 166960K 166 0 ifaddr 35 6K 7K 166960K 125 0 ifgroup 51 2K 2K 166960K 192 0 sysctl 3 1K 1K 166960K 7 0 counters 62 36K 37K 166960K 166 0 ioctlops 0 0K 4K 166960K 1649 0 iov 0 0K 16K 166960K 94 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1448 91K 92K 166960K 2868 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 10K 14K 166960K 33 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 108 0 dirhash 12 2K 2K 166960K 54 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 16 57K 93K 166960K 1710 0 sigio 1 0K 0K 166960K 36 0 proc 72 91K 140K 166960K 820 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 271 0 in_multi 76 5K 7K 166960K 276 0 ether_multi 1 0K 0K 166960K 25 0 mrt 2 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 754 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 229 77K 87K 166960K 17508 0 UVM aobj 47 6K 6K 166960K 53 0 pinsyscall 41 82K 105K 166960K 2899 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 66 0 NDP 11 0K 2K 166960K 89 0 temp 78 8644K 8772K 166960K 91201 0 kqueue 13 20K 30K 166960K 331 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 167 0 164 2 0 2 2 0 8 1 rtentry 112 209 0 131 4 0 4 4 0 8 0 unpcb 144 872 0 853 6 4 2 3 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 588 0 583 10 3 7 8 0 8 6 arp 120 40 0 26 1 0 1 1 0 8 0 inpcb 376 2064 0 2048 23 14 9 12 0 8 5 nd6 136 41 0 20 1 0 1 1 0 8 0 pkpcb 40 7 0 7 4 3 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1168 29 0 29 3 2 1 1 0 8 1 pppxif 1472 7 0 7 4 4 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 8 0 3 1 0 1 1 0 482 0 pffrnode 88 8 0 3 1 0 1 1 0 8 0 pffrent 40 17 0 12 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 153 0 39 1 0 1 1 0 8 0 pfstkey 128 155 0 41 4 0 4 4 0 8 0 pfstate 376 155 0 41 12 0 12 12 0 8 0 pfrule 1344 26 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 980 0 619 33 5 28 29 0 8 1 art_table 32 982 0 619 4 0 4 4 0 8 0 art_node 16 205 0 137 1 0 1 1 0 8 0 sysvmsgpl 40 24 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 104 0 95 1 0 1 1 0 8 0 shmpl 112 50 0 6 2 0 2 2 0 8 0 dirhash 1024 46 0 29 3 0 3 3 0 8 0 dino2pl 256 4478 0 2975 95 0 95 95 0 8 0 ffsino 280 4478 0 2975 109 0 109 109 0 8 0 nchpl 144 6848 0 5154 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 1 0 1 0 8 0 uvmvnodes 80 5510 0 0 113 0 113 113 0 8 0 vnodes 216 5510 0 0 307 0 307 307 0 8 0 namei 1024 23590 0 23589 2 1 1 2 0 8 0 percpumem 16 97 0 52 1 0 1 1 0 8 0 kstatmem 264 106 0 84 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scsiplug 72 4 0 4 3 2 1 1 0 8 1 scxspl 216 20759 0 20759 12 9 3 8 1 8 3 plimitpl 152 393 0 373 1 0 1 1 0 8 0 sigapl 424 2028 0 1958 9 0 9 9 0 8 0 futexpl 64 23398 0 23393 1 0 1 1 0 8 0 knotepl 120 587 0 0 18 0 18 18 0 8 0 kqueuepl 216 766 0 756 11 10 1 5 0 8 0 pipepl 328 249 0 221 3 0 3 3 0 8 0 fdescpl 504 1984 0 1954 5 0 5 5 0 8 0 filepl 152 12420 0 12189 20 4 16 16 0 8 4 lockfpl 104 602 0 600 2 1 1 2 0 8 0 lockfspl 48 207 0 205 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 119 0 102 1 0 1 1 0 8 0 ucredpl 104 2119 0 2105 1 0 1 1 0 8 0 zombiepl 144 2304 0 2303 1 0 1 1 0 8 0 processpl 1168 2028 0 1958 6 0 6 6 0 8 0 procpl 648 4598 0 4517 8 0 8 8 0 8 0 srpgc 96 12 0 12 4 3 1 1 0 8 1 sosppl 168 11 0 11 4 3 1 1 0 8 1 sockpl 688 3138 0 3102 26 15 11 16 0 8 7 mcl64k 65536 9 0 0 2 0 2 2 0 8 0 mcl16k 16384 5 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 126 0 0 16 0 16 16 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 38 0 0 4 0 4 4 0 8 0 mtagpl 96 86 0 0 3 0 3 3 0 8 0 mbufpl 256 4779 0 0 298 0 298 298 0 8 0 bufpl 280 5744 0 139 401 0 401 401 0 8 0 anonpl 24 210481 0 205511 97 47 50 58 0 184 11 amapchunkpl 152 56424 0 55878 44 8 36 36 0 158 9 amappl16 200 3078 0 3023 41 35 6 16 0 8 2 amappl15 192 24 0 23 1 0 1 1 0 8 0 amappl14 184 115 0 103 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 2685 0 2655 3 1 2 2 0 8 0 amappl11 160 48 0 33 1 0 1 1 0 8 0 amappl10 152 2 0 2 1 1 0 1 0 8 0 amappl9 144 268 0 268 1 1 0 1 0 8 0 amappl8 136 22 0 19 1 0 1 1 0 8 0 amappl7 128 112 0 99 1 0 1 1 0 8 0 amappl6 120 207 0 203 1 0 1 1 0 8 0 amappl5 112 132 0 123 1 0 1 1 0 8 0 amappl4 104 323 0 303 1 0 1 1 0 8 0 amappl3 96 11755 0 11646 5 1 4 4 0 8 0 amappl2 88 696 0 633 2 0 2 2 0 8 0 amappl1 80 12714 0 12139 14 1 13 14 0 8 0 amappl 88 17010 0 16838 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 254 0 254 2 1 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 21 0 20 1 0 1 1 0 8 0 aobjpl 72 52 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1984 0 1954 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1984 0 1954 1 0 1 1 0 8 0 vmmpekpl 168 14963 0 14899 4 0 4 4 0 8 0 vmmpepl 168 120282 0 118417 116 25 91 97 0 357 4 vmsppl 456 1983 0 1954 6 1 5 5 0 8 0 rwobjpl 64 35635 0 29112 106 0 106 106 0 8 0 pdppl 4096 3976 0 3908 120 48 72 86 0 8 4 pvpl 32 16964 0 0 137 0 137 137 0 265 0 pmappl 248 1983 0 1954 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 608 0 65 16 0 16 16 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80003c5422c0,ffff80003c52eac0,ffff80003c52ea10) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c52eac0) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c52eac0) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d2d47c4fc0, 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(ffffffff838a65b0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff838a65b0) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80002a3d69b0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a3d69b0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70a07801a370, count: -6