kernel: protection fault trap, code=0 Stopped at sys_semop+0x3f9: movzwl 0(%r15),%r12d 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(ffff8000ffff2f50,ffff800035392530,ffff800035392480) at sys_semop+0x3f9 sys/kern/sysv_sem.c:602 syscall(ffff800035392530) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035392530) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb06931b420, count: -3 ddb{1}> show registers rdi 0 rsi 0xb5bb __ALIGN_SIZE+0xa5bb rbp 0xffff800035392450 rbx 0xffff80000134a204 rdx 0 rcx 0xffff8000ffff2f50 rax 0xffff800029b7bff0 r8 0x7f7fffffc000 r9 0x1 r10 0xafa2c280328b19f2 r11 0x206c2432d112b1f0 r12 0xffff80000134a204 r13 0xffffb5bb r14 0xbead __ALIGN_SIZE+0xaead r15 0xdeafbeaddeb7fd2d rip 0xffffffff82af5b89 sys_semop+0x3f9 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff800035392330 ss 0x10 sys_semop+0x3f9: movzwl 0(%r15),%r12d ddb{1}> show proc PROC (syz-executor) tid=425339 pid=7435 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=0xffff8000ffff27b8,0xffff8000ffff2540 process=0xffff8000ffff68e0 user=0xffff80003538d000, vmspace=0xfffffd806a0c4c68 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51413 184475 27688 0 2 0 syz-executor 14171 62488 93802 0 2 0 syz-executor 7435 367888 62054 0 3 0x80 nanoslp syz-executor 7435 461880 62054 0 3 0x4000080 fsleep syz-executor * 7435 425339 62054 0 7 0x4000000 syz-executor 7435 40269 62054 0 3 0x4000080 fsleep syz-executor 53836 198126 38949 0 2 0 syz-executor 53836 320812 38949 0 3 0x4000080 fsleep syz-executor 11495 122998 48152 0 2 0 syz-executor 11495 489025 48152 0 3 0x4000080 fsleep syz-executor 11495 246616 48152 0 3 0x4000080 fsleep syz-executor 72336 481684 61684 0 3 0x82 piperd syz-executor 57892 173204 61684 0 3 0x82 piperd syz-executor 75083 421306 1 0 3 0x100083 ttyin getty 30474 486920 0 0 3 0x14200 bored sosplice 62054 236045 61684 0 3 0x82 nanoslp syz-executor 48152 213671 61684 0 3 0x82 nanoslp syz-executor 27688 88069 61684 0 3 0x82 nanoslp syz-executor 93802 325102 61684 0 3 0x82 nanoslp syz-executor 38949 473841 61684 0 3 0x82 nanoslp syz-executor 33552 140329 61684 0 2 0x2 syz-executor 61684 141240 61554 0 2 0x2 syz-executor 61554 229122 30804 0 3 0x10008a sigsusp ksh 30804 111728 45099 0 3 0x98 kqread sshd-session 45099 338296 64698 0 3 0x92 kqread sshd-session 64698 88732 1 0 3 0x88 kqread sshd 5023 342910 60742 74 3 0x1100092 bpf pflogd 60742 46759 1 0 3 0x80 sbwait pflogd 59314 161416 80058 73 3 0x1100090 kqread syslogd 80058 270066 1 0 3 0x100082 sbwait syslogd 11507 447201 1 0 3 0x100080 kqread resolvd 38012 318477 88849 77 3 0x100092 kqread dhcpleased 49683 163828 88849 77 3 0x100092 kqread dhcpleased 88849 194026 1 0 3 0x80 kqread dhcpleased 23992 441000 0 0 3 0x14200 bored smr 21903 123885 0 0 2 0x14200 zerothread 78665 306596 0 0 3 0x14200 aiodoned aiodoned 92643 217597 0 0 3 0x14200 syncer update 755 301993 0 0 3 0x14200 cleaner cleaner 87441 439199 0 0 3 0x14200 reaper reaper 88643 27796 0 0 3 0x14200 pgdaemon pagedaemon 7932 134595 0 0 3 0x14200 bored viomb 58811 352281 0 0 3 0x40014200 acpi0 acpi0 68523 76286 0 0 3 0x40014200 idle1 369 58635 0 0 3 0x14200 bored softnet3 68651 270460 0 0 3 0x14200 bored softnet2 57207 172788 0 0 3 0x14200 bored softnet1 38844 455977 0 0 7 0x14200 softnet0 84808 430790 0 0 3 0x14200 bored systqmp 63818 447386 0 0 3 0x14200 bored systq 65255 112188 0 0 3 0x14200 tmoslp softclockmp 15046 410487 0 0 3 0x40014200 tmoslp softclock 16961 307671 0 0 3 0x40014200 idle0 1 415525 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 7435 (syz-executor) thread 0xffff8000ffff2f50 (425339) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8363b4e8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 yield+0x6a sys/kern/sched_bsd.c:320 #4 malloc+0xe5 sys/kern/kern_malloc.c:170 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #6 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 38844 (softnet0) thread 0xffff8000ffffe798 (455977) shared rwlock softnet0 r = 0 (0xffff80000002c070) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 taskq_thread+0x12a sys/kern/kern_task.c:444 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10205 11243K 11437K 166960K 12968 0 pcb 17 13K 13K 166960K 152 0 rtable 226 7K 7K 166960K 522 0 pf 36 18K 19K 166960K 90 0 ifaddr 42 7K 7K 166960K 71 0 ifgroup 58 2K 2K 166960K 102 0 sysctl 2 0K 1K 166960K 3 0 counters 64 36K 36K 166960K 90 0 ioctlops 0 0K 4K 166960K 1637 0 iov 0 0K 24K 166960K 48 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1421 89K 90K 166960K 2321 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 22 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 81 0 dirhash 12 2K 2K 166960K 57 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 15 53K 89K 166960K 1092 0 sigio 0 0K 0K 166960K 18 0 proc 73 91K 128K 166960K 670 0 subproc 104 6K 6K 166960K 130 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 253 0 in_multi 98 7K 7K 166960K 157 0 ether_multi 1 0K 0K 166960K 1 0 mrt 2 0K 0K 166960K 3 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 570 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 216 72K 87K 166960K 12149 0 UVM aobj 32 4K 4K 166960K 36 0 pinsyscall 41 82K 107K 166960K 2278 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 55 0 NDP 12 0K 2K 166960K 49 0 temp 76 6828K 7079K 166960K 48314 0 kqueue 13 20K 26K 166960K 164 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 202 0 199 4 2 2 3 0 8 1 rtentry 112 145 0 42 4 0 4 4 0 8 0 unpcb 144 1084 0 1064 15 14 1 6 0 8 0 syncache 336 7 0 7 4 4 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 808 364 0 358 15 9 6 8 0 8 5 arp 120 23 0 6 1 0 1 1 0 8 0 inpcb 336 1146 0 1135 16 11 5 7 0 8 3 nd6 136 35 0 7 1 0 1 1 0 8 0 pkpcb 40 7 0 7 4 4 0 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1168 6 0 6 4 3 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 7 0 2 1 0 1 1 0 482 0 pffrnode 88 7 0 2 1 0 1 1 0 8 0 pffrent 40 11 0 6 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 81 0 30 1 0 1 1 0 8 0 pfstkey 128 83 0 32 2 0 2 2 0 8 0 pfstate 376 82 0 31 6 0 6 6 0 8 0 pfrule 1344 23 0 17 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 639 0 220 32 5 27 31 0 8 0 art_table 32 641 0 220 4 0 4 4 0 8 0 art_node 16 144 0 52 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 43 1 0 1 1 0 8 0 semupl 112 7 0 7 5 4 1 1 0 8 1 semapl 112 77 0 68 1 0 1 1 0 8 0 shmpl 112 33 0 4 1 0 1 1 0 8 0 dirhash 1024 48 0 31 3 0 3 3 0 8 0 dino2pl 256 3450 0 1948 95 0 95 95 0 8 0 ffsino 272 3450 0 1948 101 0 101 101 0 8 0 nchpl 144 5001 0 4458 63 40 23 63 0 8 0 uvmvnodes 80 4068 0 0 84 0 84 84 0 8 0 vnodes 216 4068 0 0 226 0 226 226 0 8 0 namei 1024 17898 0 17898 5 4 1 2 0 8 1 percpumem 16 59 0 13 1 0 1 1 0 8 0 kstatmem 264 50 0 26 2 0 2 2 0 8 0 scsiplug 72 5 0 5 4 3 1 1 0 8 1 scxspl 216 14527 0 14527 11 8 3 7 1 8 3 plimitpl 152 239 0 221 1 0 1 1 0 8 0 sigapl 424 1405 0 1357 7 1 6 7 0 8 0 futexpl 64 14672 0 14667 1 0 1 1 0 8 0 knotepl 120 559 0 0 17 0 17 17 0 8 0 kqueuepl 216 279 0 270 3 2 1 3 0 8 0 pipepl 320 228 0 201 3 0 3 3 0 8 0 fdescpl 496 1386 0 1356 5 0 5 5 0 8 0 filepl 152 9392 0 9144 39 22 17 19 0 8 6 lockfpl 104 332 0 329 1 0 1 1 0 8 0 lockfspl 48 144 0 141 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 47 0 30 1 0 1 1 0 8 0 ucredpl 104 1610 0 1597 1 0 1 1 0 8 0 zombiepl 144 1793 0 1793 3 2 1 1 0 8 1 processpl 1160 1406 0 1357 5 1 4 5 0 8 0 procpl 648 3119 0 3064 8 2 6 8 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 4 0 4 3 2 1 1 0 8 1 sockpl 664 2448 0 2415 44 37 7 17 0 8 3 mcl64k 65536 5 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 163 0 0 21 0 21 21 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 3460 0 0 215 0 215 215 0 8 0 bufpl 280 3992 0 104 278 0 278 278 0 8 0 anonpl 24 259645 0 255914 71 33 38 68 0 185 0 amapchunkpl 152 39759 0 39305 44 14 30 30 0 158 7 amappl16 200 6559 0 6529 37 32 5 26 0 8 0 amappl15 192 6 0 5 2 1 1 1 0 8 0 amappl14 184 157 0 145 1 0 1 1 0 8 0 amappl13 176 65 0 65 1 1 0 1 0 8 0 amappl12 168 2086 0 2057 3 1 2 2 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 142 0 142 1 1 0 1 0 8 0 amappl8 136 29 0 26 1 0 1 1 0 8 0 amappl7 128 142 0 130 1 0 1 1 0 8 0 amappl6 120 185 0 183 1 0 1 1 0 8 0 amappl5 112 159 0 146 1 0 1 1 0 8 0 amappl4 104 352 0 332 1 0 1 1 0 8 0 amappl3 96 7324 0 7240 3 0 3 3 0 8 0 amappl2 88 1713 0 1630 3 0 3 3 0 8 0 amappl1 80 11695 0 11138 16 2 14 14 0 8 0 amappl 88 11657 0 11502 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 2 0 1 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 1 1 1 0 8 1 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 8 0 8 2 2 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 35 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1385 0 1356 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1385 0 1356 1 0 1 1 0 8 0 vmmpekpl 168 12707 0 12658 3 0 3 3 0 8 0 vmmpepl 168 93911 0 92153 112 23 89 105 0 357 1 vmsppl 448 1384 0 1356 6 2 4 5 0 8 0 rwobjpl 56 32846 0 27835 73 1 72 72 0 8 0 pdppl 4096 2777 0 2712 113 42 71 83 0 8 6 pvpl 32 17160 0 0 139 0 139 139 0 265 0 pmappl 248 1384 0 1356 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 643 0 84 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff834ffff0) 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(ffffffff8363b2e0) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8363b2e0) at __mp_lock+0x199 sys/kern/kern_lock.c:144 if_qstart_compat(ffff800000039300) at if_qstart_compat+0x27 sys/net/if.c:714 ifq_serialize(ffff800000039300,ffff800000039428) at ifq_serialize+0x1ba taskq_thread(ffff80000002c000) at taskq_thread+0x157 sys/kern/kern_task.c:448 end trace frame: 0x0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x3f9: movzwl 0(%r15),%r12d ddb{1}> trace sys_semop(ffff8000ffff2f50,ffff800035392530,ffff800035392480) at sys_semop+0x3f9 sys/kern/sysv_sem.c:602 syscall(ffff800035392530) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff800035392530) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb06931b420, count: -3