kernel: protection fault trap, code=0 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%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(ffff80003c4d0800,ffff80002a30a510,ffff80002a30a460) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80002a30a510) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a30a510) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e9bf4def30, count: -3 ddb{0}> show registers rdi 0 rsi 0xb rbp 0xffff80002a30a430 rbx 0xdeafbeaddeafbead rdx 0 rcx 0xffff80003c4d0800 rax 0xffffffff837adff0 cpu_info_full_primary+0x1ff0 r8 0x7f7fffffc000 r9 0 r10 0x9b409e005da15c58 r11 0x7d375396e569c6b4 r12 0xb r13 0xfffffd8061f8d700 r14 0xffff80002a30a510 r15 0xb rip 0xffffffff8146c712 sys_semop+0x352 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a30a340 ss 0x10 sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{0}> show proc PROC (syz-executor) tid=272200 pid=35320 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=0xffff80003c4d1cc0,0xffff8000fffeed20 process=0xffff80003c014020 user=0xffff80002a305000, vmspace=0xfffffd806b80e7c0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27670 399116 81416 0 2 0 syz-executor 27670 316231 81416 0 3 0x4000080 fsleep syz-executor 35320 212863 39553 0 2 0 syz-executor *35320 272200 39553 0 7 0x4000000 syz-executor 35320 452502 39553 0 2 0x4000000 syz-executor 35320 97234 39553 0 3 0x4000080 fsleep syz-executor 4588 222742 63388 0 2 0 syz-executor 4588 290709 63388 0 3 0x4000080 fsleep syz-executor 66608 349801 30763 0 2 0 syz-executor 66608 375924 30763 0 3 0x4000080 fsleep syz-executor 66608 57128 30763 0 3 0x4000080 fsleep syz-executor 20218 216471 97990 0 2 0x10 syz-executor 20218 230563 97990 0 3 0x4000090 kqread syz-executor 20218 303452 97990 0 3 0x4000090 fsleep syz-executor 20218 375055 97990 0 3 0x4000090 fsleep syz-executor 63388 318772 7615 0 3 0x82 nanoslp syz-executor 97990 468707 7615 0 3 0x82 nanoslp syz-executor 8675 51341 7615 0 3 0x82 wait syz-executor 77128 498481 7615 0 3 0x82 wait syz-executor 30763 272029 7615 0 7 0x2 syz-executor 70185 286385 1 0 3 0x100083 ttyopn getty 13748 461575 0 0 3 0x14200 bored sosplice 19911 364746 0 0 3 0x14280 nfsidl nfsio 26176 488915 0 0 3 0x14280 nfsidl nfsio 8897 138417 0 0 3 0x14280 nfsidl nfsio 49486 278367 0 0 3 0x14280 nfsidl nfsio 93210 132398 0 0 3 0x14280 nfsidl nfsio 87272 251809 0 0 3 0x14280 nfsidl nfsio 64886 15644 0 0 3 0x14280 nfsidl nfsio 19934 373862 0 0 3 0x14280 nfsidl nfsio 95290 354440 0 0 3 0x14280 nfsidl nfsio 9946 177096 0 0 3 0x14280 nfsidl nfsio 46063 94214 0 0 3 0x14280 nfsidl nfsio 99808 448547 0 0 3 0x14280 nfsidl nfsio 44290 426883 0 0 3 0x14280 nfsidl nfsio 88839 19203 0 0 3 0x14280 nfsidl nfsio 853 67267 0 0 3 0x14280 nfsidl nfsio 48915 96697 0 0 3 0x14280 nfsidl nfsio 70577 316804 0 0 3 0x14280 nfsidl nfsio 87996 486741 0 0 3 0x14280 nfsidl nfsio 55910 192637 0 0 3 0x14280 nfsidl nfsio 4448 301978 0 0 3 0x14280 nfsidl nfsio 81416 284704 7615 0 3 0x82 nanoslp syz-executor 39553 315558 7615 0 2 0x3 syz-executor 91492 281296 7615 0 3 0x82 wait syz-executor 7615 413329 75175 0 3 0x82 kqread syz-executor 75175 217765 27844 0 3 0x10008a sigsusp ksh 27844 77556 824 0 3 0x98 kqread sshd-session 824 176232 91431 0 3 0x92 kqread sshd-session 91431 186396 1 0 3 0x88 kqread sshd 10683 161417 37684 74 3 0x1100092 bpf pflogd 37684 23123 1 0 3 0x80 sbwait pflogd 27207 189018 75904 73 3 0x1100090 kqread syslogd 75904 198005 1 0 3 0x100082 sbwait syslogd 78762 166580 1 0 3 0x100080 kqread resolvd 8240 284221 68797 77 3 0x100092 kqread dhcpleased 12926 71680 68797 77 3 0x100092 kqread dhcpleased 68797 249716 1 0 3 0x80 kqread dhcpleased 13513 2996 0 0 3 0x14200 bored smr 75442 80485 0 0 2 0x14200 zerothread 40787 284532 0 0 3 0x14200 aiodoned aiodoned 74154 214154 0 0 3 0x14200 syncer update 11050 321825 0 0 3 0x14200 cleaner cleaner 26079 394063 0 0 3 0x14200 reaper reaper 26617 348127 0 0 3 0x14200 pgdaemon pagedaemon 58871 496167 0 0 3 0x14200 bored viomb 71744 426650 0 0 3 0x40014200 acpi0 acpi0 38917 412757 0 0 3 0x40014200 idle1 89763 138843 0 0 3 0x14200 bored softnet1 87295 472804 0 0 3 0x14200 bored softnet0 8099 374216 0 0 3 0x14200 bored systqmp 91165 386352 0 0 3 0x14200 bored systq 52330 487547 0 0 3 0x14200 tmoslp softclockmp 6775 447001 0 0 3 0x40014200 tmoslp softclock 82794 210886 0 0 3 0x40014200 idle0 1 416588 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 35320 (syz-executor) thread 0xffff80003c4d0800 (272200) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10206 11043K 11702K 166960K 12801 0 pcb 18 14K 16K 166960K 274 0 rtable 238 10K 10K 166960K 484 0 pf 39 18K 67486K 166960K 166 0 ifaddr 42 7K 8K 166960K 111 0 ifgroup 55 2K 2K 166960K 172 0 sysctl 4 1K 9K 166960K 17 0 counters 68 36K 37K 166960K 178 0 ioctlops 0 0K 4K 166960K 1742 0 iov 0 0K 28K 166960K 85 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1487 93K 94K 166960K 2764 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 18 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 59 0 dirhash 12 2K 2K 166960K 45 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 240K 166960K 1179 0 sigio 0 0K 0K 166960K 23 0 proc 72 115K 148K 166960K 806 0 subproc 72 4K 4K 166960K 126 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 116 0 in_multi 95 7K 7K 166960K 212 0 ether_multi 1 0K 0K 166960K 11 0 mrt 0 0K 0K 166960K 7 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 729 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 254 160K 177K 166960K 12088 0 UVM aobj 86 5K 5K 166960K 89 0 pinsyscall 43 86K 104K 166960K 2444 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 148 0 NDP 12 0K 1K 166960K 82 0 temp 69 8649K 8724K 166960K 27865 0 kqueue 13 20K 30K 166960K 214 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 285 0 281 3 2 1 3 0 8 0 rtentry 176 178 0 78 5 0 5 5 0 8 0 unpcb 144 895 0 875 6 5 1 6 0 8 0 syncache 336 11 0 11 1 1 0 1 0 8 0 tcpcb 736 413 0 409 7 6 1 7 0 8 0 arp 136 20 0 10 1 0 1 1 0 8 0 inpcb 328 1127 0 1118 12 10 2 7 0 8 1 nd6 144 37 0 18 1 0 1 1 0 8 0 pkpcb 40 69 0 69 1 1 0 1 0 8 0 kcovpl 48 14 0 6 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 1 0 1 0 8 0 ppxss 1192 43 0 43 1 1 0 1 0 8 0 pppxif 1504 2 0 2 2 2 0 1 0 8 0 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 9 0 3 1 0 1 1 0 482 0 pffrnode 88 9 0 3 1 0 1 1 0 8 0 pffrent 40 21 0 15 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 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 2 0 1 1 0 1 1 0 8 0 pfstitem 24 80 0 13 1 0 1 1 0 8 0 pfstkey 128 91 0 25 3 0 3 3 0 8 0 pfstate 384 87 0 23 7 0 7 7 0 8 0 pfrule 1344 30 0 25 2 1 1 2 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 779 0 305 31 1 30 31 0 8 0 art_table 40 783 0 305 5 0 5 5 0 8 0 art_node 32 177 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 51 0 42 1 0 1 1 0 8 0 shmpl 112 86 0 3 3 0 3 3 0 8 0 dirhash 1024 40 0 23 3 0 3 3 0 8 0 dino2pl 256 3652 0 2139 96 0 96 96 0 8 0 ffsino 296 3652 0 2139 118 0 118 118 0 8 0 nchpl 144 5166 0 3457 64 0 64 64 0 8 0 rtmask 32 4 0 4 2 2 0 1 0 8 0 uvmvnodes 80 4520 0 0 93 0 93 93 0 8 0 vnodes 216 4520 0 0 252 0 252 252 0 8 0 namei 1024 18784 0 18784 2 1 1 2 0 8 1 percpumem 16 104 0 55 1 0 1 1 0 8 0 kstatmem 264 110 0 84 3 1 2 3 0 8 0 scsiplug 72 6 0 6 2 2 0 1 0 8 0 scxspl 216 29784 0 29784 11 10 1 8 1 8 1 plimitpl 152 312 0 292 1 0 1 1 0 8 0 sigapl 424 1481 0 1412 8 0 8 8 0 8 0 knotepl 120 587 0 0 18 0 18 18 0 8 0 kqueuepl 224 416 0 405 2 1 1 2 0 8 0 pipepl 344 302 0 275 9 6 3 9 0 8 0 fdescpl 528 1443 0 1411 3 0 3 3 0 8 0 filepl 160 9666 0 9436 19 8 11 18 0 8 0 lockfpl 104 686 0 684 2 1 1 2 0 8 0 lockfspl 48 291 0 289 1 0 1 1 0 8 0 sessionpl 144 37 0 28 1 0 1 1 0 8 0 pgrppl 48 145 0 128 1 0 1 1 0 8 0 ucredpl 104 1766 0 1752 1 0 1 1 0 8 0 zombiepl 144 1419 0 1416 1 0 1 1 0 8 0 processpl 1232 1481 0 1412 6 0 6 6 0 8 0 procpl 664 3130 0 3051 8 0 8 8 0 8 0 sosppl 168 4 0 4 1 1 0 1 0 8 0 sockpl 752 2419 0 2386 31 27 4 24 0 8 0 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 111 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 37 0 0 5 0 5 5 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 224 0 0 14 0 14 14 0 8 0 bufpl 280 11864 0 5720 440 0 440 440 0 8 0 anonpl 32 11731 0 0 95 0 95 95 0 246 0 amapchunkpl 152 41455 0 40906 38 12 26 32 0 158 0 amappl16 200 5300 0 5269 29 21 8 22 0 8 0 amappl15 192 6 0 6 2 2 0 1 0 8 0 amappl14 184 159 0 147 1 0 1 1 0 8 0 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 2187 0 2155 4 2 2 3 0 8 0 amappl11 160 52 0 38 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 258 0 257 1 0 1 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 127 0 114 1 0 1 1 0 8 0 amappl6 120 245 0 241 1 0 1 1 0 8 0 amappl5 112 148 0 138 1 0 1 1 0 8 0 amappl4 104 335 0 315 1 0 1 1 0 8 0 amappl3 96 7027 0 6916 3 0 3 3 0 8 0 amappl2 88 1741 0 1661 2 0 2 2 0 8 0 amappl1 80 14767 0 14162 15 0 15 15 0 8 0 amappl 88 11109 0 10927 5 0 5 5 0 92 0 dma4096 4096 3 0 3 2 2 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 8 0 8 3 3 0 1 0 8 0 dma128 128 254 0 254 2 2 0 1 0 8 0 dma64 64 7 0 7 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 88 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1443 0 1411 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1443 0 1411 1 0 1 1 0 8 0 vmmpekpl 168 13324 0 13277 3 0 3 3 0 8 0 vmmpepl 168 98185 0 96122 111 11 100 107 0 357 1 vmsppl 488 1442 0 1411 5 0 5 5 0 8 0 rwobjpl 80 33317 0 27747 117 2 115 117 0 8 0 pdppl 4096 2894 0 2822 112 40 72 86 0 8 0 pvpl 32 22356 0 0 181 0 181 181 0 265 0 pmappl 256 1442 0 1411 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 302 0 55 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_semop(ffff80003c4d0800,ffff80002a30a510,ffff80002a30a460) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80002a30a510) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a30a510) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e9bf4def30, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff8000299fdff0) 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(ffffffff838a6868) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838a6868) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80003c0115a0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c0115a0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c9d20114d10, count: -6