panic: kernel diagnostic assertion "va >= entry->start" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1694 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *306297 72924 32767 0x10 0x4000000 0K syz-executor 392312 27723 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830fa45a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830adcec,ffffffff830e5ee7,69e,ffffffff83012595) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000ffff76e0,ffff8000371e7e00,ffff8000371e7d50) at sys_sysctl+0x425 syscall(ffff8000371e7e00) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e7e00) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xadbe0b77450, 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/setuid/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(ffffffff830fa45a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830adcec,ffffffff830e5ee7,69e,ffffffff83012595) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000ffff76e0,ffff8000371e7e00,ffff8000371e7d50) at sys_sysctl+0x425 syscall(ffff8000371e7e00) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e7e00) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xadbe0b77450, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000371e7920 rbx 0xffffffff83498dbf cpu_info_full_primary+0x2dbf rdx 0 rcx 0xffff8000ffff76e0 rax 0xffffffff83497ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2022afd8bbb8dbe5 r11 0x3d74342663686b12 r12 0xffffffff83498bc0 cpu_info_full_primary+0x2bc0 r13 0 r14 0 r15 0x1 rip 0xffffffff812614f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000371e7910 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor) tid=306297 pid=72924 tcnt=4 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=63, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff6528,0xffff8000ffff62b0 process=0xffff8000371cd6c8 user=0xffff8000371e2000, vmspace=0xfffffd806b5d0c60 estcpu=13, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72924 32379 66386 32767 2 0x10 syz-executor 72924 240084 66386 32767 2 0x4000010 syz-executor *72924 306297 66386 32767 7 0x4000010 syz-executor 72924 496942 66386 32767 2 0x4000010 syz-executor 60470 335189 89969 32767 2 0x490 syz-executor 60470 257279 89969 32767 3 0x4000090 msgwait syz-executor 60470 189218 89969 32767 3 0x4000090 msgwait syz-executor 60470 2692 89969 32767 3 0x4000090 fsleep syz-executor 29371 52457 30198 32767 3 0x90 nanoslp syz-executor 29371 295974 30198 32767 3 0x4000090 netcon syz-executor 29371 189606 30198 32767 3 0x4000090 fsleep syz-executor 19512 516445 0 0 3 0x14200 bored sosplice 65591 9394 67893 32767 3 0x90 nanoslp syz-executor 65591 452469 67893 32767 3 0x4000090 kqpoll syz-executor 65591 508426 67893 32767 3 0x4000090 fsleep syz-executor 89969 249571 98152 32767 3 0x90 nanoslp syz-executor 30198 445856 75769 32767 3 0x90 nanoslp syz-executor 33492 197058 36371 32767 2 0x490 syz-executor 19382 205158 90676 32767 2 0x10 syz-executor 67893 426328 65805 32767 3 0x90 nanoslp syz-executor 1078 286120 77324 32767 2 0x10 syz-executor 11402 113638 10234 32767 2 0x10 syz-executor 66386 418251 58969 32767 3 0x90 nanoslp syz-executor 90676 169726 7081 0 3 0x82 wait syz-executor 36371 47042 7081 0 3 0x82 wait syz-executor 98152 313344 7081 0 3 0x82 wait syz-executor 77324 157625 7081 0 3 0x82 wait syz-executor 58969 36310 7081 0 3 0x82 wait syz-executor 65805 383547 7081 0 3 0x82 wait syz-executor 10234 37492 7081 0 3 0x82 wait syz-executor 75769 401891 7081 0 3 0x82 wait syz-executor 7081 326978 87759 0 3 0x82 kqread syz-executor 87759 373277 58474 0 3 0x10008a sigsusp ksh 58474 47563 31431 0 3 0x98 kqread sshd-session 31431 91739 76165 0 3 0x92 kqread sshd-session 76707 211078 1 0 3 0x100083 ttyin getty 76165 467068 1 0 3 0x88 kqread sshd 36639 392953 77310 73 3 0x1100090 kqread syslogd 77310 345376 1 0 3 0x100082 sbwait syslogd 22391 58605 1 0 3 0x100080 kqread resolvd 63491 197188 68799 77 3 0x100092 kqread dhcpleased 12027 375850 68799 77 3 0x100092 kqread dhcpleased 68799 451452 1 0 3 0x80 kqread dhcpleased 4039 444741 0 0 3 0x14200 bored smr 20042 127632 0 0 2 0x14200 zerothread 80164 284796 0 0 3 0x14200 aiodoned aiodoned 32821 427901 0 0 3 0x14200 syncer update 38781 10648 0 0 3 0x14200 cleaner cleaner 27723 392312 0 0 7 0x14200 reaper 43744 128943 0 0 3 0x14200 pgdaemon pagedaemon 1644 509498 0 0 3 0x14200 bored viomb 72746 358357 0 0 3 0x40014200 acpi0 acpi0 90566 2747 0 0 3 0x40014200 idle1 48966 358677 0 0 3 0x14200 bored softnet3 58528 7665 0 0 3 0x14200 bored softnet2 90744 254903 0 0 3 0x14200 bored softnet1 59411 350825 0 0 3 0x14200 bored softnet0 74431 341350 0 0 3 0x14200 bored systqmp 9770 513083 0 0 3 0x14200 bored systq 70252 84876 0 0 2 0x14200 softclockmp 80842 230263 0 0 3 0x40014200 tmoslp softclock 89611 284193 0 0 3 0x40014200 idle0 1 239975 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd8008a139f8) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 mtx_enter_try+0x178 #2 mtx_enter+0x60 sys/kern/kern_lock.c:239 #3 pmap_remove_ptes+0x297 sys/arch/amd64/amd64/pmap.c:1711 #4 pmap_do_remove+0x533 sys/arch/amd64/amd64/pmap.c:1920 #5 uvm_unmap_kill_entry_withlock+0x26a sys/uvm/uvm_map.c:1863 #6 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2496 #7 uvmspace_free+0xcd sys/uvm/uvm_map.c:3420 #8 reaper+0x246 sys/kern/kern_exit.c:477 #9 proc_trampoline+0x10 uvm_fault(0xfffffd806b5d0c60, 0x200, 0, 1) -> e kernel: page fault trap, code=0 Faulted in DDB; continuing... ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10183 11047K 11059K 166960K 11261 0 pcb 17 12K 12K 166960K 17 0 rtable 236 6K 6K 166960K 349 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 counters 64 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 29 0 iov 0 0K 16K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1365 86K 86K 166960K 1384 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 22 81K 129K 166960K 245 0 proc 61 91K 115K 166960K 502 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 24 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 346 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 234 73K 88K 166960K 3597 0 UVM aobj 5 2K 2K 166960K 6 0 pinsyscall 43 86K 114K 166960K 1228 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 11 0 NDP 11 0K 2K 166960K 27 0 temp 39 6815K 6879K 166960K 4060 0 kqueue 13 20K 28K 166960K 37 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 107 0 104 3 0 3 3 0 8 2 rtentry 112 112 0 1 4 0 4 4 0 8 0 unpcb 144 218 0 203 6 0 6 6 0 8 5 syncache 336 3 0 3 2 1 1 1 0 8 1 tcpcb 808 79 0 68 5 0 5 5 0 8 3 arp 120 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 1 1 0 1 1 0 8 0 inpcb 336 282 0 261 7 0 7 7 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 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 454 0 0 29 0 29 29 0 8 0 art_table 32 455 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 3 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1693 0 189 95 0 95 95 0 8 0 ffsino 272 1693 0 189 101 0 101 101 0 8 0 nchpl 144 2032 0 362 63 0 63 63 0 8 0 uvmvnodes 80 1806 0 0 37 0 37 37 0 8 0 vnodes 216 1806 0 0 101 0 101 101 0 8 0 namei 1024 6085 0 6084 2 0 2 2 0 8 1 percpumem 16 46 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5984 0 5984 3 1 2 2 1 8 2 plimitpl 152 50 0 26 2 0 2 2 0 8 1 sigapl 424 516 0 462 8 0 8 8 0 8 1 futexpl 64 1621 0 1618 1 0 1 1 0 8 0 knotepl 120 62 0 0 2 0 2 2 0 8 0 kqueuepl 216 49 0 39 1 0 1 1 0 8 0 pipepl 320 109 0 82 3 0 3 3 0 8 0 fdescpl 496 497 0 463 7 1 6 6 0 8 0 filepl 152 2377 0 2127 15 0 15 15 0 8 4 lockfpl 104 56 0 54 1 0 1 1 0 8 0 lockfspl 48 25 0 23 1 0 1 1 0 8 0 sessionpl 144 21 0 5 1 0 1 1 0 8 0 pgrppl 48 29 0 5 1 0 1 1 0 8 0 ucredpl 104 177 0 158 1 0 1 1 0 8 0 zombiepl 144 463 0 462 1 0 1 1 0 8 0 processpl 1160 516 0 462 5 0 5 5 0 8 0 procpl 648 695 0 631 7 0 7 7 0 8 1 sosppl 168 3 0 0 1 0 1 1 0 8 0 sockpl 664 610 0 571 14 0 14 14 0 8 9 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 137 0 0 18 0 18 18 0 8 0 mcl2k 2048 13 0 0 2 0 2 2 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 188 0 0 12 0 12 12 0 8 0 bufpl 280 2353 0 95 162 0 162 162 0 8 0 anonpl 24 174700 0 171556 34 0 34 34 0 185 11 amapchunkpl 152 12746 0 12242 31 0 31 31 0 158 7 amappl16 200 4784 0 4768 5 0 5 5 0 8 4 amappl15 192 8 0 8 1 0 1 1 0 8 1 amappl14 184 104 0 94 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 0 1 1 0 8 1 amappl12 168 1104 0 1070 2 0 2 2 0 8 0 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 141 0 141 1 1 0 1 0 8 0 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 93 0 83 1 0 1 1 0 8 0 amappl6 120 172 0 170 1 0 1 1 0 8 0 amappl5 112 128 0 119 1 0 1 1 0 8 0 amappl4 104 279 0 263 1 0 1 1 0 8 0 amappl3 96 2166 0 2073 3 0 3 3 0 8 0 amappl2 88 752 0 672 2 0 2 2 0 8 0 amappl1 80 7420 0 6895 13 0 13 13 0 8 1 amappl 88 3257 0 3077 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 5 0 1 1 0 1 1 0 8 0 uaddrrnd 24 497 0 463 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 497 0 463 1 0 1 1 0 8 0 vmmpekpl 168 5258 0 5225 2 0 2 2 0 8 0 vmmpepl 168 39282 0 37437 91 0 91 91 0 357 3 vmsppl 448 496 0 463 6 0 6 6 0 8 1 rwobjpl 56 17628 0 14995 39 1 38 38 0 8 0 pdppl 4096 1001 0 926 113 30 83 99 0 8 8 pvpl 32 11856 0 0 97 1 96 96 0 265 0 pmappl 248 496 0 463 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 401 0 33 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(ffffffff830fa45a) at panic+0x1e5 sys/kern/subr_prf.c:198 __assert(ffffffff830adcec,ffffffff830e5ee7,69e,ffffffff83012595) at __assert+0x29 uvm_fault_unwire_locked(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire_locked+0x4b4 uvm_fault_unwire(fffffd806b5d0c60,20000000,20011000) at uvm_fault_unwire+0x55 sys/uvm/uvm_fault.c:1657 kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sysctl_vsunlock sys/kern/kern_sysctl.c:209 [inline] kern_sysctl(ffff8000371e7c94,5,20000100,ffff8000371e7cc8,0,67,2a7063a13dffe891) at kern_sysctl+0x500 sys/kern/kern_sysctl.c:508 sys_sysctl(ffff8000ffff76e0,ffff8000371e7e00,ffff8000371e7d50) at sys_sysctl+0x425 syscall(ffff8000371e7e00) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371e7e00) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xadbe0b77450, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1c kd_curproc sys/dev/kcov.c:583 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1c sys/dev/kcov.c:153 __mp_lock(ffffffff83509b38) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83509b38) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 reaper(ffff800029fd8518) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: 9 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1c kd_curproc sys/dev/kcov.c:583 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x1c sys/dev/kcov.c:153 __mp_lock(ffffffff83509b38) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83509b38) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 reaper(ffff800029fd8518) at reaper+0x24b sys/kern/kern_exit.c:478 end trace frame: 0x0, count: -6