kernel: protection fault trap, code=0 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic the kernel did not panic ddb{1}> trace sys_semop(ffff8000fffefca0,ffff80003c433940,ffff80003c433890) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c433940) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c433940) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc9f0823030, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c433860 rbx 0xdead4110dead4110 rdx 0 rcx 0xffff8000fffefca0 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0x1 r10 0xf110a85ae3fc5344 r11 0xfa3fe11b300e6ef4 r12 0 r13 0xfffffd8068c32e70 r14 0xffff80003c433940 r15 0 rip 0xffffffff82c7d575 sys_semop+0x3d5 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c433770 ss 0x10 sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=416780 pid=21225 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=0xffff8000fffef770,0xffff8000fffef250 process=0xffff80002a3ce1c8 user=0xffff80003c42e000, vmspace=0xfffffd806d13ab98 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21225 457834 9722 0 7 0 syz-executor *21225 416780 9722 0 7 0x4000000 syz-executor 21225 259357 9722 0 3 0x4000080 fsleep syz-executor 21225 30126 9722 0 3 0x4000080 fsleep syz-executor 24431 22888 41729 0 3 0x80 fsleep syz-executor 24431 468442 41729 0 3 0x4000080 fsleep syz-executor 24431 357033 41729 0 3 0x4000080 kqsel syz-executor 47776 519566 62496 0 3 0x80 fsleep syz-executor 47776 77101 62496 0 3 0x4000080 fsleep syz-executor 47776 347842 62496 0 3 0x4000080 ttyout syz-executor 47776 22405 62496 0 3 0x4000080 fsleep syz-executor 56901 342198 19789 0 3 0x80 fsleep syz-executor 56901 147185 19789 0 3 0x4000080 fsleep syz-executor 56901 284005 19789 0 3 0x4000080 kqsel syz-executor 43629 223230 40601 0 3 0x80 fsleep syz-executor 43629 281371 40601 0 3 0x4000080 kqread syz-executor 12338 120036 66024 0 3 0x80 fsleep syz-executor 12338 255057 66024 0 3 0x4000080 pipewr syz-executor 9722 77473 19608 0 3 0x82 nanoslp syz-executor 42090 51309 19608 0 3 0x82 nanoslp syz-executor 46057 82174 19608 0 3 0x82 wait syz-executor 19789 410113 19608 0 3 0x82 nanoslp syz-executor 40601 354782 19608 0 3 0x82 nanoslp syz-executor 66024 355082 19608 0 3 0x82 nanoslp syz-executor 62496 410331 19608 0 3 0x82 nanoslp syz-executor 41729 437587 19608 0 3 0x82 nanoslp syz-executor 19608 519099 37500 0 3 0x82 kqread syz-executor 37500 427285 6218 0 3 0x10008a sigsusp ksh 6218 401055 8532 0 3 0x98 kqread sshd-session 8532 174324 58201 0 3 0x92 kqread sshd-session 93889 423908 1 0 3 0x100083 ttyin getty 58201 72681 1 0 3 0x88 kqread sshd 87421 193443 16200 74 3 0x1100092 bpf pflogd 16200 169230 1 0 3 0x80 sbwait pflogd 54497 339630 79430 73 3 0x1100090 kqread syslogd 79430 225194 1 0 3 0x100082 sbwait syslogd 60843 371155 1 0 3 0x100080 kqread resolvd 38562 161390 3688 77 3 0x100092 kqread dhcpleased 69255 451021 3688 77 3 0x100092 kqread dhcpleased 3688 389220 1 0 3 0x80 kqread dhcpleased 65916 254360 0 0 3 0x14200 bored smr 61545 131223 0 0 3 0x14200 pgzero zerothread 10624 55239 0 0 3 0x14200 aiodoned aiodoned 35540 466399 0 0 3 0x14200 syncer update 90566 457567 0 0 3 0x14200 cleaner cleaner 97039 62952 0 0 3 0x14200 reaper reaper 36603 254093 0 0 3 0x14200 pgdaemon pagedaemon 56033 321502 0 0 3 0x14200 bored viomb 9578 106020 0 0 3 0x40014200 acpi0 acpi0 55266 287055 0 0 3 0x40014200 idle1 67782 13775 0 0 3 0x14200 bored softnet1 82971 248917 0 0 3 0x14200 bored softnet0 84258 516607 0 0 3 0x14200 smrbar systqmp 7476 223873 0 0 3 0x14200 bored systq 58372 47432 0 0 3 0x14200 tmoslp softclockmp 68816 394732 0 0 3 0x40014200 tmoslp softclock 32819 386663 0 0 3 0x40014200 idle0 1 302459 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 21225 (syz-executor) thread 0xffff8000fffefca0 (416780) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83955268) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:174 #3 sys_semop+0x22f sys/kern/sysv_sem.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 #5 Xsyscall+0x128 Process 84258 (systqmp) thread 0xffff8000ffffe530 (516607) shared rwlock systqmp r = 0 (0xffffffff83875f58) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10216 11174K 12389K 166960K 12368 0 pcb 19 13K 14K 166960K 235 0 rtable 235 11K 11K 166960K 629 0 pf 38 18K 19K 166960K 158 0 ifaddr 43 7K 8K 166960K 111 0 ifgroup 57 2K 2K 166960K 191 0 sysctl 4 1K 9K 166960K 14 0 counters 72 37K 37K 166960K 212 0 ioctlops 0 0K 4K 166960K 1862 0 iov 0 0K 16K 166960K 71 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1431 90K 90K 166960K 2207 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 10K 166960K 17 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 30 0 dirhash 12 2K 2K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 1132 0 sigio 0 0K 0K 166960K 23 0 proc 72 115K 212K 166960K 697 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 1 0K 0K 166960K 404 0 in_multi 94 6K 7K 166960K 161 0 ether_multi 1 0K 0K 166960K 8 0 mrt 0 0K 0K 166960K 14 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 504 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 263 176K 194K 166960K 12403 0 UVM aobj 11 4K 4K 166960K 12 0 pinsyscall 43 86K 104K 166960K 2338 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 55 0 NDP 13 0K 2K 166960K 75 0 temp 66 8656K 8728K 166960K 48093 0 kqueue 15 22K 32K 166960K 200 0 SYN cache 2 8K 16K 166960K 3 0 ddb{1}> 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 154 0 151 2 1 1 2 0 8 0 rtentry 176 166 0 70 6 0 6 6 0 8 0 unpcb 144 758 0 739 9 7 2 6 0 8 1 syncache 336 11 0 11 3 2 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 448 0 442 7 6 1 7 0 8 0 arp 136 29 0 12 1 0 1 1 0 8 0 inpcb 328 1285 0 1273 12 9 3 8 0 8 2 nd6 152 32 0 9 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 54 0 52 2 1 1 1 0 8 0 pppxif 1504 10 0 10 2 1 1 1 0 8 1 pfstscr 40 4 0 2 1 0 1 1 0 8 0 pffrag 232 25 0 15 1 0 1 1 0 482 0 pffrnode 88 21 0 11 1 0 1 1 0 8 0 pffrent 40 42 0 32 1 0 1 1 0 8 0 pfosfp 40 1430 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1430 0 714 21 0 21 21 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pfstitem 24 62 0 24 1 0 1 1 0 8 0 pfstkey 128 193 0 155 2 0 2 2 0 8 0 pfstate 384 125 0 90 5 0 5 5 0 8 0 pfrule 1344 30 0 25 2 1 1 2 0 8 0 rttmr 136 3 0 3 3 2 1 1 0 8 1 art_heap8 4096 4 0 0 4 0 4 4 0 8 0 art_heap4 256 725 0 256 37 7 30 31 0 8 0 art_table 40 729 0 256 5 0 5 5 0 8 0 art_node 32 166 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 6 1 0 1 1 0 8 0 semapl 112 26 0 17 1 0 1 1 0 8 0 shmpl 112 9 0 1 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3501 0 1988 96 0 96 96 0 8 0 ffsino 296 3501 0 1988 118 0 118 118 0 8 0 nchpl 144 5044 0 3337 64 0 64 64 0 8 0 rtmask 32 12 0 11 3 2 1 1 0 8 0 vnodes 216 4006 0 0 223 0 223 223 0 8 0 namei 1024 17463 0 17463 3 2 1 2 0 8 1 percpumem 16 121 0 70 1 0 1 1 0 8 0 kstatmem 264 112 0 84 4 1 3 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 7 0 7 3 2 1 1 0 8 1 scxspl 216 35776 0 35776 10 9 1 8 1 8 1 plimitpl 152 271 0 253 1 0 1 1 0 8 0 sigapl 424 1443 0 1395 7 1 6 7 0 8 0 knotepl 120 574 0 0 17 0 17 17 0 8 0 kqueuepl 224 473 0 459 7 5 2 5 0 8 1 pipepl 344 254 0 226 3 0 3 3 0 8 0 fdescpl 528 1426 0 1394 3 0 3 3 0 8 0 filepl 160 9071 0 8847 25 7 18 20 0 8 7 lockfpl 104 394 0 392 1 0 1 1 0 8 0 lockfspl 48 134 0 132 1 0 1 1 0 8 0 sessionpl 144 30 0 21 1 0 1 1 0 8 0 pgrppl 48 60 0 43 1 0 1 1 0 8 0 ucredpl 104 1324 0 1311 1 0 1 1 0 8 0 zombiepl 144 1496 0 1494 1 0 1 1 0 8 0 processpl 1232 1443 0 1395 5 1 4 5 0 8 0 procpl 664 3139 0 3079 6 0 6 6 0 8 0 sosppl 176 16 0 16 2 1 1 1 0 8 1 sockpl 752 2264 0 2230 26 17 9 16 0 8 5 mcl64k 65536 21 0 0 3 0 3 3 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 126 0 0 16 0 16 16 0 8 0 mcl2k 2048 30 0 0 4 0 4 4 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 1847 0 0 115 0 115 115 0 8 0 bufpl 280 14399 0 8262 439 0 439 439 0 8 0 anonpl 32 13429 0 0 110 1 109 109 0 246 0 amapchunkpl 152 40253 0 39644 40 8 32 33 0 158 7 amappl16 200 5602 0 5528 59 38 21 31 0 8 8 amappl15 192 8 0 7 2 1 1 1 0 8 0 amappl14 184 4 0 4 1 1 0 1 0 8 0 amappl13 176 488 0 486 1 0 1 1 0 8 0 amappl12 168 1817 0 1774 3 0 3 3 0 8 0 amappl11 160 42 0 42 1 1 0 1 0 8 0 amappl10 152 49 0 34 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 87 0 86 1 0 1 1 0 8 0 amappl6 120 304 0 290 1 0 1 1 0 8 0 amappl5 112 92 0 82 1 0 1 1 0 8 0 amappl4 104 454 0 423 1 0 1 1 0 8 0 amappl3 96 7092 0 6993 4 1 3 3 0 8 0 amappl2 88 1585 0 1505 2 0 2 2 0 8 0 amappl1 80 14916 0 14317 17 2 15 15 0 8 0 amappl 88 11430 0 11245 5 0 5 5 0 92 0 uvmvnodes 80 4006 0 0 82 0 82 82 0 8 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma8192 8192 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 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 255 0 255 3 2 1 1 0 8 1 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 11 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1426 0 1394 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1426 0 1394 1 0 1 1 0 8 0 vmmpekpl 168 13606 0 13558 4 1 3 3 0 8 0 vmmpepl 168 98853 0 96806 130 15 115 116 0 357 16 vmsppl 488 1425 0 1394 6 1 5 5 0 8 0 rwobjpl 80 33291 0 28280 106 0 106 106 0 8 0 pdppl 4096 2860 0 2788 108 34 74 86 0 8 2 pvpl 32 22186 0 0 179 0 179 179 0 265 0 pmappl 256 1425 0 1394 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 410 0 56 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff837a7ff0) 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(ffffffff83955060) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff83955060) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80002a3b2f00) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002a3b2f00) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7406d5e9a050, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3d5: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000fffefca0,ffff80003c433940,ffff80003c433890) at sys_semop+0x3d5 sys/kern/sysv_sem.c:617 syscall(ffff80003c433940) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c433940) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:765 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdc9f0823030, count: -3