Ěkernel: protection fault trap, code=0 Stopped at sys_semop+0x45b: 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(ffff8000ffff9978,ffff80003c5b2470,ffff80003c5b23c0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c5b2470) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5b2470) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e4259dcdd0, count: -3 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003c5b2390 rbx 0 rdx 0 rcx 0xffff8000ffff9978 rax 0xdead4110dead4110 r8 0x7f7fffffc000 r9 0x1 r10 0x882dbdc8594b4659 r11 0xda4a8b7ca4d3d929 r12 0xffff8000012e2004 r13 0 r14 0xffff80003c5b2470 r15 0 rip 0xffffffff8135d8eb sys_semop+0x45b cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c5b2270 ss 0x10 sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> show proc PROC (syz-executor) tid=461798 pid=78493 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff8028,0xffff8000ffff8f68 process=0xffff80002f55b4a8 user=0xffff80003c5ad000, vmspace=0xfffffd806bfdf900 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78493 160410 19592 0 7 0x10 syz-executor 78493 447180 19592 0 3 0x4000090 sbwait syz-executor *78493 461798 19592 0 7 0x4000010 syz-executor 78493 80798 19592 0 2 0x4000010 syz-executor 99658 88825 36745 0 3 0x80 fsleep syz-executor 99658 351362 36745 0 3 0x4000080 sbwait syz-executor 93538 117743 6858 0 3 0x80 fsleep syz-executor 93538 266796 6858 0 3 0x4000080 fsleep syz-executor 93538 264330 6858 0 3 0x4000080 sbwait syz-executor 93538 60408 6858 0 3 0x4000080 fsleep syz-executor 3595 451809 67283 0 3 0x80 fsleep syz-executor 3595 197921 67283 0 3 0x4000080 nanoslp syz-executor 46970 495201 48335 0 3 0x80 fsleep syz-executor 46970 400690 48335 0 3 0x4000080 fsleep syz-executor 46970 229564 48335 0 3 0x4000080 ttyin syz-executor 90724 145255 53059 0 3 0x80 fsleep syz-executor 90724 398194 53059 0 3 0x4000080 fifor syz-executor 90241 438607 0 0 3 0x14200 bored sosplice 381 386584 287 0 3 0x82 wait syz-executor 19592 335635 287 0 3 0x82 nanoslp syz-executor 67283 262278 287 0 3 0x82 nanoslp syz-executor 72048 101280 287 0 3 0x82 nanoslp syz-executor 6858 108036 287 0 3 0x82 nanoslp syz-executor 48335 456632 287 0 3 0x82 nanoslp syz-executor 36745 222899 287 0 3 0x82 nanoslp syz-executor 53059 129736 287 0 3 0x82 nanoslp syz-executor 287 61164 58527 0 3 0x82 kqread syz-executor 58527 187531 32963 0 3 0x10008a sigsusp ksh 32963 372409 75037 0 3 0x98 kqread sshd-session 75037 523142 457 0 3 0x92 kqread sshd-session 5297 142887 1 0 3 0x100083 ttyopn getty 457 148745 1 0 3 0x88 kqread sshd 85030 29048 32460 74 3 0x1100092 bpf pflogd 32460 365756 1 0 3 0x80 sbwait pflogd 13779 331393 18128 73 3 0x1100090 kqread syslogd 18128 335584 1 0 3 0x100082 sbwait syslogd 78534 339920 1 0 3 0x100080 kqread resolvd 39852 356689 72273 77 3 0x100092 kqread dhcpleased 27587 464589 72273 77 3 0x100092 kqread dhcpleased 72273 175758 1 0 3 0x80 kqread dhcpleased 31952 165727 0 0 3 0x14200 bored smr 8229 35125 0 0 3 0x14200 pgzero zerothread 92023 134258 0 0 3 0x14200 aiodoned aiodoned 66398 307271 0 0 3 0x14200 syncer update 31110 116893 0 0 3 0x14200 cleaner cleaner 33635 140077 0 0 3 0x14200 reaper reaper 27563 343708 0 0 3 0x14200 pgdaemon pagedaemon 71320 100777 0 0 3 0x14200 bored viomb 49512 91107 0 0 3 0x40014200 acpi0 acpi0 28520 523574 0 0 3 0x40014200 idle1 91233 354248 0 0 3 0x14200 bored softnet3 12987 407361 0 0 3 0x14200 bored softnet2 66701 248469 0 0 3 0x14200 bored softnet1 79019 67726 0 0 3 0x14200 bored softnet0 71114 348636 0 0 3 0x14200 bored systqmp 2675 118909 0 0 3 0x14200 bored systq 4237 63465 0 0 3 0x14200 tmoslp softclockmp 54857 471684 0 0 3 0x40014200 tmoslp softclock 93181 186162 0 0 3 0x40014200 idle0 1 134873 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 78493 (syz-executor) thread 0xffff8000ffff8028 (447180) exclusive rwlock sbufrcv r = 0 (0xffff8000012d4e68) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 sblock+0xb7 sys/kern/uipc_socket2.c:537 #3 soreceive+0x28e sys/kern/uipc_socket.c:876 #4 recvit+0x40a sys/kern/uipc_syscalls.c:1072 #5 sys_recvmmsg+0x3d3 sys/kern/uipc_syscalls.c:963 #6 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 78493 (syz-executor) thread 0xffff8000ffff9978 (461798) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8360db10) #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:174 #5 sys_semop+0x234 sys/kern/sysv_sem.c:564 #6 syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 Process 78493 (syz-executor) thread 0xffff8000ffff8f58 (80798) exclusive rwlock futex r = 0 (0xffffffff834e1548) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 sys_futex+0x69 sys/kern/sys_futex.c:98 #3 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #3 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #4 Xsyscall+0x128 Process 99658 (syz-executor) thread 0xffff8000ffff82b0 (351362) exclusive rwlock sbufrcv r = 0 (0xffff8000012d4bb8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316 #2 sblock+0xb7 sys/kern/uipc_socket2.c:537 #3 soreceive+0x28e sys/kern/uipc_socket.c:876 #4 recvit+0x40a sys/kern/uipc_syscalls.c:1072 #5 sys_recvmmsg+0x3d3 sys/kern/uipc_syscalls.c:963 #6 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] #6 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10195 11086K 11280K 166960K 11423 0 pcb 17 15K 16K 166960K 109 0 rtable 231 6K 7K 166960K 364 0 pf 35 17K 21K 166960K 54 0 ifaddr 43 7K 7K 166960K 49 0 ifgroup 58 2K 2K 166960K 62 0 sysctl 1 1K 1K 166960K 1 0 counters 64 36K 36K 166960K 68 0 ioctlops 0 0K 4K 166960K 1494 0 iov 2 8K 16K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1345 85K 85K 166960K 1438 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 272 0 sigio 0 0K 0K 166960K 3 0 proc 72 91K 152K 166960K 543 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 19 0 in_multi 99 7K 7K 166960K 113 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 374 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 238 73K 77K 166960K 4040 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 43 86K 104K 166960K 1355 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 6 0 NDP 12 0K 2K 166960K 32 0 temp 76 6899K 6967K 166960K 14701 0 kqueue 14 22K 28K 166960K 54 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 39 0 36 1 0 1 1 0 8 0 rtentry 112 116 0 8 4 0 4 4 0 8 0 unpcb 144 224 0 201 4 1 3 3 0 8 2 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 808 45 0 40 2 1 1 2 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 376 361 0 351 13 11 2 13 0 8 0 nd6 136 25 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 1 0 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 2 0 2 1 1 0 1 0 8 0 pffrag 232 2 0 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 2 0 0 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 1 0 1 1 1 0 1 0 8 0 pftag 88 1 0 1 1 1 0 1 0 8 0 pfstitem 24 33 0 0 1 0 1 1 0 8 0 pfstkey 128 33 0 0 2 0 2 2 0 8 0 pfstate 376 33 0 0 4 0 4 4 0 8 0 pfrule 1344 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 483 0 46 29 0 29 29 0 8 0 art_table 32 484 0 46 4 0 4 4 0 8 0 art_node 16 115 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 8 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 1 2 1 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1789 0 278 96 1 95 96 0 8 0 ffsino 280 1789 0 278 109 0 109 109 0 8 0 nchpl 144 2191 0 504 64 1 63 64 0 8 0 uvmvnodes 80 1926 0 0 40 0 40 40 0 8 0 vnodes 216 1926 0 0 107 0 107 107 0 8 0 namei 1024 6857 0 6857 3 2 1 2 0 8 1 percpumem 16 48 0 2 1 0 1 1 0 8 0 kstatmem 264 28 0 4 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6468 0 6468 4 3 1 3 1 8 1 plimitpl 152 104 0 86 1 0 1 1 0 8 0 sigapl 424 572 0 521 7 1 6 7 0 8 0 futexpl 64 2768 0 2759 1 0 1 1 0 8 0 knotepl 120 318 0 0 10 0 10 10 0 8 0 kqueuepl 216 58 0 48 1 0 1 1 0 8 0 pipepl 328 114 0 87 3 0 3 3 0 8 0 fdescpl 504 553 0 521 6 1 5 6 0 8 0 filepl 152 2608 0 2386 16 5 11 14 0 8 2 lockfpl 104 46 0 44 1 0 1 1 0 8 0 lockfspl 48 19 0 17 1 0 1 1 0 8 0 sessionpl 144 23 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 14 1 0 1 1 0 8 0 ucredpl 104 246 0 232 1 0 1 1 0 8 0 zombiepl 144 527 0 525 1 0 1 1 0 8 0 processpl 1168 572 0 521 5 1 4 5 0 8 0 procpl 648 803 0 741 6 0 6 6 0 8 0 sockpl 688 626 0 590 20 11 9 15 0 8 5 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 123 0 0 16 0 16 16 0 8 0 mcl2k 2048 27 0 0 4 0 4 4 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 237 0 0 15 0 15 15 0 8 0 bufpl 280 2645 0 125 180 0 180 180 0 8 0 anonpl 24 105563 0 102155 24 1 23 24 0 185 0 amapchunkpl 152 12359 0 11823 23 2 21 23 0 158 0 amappl16 200 1922 0 1887 5 3 2 5 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 115 0 103 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1196 0 1164 4 1 3 3 0 8 0 amappl11 160 55 0 41 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 244 0 244 1 1 0 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 107 0 95 1 0 1 1 0 8 0 amappl6 120 180 0 177 1 0 1 1 0 8 0 amappl5 112 125 0 116 1 0 1 1 0 8 0 amappl4 104 315 0 297 1 0 1 1 0 8 0 amappl3 96 2182 0 2057 4 0 4 4 0 8 0 amappl2 88 641 0 578 2 0 2 2 0 8 0 amappl1 80 8319 0 7741 15 1 14 15 0 8 0 amappl 88 3664 0 3481 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 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 253 0 253 1 1 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 553 0 521 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 553 0 521 1 0 1 1 0 8 0 vmmpekpl 168 6265 0 6232 3 1 2 3 0 8 0 vmmpepl 168 40055 0 38128 89 4 85 89 0 357 0 vmsppl 456 552 0 521 5 1 4 5 0 8 0 rwobjpl 64 16024 0 13142 47 0 47 47 0 8 0 pdppl 4096 1113 0 1042 99 28 71 87 0 8 0 pvpl 32 10923 0 0 89 0 89 89 0 265 0 pmappl 248 552 0 521 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 287 0 38 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(ffffffff834ccff0) 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(ffffffff8360d908) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8360d908) at __mp_lock+0x192 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff8360d908) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8360d908) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000371702d0) at syscall+0xae6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff8000371702d0) at syscall+0xae6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d28192252f0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at sys_semop+0x45b: movzwl 0(%rax),%r15d ddb{1}> trace sys_semop(ffff8000ffff9978,ffff80003c5b2470,ffff80003c5b23c0) at sys_semop+0x45b sys/kern/sysv_sem.c:615 syscall(ffff80003c5b2470) at syscall+0xb08 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c5b2470) at syscall+0xb08 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e4259dcdd0, count: -3