login: kernel: protection fault trap, code=0 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%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(ffff80003c453a18,ffff80003c4c9ab0,ffff80003c4c9a00) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c4c9ab0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4c9ab0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a9dbd1a560, count: -3 ddb{1}> show registers rdi 0 rsi 0xb rbp 0xffff80003c4c99d0 rbx 0xdeaf4152deaf4152 rdx 0 rcx 0xffff80003c453a18 rax 0xffff8000299edff0 r8 0x7f7fffffc000 r9 0x1 r10 0x1c1b4c33bcecdd1e r11 0x98528d8428be72b r12 0xb r13 0xfffffd806b843770 r14 0xffff80003c4c9ab0 r15 0xb rip 0xffffffff82b46b22 sys_semop+0x352 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c4c98e0 ss 0x10 sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> show proc PROC (syz-executor) tid=303364 pid=92819 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c452028,0xffff80003c452d30 process=0xffff80003c4c1d08 user=0xffff80003c4c4000, vmspace=0xfffffd806b7cd3f0 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 92819 247431 99595 0 3 0x80 nanoslp syz-executor *92819 303364 99595 0 7 0x4000000 syz-executor 92819 194977 99595 0 3 0x4000080 fsleep syz-executor 33231 443389 63970 0 7 0x100002 sh 54618 308587 54325 0 2 0x1 syz-executor 54618 420230 54325 0 3 0x4000080 fsleep syz-executor 50672 209402 10 0 2 0x4000001 syz-executor 50672 5567 10 0 2 0x4000001 syz-executor 50672 24180 10 0 3 0x4000080 fsleep syz-executor 66628 178597 85905 0 2 0 syz-executor 66628 81198 85905 0 2 0x4000000 syz-executor 66628 80677 85905 0 3 0x4000080 fsleep syz-executor 15760 3633 51934 0 2 0 syz-executor 15760 320587 51934 0 2 0x4000001 syz-executor 15760 495371 51934 0 3 0x4000080 fsleep syz-executor 16409 95407 7886 0 3 0x80 nanoslp syz-executor 16409 46173 7886 0 3 0x4000080 pppxread syz-executor 16409 293830 7886 0 3 0x4000080 fsleep syz-executor 16409 365473 7886 0 3 0x4000080 fsleep syz-executor 63970 145858 14517 0 3 0x82 wait syz-executor 63383 342438 0 0 3 0x14200 acct acct 25167 273201 1 0 3 0x80 nanoslp init 54781 431724 0 0 3 0x14200 bored sosplice 10 190442 14517 0 3 0x82 nanoslp syz-executor 51934 488303 14517 0 3 0x82 nanoslp syz-executor 54325 403729 14517 0 3 0x82 nanoslp syz-executor 85905 294240 14517 0 3 0x82 nanoslp syz-executor 49206 219646 14517 0 3 0x82 piperd syz-executor 99595 21578 14517 0 3 0x82 nanoslp syz-executor 7886 151189 14517 0 3 0x82 nanoslp syz-executor 14517 170989 81908 0 2 0x3 syz-executor 81908 65267 52403 0 3 0x10008a sigsusp ksh 52403 174016 89165 0 3 0x98 kqread sshd-session 89165 422880 58391 0 3 0x92 kqread sshd-session 58391 27840 1 0 3 0x88 kqread sshd 24389 42641 1469 74 3 0x1100092 bpf pflogd 1469 291226 1 0 3 0x80 sbwait pflogd 2204 240398 43453 73 3 0x1100090 kqread syslogd 43453 480650 1 0 3 0x100082 sbwait syslogd 63974 31598 1 0 3 0x100080 kqread resolvd 45996 72559 17238 77 3 0x100092 kqread dhcpleased 136 490539 17238 77 3 0x100092 kqread dhcpleased 17238 480607 1 0 3 0x80 kqread dhcpleased 68142 485457 0 0 3 0x14200 bored smr 67391 167103 0 0 2 0x14200 zerothread 67646 468572 0 0 3 0x14200 aiodoned aiodoned 94836 329218 0 0 3 0x14200 syncer update 16645 385486 0 0 3 0x14200 cleaner cleaner 80003 376122 0 0 3 0x14200 reaper reaper 41710 466866 0 0 3 0x14200 pgdaemon pagedaemon 31711 113460 0 0 3 0x14200 bored viomb 79424 496014 0 0 3 0x40014200 acpi0 acpi0 16681 79608 0 0 3 0x40014200 idle1 68861 360477 0 0 3 0x14200 bored softnet7 24562 437129 0 0 3 0x14200 bored softnet6 67566 482382 0 0 3 0x14200 bored softnet5 13433 430342 0 0 3 0x14200 bored softnet4 58272 432416 0 0 3 0x14200 bored softnet3 40243 16086 0 0 3 0x14200 bored softnet2 78941 2615 0 0 3 0x14200 bored softnet1 62038 65877 0 0 3 0x14200 bored softnet0 71583 516301 0 0 3 0x14200 bored systqmp 796 120997 0 0 3 0x14200 bored systq 36328 501617 0 0 3 0x14200 tmoslp softclockmp 64003 1334 0 0 3 0x40014200 tmoslp softclock 17640 158246 0 0 3 0x40014200 idle0 1 446183 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{1}> show all locks Process 92819 (syz-executor) thread 0xffff80003c453a18 (303364) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff838e5740) #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:746 #5 Xsyscall+0x128 Process 66628 (syz-executor) thread 0xffff8000ffff2fa0 (81198) exclusive rwlock inet46 r = 0 (0xffff8000014e06d8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 socreate+0x214 pru_attach sys/sys/protosw.h:-1 [inline] #2 socreate+0x214 sys/kern/uipc_socket.c:219 #3 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #4 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 #5 Xsyscall+0x128 shared rwlock netlock r = 0 (0xffffffff83803820) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 solock_shared+0x6e sys/kern/uipc_socket2.c:343 #3 socreate+0x214 pru_attach sys/sys/protosw.h:-1 [inline] #3 socreate+0x214 sys/kern/uipc_socket.c:219 #4 sys_socket+0x124 sys/kern/uipc_syscalls.c:102 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:746 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10259 11103K 11317K 166960K 12215 0 pcb 18 20K 22K 166960K 513 0 rtable 144 8K 8K 166960K 488 0 pf 37 18K 67485K 166960K 197 0 ifaddr 32 5K 7K 166960K 87 0 ifgroup 59 2K 2K 166960K 142 0 sysctl 4 1K 9K 166960K 14 0 counters 70 37K 37K 166960K 280 0 ioctlops 0 0K 4K 166960K 1739 0 iov 0 0K 16K 166960K 61 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1407 88K 89K 166960K 2160 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 19 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 33 0 dirhash 12 2K 3K 166960K 27 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 248K 166960K 995 0 sigio 0 0K 0K 166960K 21 0 proc 63 99K 164K 166960K 667 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 135 0 in_multi 53 4K 7K 166960K 150 0 ether_multi 1 0K 0K 166960K 10 0 mrt 2 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 464 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 234 156K 178K 166960K 10794 0 UVM aobj 36 4K 5K 166960K 41 0 pinsyscall 41 82K 104K 166960K 2105 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 61 0 NDP 13 0K 2K 166960K 55 0 temp 60 8647K 8718K 166960K 47042 0 kqueue 16 22K 33K 166960K 236 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 26 0 0 1 0 1 1 0 8 0 rtpcb 120 111 0 108 1 0 1 1 0 8 0 rtentry 176 129 0 77 5 0 5 5 0 8 0 unpcb 144 642 0 622 7 5 2 6 0 8 0 syncache 336 5 0 5 3 2 1 1 0 8 1 tcpcb 736 632 0 628 17 8 9 10 0 8 8 arp 136 16 0 7 1 0 1 1 0 8 0 inpcb 328 1784 0 1776 31 22 9 22 0 8 8 nd6 144 21 0 10 1 0 1 1 0 8 0 pkpcb 40 11 0 11 2 2 0 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 mppekey 1024 5 0 5 2 1 1 1 0 8 1 ppxss 1192 92 0 92 1 0 1 1 0 8 1 pppxif 1504 72 0 72 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 1 0 1 0 8 0 pffrag 232 8 0 3 1 0 1 1 0 482 0 pffrnode 88 6 0 2 1 0 1 1 0 8 0 pffrent 40 12 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 6 0 6 2 2 0 1 0 8 0 pfanchor 1288 2 0 2 1 1 0 1 0 8 0 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 68 0 20 1 0 1 1 0 8 0 pfstkey 128 69 0 21 2 0 2 2 0 8 0 pfstate 384 69 0 21 5 0 5 5 0 8 0 pfrule 1344 25 0 19 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 540 0 297 28 7 21 28 0 8 1 art_table 40 542 0 297 5 0 5 5 0 8 0 art_node 32 129 0 84 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 112 29 0 20 1 0 1 1 0 8 0 shmpl 112 38 0 5 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 3315 0 1798 96 1 95 96 0 8 0 ffsino 296 3315 0 1798 117 0 117 117 0 8 0 nchpl 144 4751 0 3055 64 0 64 64 0 8 0 rtmask 32 3 0 3 2 1 1 1 0 8 1 uvmvnodes 80 3771 0 0 77 0 77 77 0 8 0 vnodes 216 3771 0 0 210 0 210 210 0 8 0 namei 1024 16192 0 16192 4 3 1 2 0 8 1 percpumem 16 155 0 105 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 80 0 50 5 2 3 3 0 8 1 scsiplug 72 4 0 4 3 3 0 1 0 8 0 scxspl 216 31612 0 31612 9 8 1 8 1 8 1 plimitpl 152 357 0 340 1 0 1 1 0 8 0 sigapl 424 1308 0 1253 9 1 8 9 0 8 0 knotepl 120 541 0 0 17 0 17 17 0 8 0 kqueuepl 224 460 0 449 6 4 2 5 0 8 1 pipepl 344 281 0 252 9 0 9 9 0 8 6 fdescpl 528 1261 0 1230 3 0 3 3 0 8 0 filepl 160 8761 0 8533 29 12 17 20 0 8 5 lockfpl 104 447 0 445 1 0 1 1 0 8 0 lockfspl 48 120 0 118 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 45 0 29 1 0 1 1 0 8 0 ucredpl 104 1473 0 1460 1 0 1 1 0 8 0 zombiepl 144 1657 0 1657 1 0 1 1 0 8 1 processpl 1232 1308 0 1253 6 0 6 6 0 8 0 procpl 664 2804 0 2737 8 1 7 8 0 8 0 sosppl 168 4 0 4 2 2 0 1 0 8 0 sockpl 752 2596 0 2564 55 43 12 29 0 8 8 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 123 0 0 16 0 16 16 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 28 0 0 4 0 4 4 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 291 0 0 18 0 18 18 0 8 0 bufpl 280 14251 0 8108 440 0 440 440 0 8 0 anonpl 32 11885 0 0 96 0 96 96 0 246 0 amapchunkpl 152 35815 0 35341 46 5 41 41 0 158 21 amappl16 200 5104 0 5071 40 24 16 26 0 8 7 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 121 0 110 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 1991 0 1960 4 1 3 3 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 262 0 262 1 1 0 1 0 8 0 amappl8 136 19 0 16 1 0 1 1 0 8 0 amappl7 128 113 0 102 1 0 1 1 0 8 0 amappl6 120 178 0 173 1 0 1 1 0 8 0 amappl5 112 126 0 115 1 0 1 1 0 8 0 amappl4 104 316 0 297 1 0 1 1 0 8 0 amappl3 96 6184 0 6092 5 2 3 4 0 8 0 amappl2 88 1511 0 1432 2 0 2 2 0 8 0 amappl1 80 12119 0 11542 16 2 14 15 0 8 0 amappl 88 9918 0 9754 5 0 5 5 0 92 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 6 0 6 1 1 0 1 0 8 0 dma128 128 256 0 256 4 4 0 1 0 8 0 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 40 0 5 1 0 1 1 0 8 0 uaddrrnd 24 1261 0 1230 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1261 0 1230 1 0 1 1 0 8 0 vmmpekpl 168 12246 0 12205 3 0 3 3 0 8 0 vmmpepl 168 85692 0 83738 116 8 108 111 0 357 9 vmsppl 488 1260 0 1230 6 1 5 5 0 8 0 rwobjpl 80 28970 0 24259 98 0 98 98 0 8 0 pdppl 4096 2530 0 2460 112 38 74 88 0 8 4 pvpl 32 21325 0 0 173 1 172 172 0 265 0 pmappl 256 1260 0 1230 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 314 0 62 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff83787ff0) 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(ffffffff838e5538) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:134 [inline] __mp_lock(ffffffff838e5538) at __mp_lock+0x192 sys/kern/kern_lock.c:165 syscall(ffff80002a32f480) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80002a32f480) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72e9e98a6c60, count: -6 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x352: movzwl 0x8(%rbx),%r15d ddb{1}> trace sys_semop(ffff80003c453a18,ffff80003c4c9ab0,ffff80003c4c9a00) at sys_semop+0x352 sys/kern/sysv_sem.c:622 syscall(ffff80003c4c9ab0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4c9ab0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:746 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x3a9dbd1a560, count: -3