login: panic: kernel diagnostic assertion "va >= entry->start" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_fault.c", line 1694 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *248985 28541 0 0 0x4000000 0 syz-executor 201185 55234 0 0x2 0 1 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f4214) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7bff,ffffffff8304c66a,69e,ffffffff8300df45) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000371f2a58,ffff8000371df660,ffff8000371df5b0) at sys_sysctl+0x425 syscall(ffff8000371df660) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371df660) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa89e9d241b0, count: 6 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "va >= entry->start" failed: file "/syzkaller/managers/multicore/kernel/sys/uvm/uvm_fault.c", line 1694 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f4214) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7bff,ffffffff8304c66a,69e,ffffffff8300df45) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000371f2a58,ffff8000371df660,ffff8000371df5b0) at sys_sysctl+0x425 syscall(ffff8000371df660) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371df660) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa89e9d241b0, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000371df180 rbx 0xffffffff834d5dbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff8000371f2a58 rax 0xffffffff834d4ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x1228d2687ed3a6a1 r11 0xef4c90f978fca0a2 r12 0xffffffff834d5bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff81e356c5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371df170 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=248985 pid=28541 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=36, usrpri=50, slppri=36, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000371f31f0,0xffff8000371f27e0 process=0xffff8000fffef1f8 user=0xffff8000371da000, vmspace=0xfffffd806b7c1560 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 28541 237440 47548 0 2 0 syz-executor 28541 105227 47548 0 2 0x4000080 syz-executor *28541 248985 47548 0 7 0x4000000 syz-executor 28541 444705 47548 0 3 0x4000080 fsleep syz-executor 12471 19090 69962 60928 3 0x90 nanoslp syz-executor 12471 399736 69962 60928 3 0x4000090 rest syz-executor 12471 145631 69962 60928 3 0x4000090 fsleep syz-executor 12471 298506 69962 60928 3 0x4000090 fsleep syz-executor 59575 392332 88202 0 3 0x80 nanoslp syz-executor 59575 346155 88202 0 3 0x4000080 fsleep syz-executor 59575 304620 88202 0 3 0x4000080 ttyout syz-executor 59575 366082 88202 0 3 0x4000080 fsleep syz-executor 76444 153389 17828 0 3 0x80 nanoslp syz-executor 76444 8606 17828 0 3 0x4000080 kqread syz-executor 76444 143727 17828 0 3 0x4000080 fsleep syz-executor 19709 40606 45068 0 3 0x80 nanoslp syz-executor 19709 14146 45068 0 3 0x4000080 fsleep syz-executor 19709 337987 45068 0 3 0x4000080 ttyin syz-executor 19709 212076 45068 0 3 0x4000080 fsleep syz-executor 64830 442700 67221 60929 3 0x90 nanoslp syz-executor 64830 101302 67221 60929 3 0x4000090 msgwait syz-executor 64830 251301 67221 60929 3 0x4000090 sbwait syz-executor 64830 286545 67221 60929 3 0x4000090 kqread syz-executor 64830 18282 67221 60929 3 0x4000090 fsleep syz-executor 77267 799 35317 0 2 0 syz-executor 77267 134422 35317 0 3 0x4000080 sbwait syz-executor 77267 241990 35317 0 3 0x4000080 fsleep syz-executor 97964 19487 1 0 3 0x100083 ttyin getty 19351 9891 0 0 3 0x14200 bored sosplice 35317 254659 56563 0 3 0x82 nanoslp syz-executor 17828 426843 56563 0 3 0x82 nanoslp syz-executor 45068 422181 56563 0 3 0x82 nanoslp syz-executor 67221 14973 56563 0 3 0x82 nanoslp syz-executor 55234 201185 56563 0 7 0x2 syz-executor 47548 29846 56563 0 2 0x482 syz-executor 88202 314294 56563 0 3 0x82 nanoslp syz-executor 69962 414122 56563 0 3 0x82 nanoslp syz-executor 56563 513896 28404 0 3 0x82 kqread syz-executor 28404 234010 34881 0 3 0x10008a sigsusp ksh 34881 146772 77383 0 3 0x98 kqread sshd-session 77383 489245 55616 0 3 0x92 kqread sshd-session 55616 39185 1 0 3 0x88 kqread sshd 43959 395654 6081 74 3 0x1100092 bpf pflogd 6081 429794 1 0 3 0x80 sbwait pflogd 4184 68093 8904 73 3 0x1100090 kqread syslogd 8904 40898 1 0 3 0x100082 sbwait syslogd 56437 217045 1 0 3 0x100080 kqread resolvd 58250 10257 35309 77 3 0x100092 kqread dhcpleased 56026 209635 35309 77 3 0x100092 kqread dhcpleased 35309 256957 1 0 3 0x80 kqread dhcpleased 34587 512573 0 0 3 0x14200 bored smr 24178 3534 0 0 3 0x14200 pgzero zerothread 5965 329925 0 0 3 0x14200 aiodoned aiodoned 44941 78720 0 0 3 0x14200 syncer update 22517 144913 0 0 3 0x14200 cleaner cleaner 98795 110787 0 0 3 0x14200 reaper reaper 1783 46729 0 0 3 0x14200 pgdaemon pagedaemon 67523 146370 0 0 3 0x14200 bored viomb 98054 334539 0 0 3 0x40014200 acpi0 acpi0 35713 412866 0 0 3 0x40014200 idle1 88177 332500 0 0 3 0x14200 bored softnet3 22604 161398 0 0 3 0x14200 bored softnet2 82856 435293 0 0 3 0x14200 bored softnet1 72824 278519 0 0 3 0x14200 bored softnet0 65076 387376 0 0 3 0x14200 bored systqmp 36186 167208 0 0 3 0x14200 bored systq 83233 424433 0 0 3 0x14200 tmoslp softclockmp 74620 216251 0 0 2 0x40014200 softclock 72376 31877 0 0 3 0x40014200 idle0 1 165723 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 28541 (syz-executor) thread 0xffff8000371f2a58 (248985) exclusive rwlock amaplk r = 0 (0xfffffd805ffdfcc0) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 uvm_map_lock_entry+0x4c sys/uvm/uvm_map.c:464 #2 uvm_fault_unwire_locked+0x253 sys/uvm/uvm_fault.c:1713 #3 uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 #4 kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] #4 kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 #5 sys_sysctl+0x425 #6 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #6 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 shared rwlock vmmaplk r = 0 (0xfffffd806b7c1658) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 uvm_fault_unwire+0x3e sys/uvm/uvm_fault.c:1656 #2 kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] #2 kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 #3 sys_sysctl+0x425 #4 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #4 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8363bb40) #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 sleep_finish+0x2f2 sys/kern/kern_synch.c:425 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1819 #6 uvm_fault_check+0x49 sys/uvm/uvm_fault.c:672 #7 uvm_fault+0xf5 sys/uvm/uvm_fault.c:600 #8 uvm_fault_wire+0x73 sys/uvm/uvm_fault.c:1636 #9 sysctl_vslock+0x109 sys/kern/kern_sysctl.c:191 #10 kern_sysctl+0x1ad sys/kern/kern_sysctl.c:504 #11 sys_sysctl+0x425 #12 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #12 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #13 Xsyscall+0x128 exclusive rwlock sysctllk r = 0 (0xffffffff83431240) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 sysctl_vslock+0x45 sys/kern/kern_sysctl.c:181 #3 kern_sysctl+0x1ad sys/kern/kern_sysctl.c:504 #4 sys_sysctl+0x425 #5 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #5 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10210 11197K 11400K 166960K 11690 0 pcb 17 12K 12K 166960K 78 0 rtable 241 7K 7K 166960K 374 0 pf 37 18K 18K 166960K 54 0 ifaddr 44 7K 7K 166960K 48 0 ifgroup 57 2K 2K 166960K 64 0 sysctl 3 0K 0K 166960K 5 0 counters 66 36K 36K 166960K 70 0 ioctlops 0 0K 4K 166960K 1527 0 iov 0 0K 24K 166960K 54 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1428 90K 90K 166960K 1590 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 93K 166960K 354 0 sigio 0 0K 0K 166960K 5 0 proc 72 91K 128K 166960K 573 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 22 0 in_multi 99 7K 7K 166960K 106 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 456 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 277 78K 81K 166960K 4927 0 UVM aobj 12 2K 2K 166960K 12 0 pinsyscall 43 86K 102K 166960K 1444 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 24 0 NDP 13 0K 2K 166960K 31 0 temp 50 6820K 6899K 166960K 23964 0 kqueue 15 24K 28K 166960K 66 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 24 0 0 1 0 1 1 0 8 0 rtpcb 120 48 0 45 1 0 1 1 0 8 0 rtentry 112 116 0 4 4 0 4 4 0 8 0 unpcb 144 154 0 128 2 0 2 2 0 8 1 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 149 0 143 4 0 4 4 0 8 2 arp 120 19 0 1 1 0 1 1 0 8 0 inpcb 336 452 0 443 5 0 5 5 0 8 4 nd6 136 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1168 2 0 1 1 0 1 1 0 8 0 pfstscr 40 1 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 pfstitem 24 30 0 0 1 0 1 1 0 8 0 pfstkey 128 30 0 0 1 0 1 1 0 8 0 pfstate 376 29 0 0 3 0 3 3 0 8 0 pfrule 1344 23 0 17 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 455 0 2 29 0 29 29 0 8 0 art_table 32 457 0 2 4 0 4 4 0 8 0 art_node 16 115 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 9 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1951 0 445 95 0 95 95 0 8 0 ffsino 272 1951 0 445 102 0 102 102 0 8 0 nchpl 144 2463 0 770 63 0 63 63 0 8 0 uvmvnodes 80 2209 0 0 46 0 46 46 0 8 0 vnodes 216 2209 0 0 123 0 123 123 0 8 0 namei 1024 7836 0 7836 2 0 2 2 0 8 2 percpumem 16 49 0 2 1 0 1 1 0 8 0 kstatmem 264 30 0 4 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 7702 0 7702 9 1 8 8 1 8 8 plimitpl 152 55 0 35 1 0 1 1 0 8 0 sigapl 424 658 0 607 8 1 7 7 0 8 1 futexpl 64 3647 0 3637 1 0 1 1 0 8 0 knotepl 120 374 0 0 12 0 12 12 0 8 0 kqueuepl 216 116 0 104 3 0 3 3 0 8 2 pipepl 320 133 0 106 3 0 3 3 0 8 0 fdescpl 496 639 0 607 5 0 5 5 0 8 0 filepl 152 2994 0 2690 15 0 15 15 0 8 1 lockfpl 104 89 0 87 1 0 1 1 0 8 0 lockfspl 48 38 0 36 1 0 1 1 0 8 0 sessionpl 144 26 0 17 1 0 1 1 0 8 0 pgrppl 48 103 0 86 1 0 1 1 0 8 0 ucredpl 104 331 0 315 1 0 1 1 0 8 0 zombiepl 144 608 0 607 1 0 1 1 0 8 0 processpl 1160 658 0 607 5 0 5 5 0 8 1 procpl 648 1042 0 971 8 1 7 7 0 8 0 sosppl 168 1 0 0 1 0 1 1 0 8 0 sockpl 664 659 0 621 7 0 7 7 0 8 3 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 139 0 0 18 0 18 18 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mtagpl 96 13 0 0 1 0 1 1 0 8 0 mbufpl 256 153 0 0 10 0 10 10 0 8 0 bufpl 280 2972 0 97 206 0 206 206 0 8 0 anonpl 24 167268 0 161968 82 1 81 81 0 185 40 amapchunkpl 152 15650 0 14978 26 0 26 26 0 158 0 amappl16 200 4579 0 4524 32 7 25 28 0 8 18 amappl15 192 5 0 5 1 1 0 1 0 8 0 amappl14 184 130 0 118 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 1286 0 1254 4 1 3 3 0 8 1 amappl11 160 72 0 58 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 142 0 142 1 1 0 1 0 8 0 amappl8 136 23 0 20 1 0 1 1 0 8 0 amappl7 128 108 0 96 1 0 1 1 0 8 0 amappl6 120 160 0 158 1 0 1 1 0 8 0 amappl5 112 138 0 127 1 0 1 1 0 8 0 amappl4 104 319 0 298 1 0 1 1 0 8 0 amappl3 96 3001 0 2887 3 0 3 3 0 8 0 amappl2 88 942 0 857 3 0 3 3 0 8 0 amappl1 80 8988 0 8416 16 1 15 15 0 8 1 amappl 88 4519 0 4306 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 11 0 0 1 0 1 1 0 8 0 uaddrrnd 24 639 0 607 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 639 0 607 1 0 1 1 0 8 0 vmmpekpl 168 6837 0 6805 2 0 2 2 0 8 0 vmmpepl 168 48646 0 46657 106 0 106 106 0 357 14 vmsppl 448 638 0 607 6 1 5 5 0 8 1 rwobjpl 56 20359 0 17128 51 1 50 50 0 8 3 pdppl 4096 1285 0 1214 99 28 71 85 0 8 0 pvpl 32 20570 0 0 166 0 166 166 0 265 0 pmappl 248 638 0 607 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 385 0 31 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830f4214) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830a7bff,ffffffff8304c66a,69e,ffffffff8300df45) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b7c1560,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371df4f4,5,20000100,ffff8000371df528,0,37,372ed48eabfe420b) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000371f2a58,ffff8000371df660,ffff8000371df5b0) at sys_sysctl+0x425 syscall(ffff8000371df660) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371df660) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa89e9d241b0, count: -9 ddb{0}> machine ddbcpu 1