login: panic: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1604 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 515136 85721 32767 0x10 0x4000000 1 syz-executor.0 * 81555 85721 32767 0x10 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8244a0ca) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824bdd78,ffffffff8241eef8,644,ffffffff8242d54d) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_fault_unwire_locked(fffffd807f008000,20000000,20029000) at uvm_fault_unwire_locked+0x29b sys/uvm/uvm_fault.c:1601 uvm_fault_unwire(fffffd807f008000,20000000,20029000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1559 sys_sysctl(ffff8000fffee2a0,ffff80002127a1c8,ffff80002127a220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 syscall(ffff80002127a290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002127a290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2e82c152740, count: 7 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 "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1604 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8244a0ca) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824bdd78,ffffffff8241eef8,644,ffffffff8242d54d) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_fault_unwire_locked(fffffd807f008000,20000000,20029000) at uvm_fault_unwire_locked+0x29b sys/uvm/uvm_fault.c:1601 uvm_fault_unwire(fffffd807f008000,20000000,20029000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1559 sys_sysctl(ffff8000fffee2a0,ffff80002127a1c8,ffff80002127a220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 syscall(ffff80002127a290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002127a290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2e82c152740, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021279f60 rbx 0xffffffff82773bff cpu_info_full_primary+0x2bff rdx 0x8b rcx 0x2 rax 0x9f r8 0xffffffff8108bbb4 kprintf+0x144 r9 0x1 r10 0x511c13fa81ffbc64 r11 0x28c3c52033bbfcf5 r12 0xffffffff82773a00 cpu_info_full_primary+0x2a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81c45bc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021279f50 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=81555 stat=onproc flags process=10 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffeea80,0xffffffff82961198 process=0xffff8000ffff0010 user=0xffff800021275000, vmspace=0xfffffd807f008000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85721 21940 33335 32767 2 0x10 syz-executor.0 85721 499978 33335 32767 3 0x4000090 fsleep syz-executor.0 85721 515136 33335 32767 7 0x4000010 syz-executor.0 *85721 81555 33335 32767 7 0x4000010 syz-executor.0 33335 117530 95023 32767 2 0x490 syz-executor.0 95023 52232 33606 0 3 0x82 wait syz-executor.0 33606 167468 13276 0 2 0x482 syz-execprog 33606 140846 13276 0 2 0x4000482 syz-execprog 33606 239467 13276 0 3 0x4000082 thrsleep syz-execprog 33606 207849 13276 0 3 0x4000082 kqread syz-execprog 33606 299020 13276 0 3 0x4000082 thrsleep syz-execprog 33606 190463 13276 0 3 0x4000082 thrsleep syz-execprog 33606 212297 13276 0 3 0x4000082 thrsleep syz-execprog 33606 416408 13276 0 3 0x4000082 thrsleep syz-execprog 13276 297828 21725 0 3 0x10008a sigsusp ksh 21725 415768 17721 0 3 0x9a kqread sshd 80373 396012 1 0 3 0x100083 ttyin getty 17721 30713 1 0 3 0x88 kqread sshd 91544 417527 87579 73 3 0x100090 kqread syslogd 87579 387658 1 0 3 0x100082 netio syslogd 35709 140975 1 0 3 0x100080 kqread resolvd 8176 97915 38259 77 3 0x100092 kqread dhcpleased 97825 429944 38259 77 3 0x100092 kqread dhcpleased 38259 26427 1 0 3 0x80 kqread dhcpleased 50692 294960 0 0 3 0x14200 bored smr 98210 76187 0 0 2 0x14200 zerothread 36214 226193 0 0 3 0x14200 aiodoned aiodoned 12606 382831 0 0 3 0x14200 syncer update 74565 79404 0 0 3 0x14200 cleaner cleaner 36098 313989 0 0 3 0x14200 reaper reaper 90926 160454 0 0 3 0x14200 pgdaemon pagedaemon 26991 259918 0 0 3 0x14200 bored viomb 33218 383061 0 0 3 0x40014200 acpi0 acpi0 31617 210989 0 0 3 0x40014200 idle1 44321 401123 0 0 3 0x14200 bored softnet 78665 299265 0 0 3 0x14200 bored systqmp 76242 115483 0 0 3 0x14200 bored systq 16757 157405 0 0 3 0x40014200 bored softclock 94113 501119 0 0 3 0x40014200 idle0 1 291096 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 0: exclusive mutex &uvm.pageqlock r = 0 (0xffffffff829f9690) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_fault_unwire_locked+0x5d sys/uvm/uvm_fault.c:1590 #4 uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1559 #5 sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 Process 85721 (syz-executor.0) thread 0xffff8000fffeea80 (515136) exclusive rwlock futex r = 0 (0xffffffff827ef040) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 sys_futex+0x5c sys/kern/sys_futex.c:108 #2 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #2 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #3 Xsyscall+0x128 Process 85721 (syz-executor.0) thread 0xffff8000fffee2a0 (81555) shared rwlock vmmaplk r = 0 (0xfffffd807f008018) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:1558 #2 sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 #3 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8296a3e0) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 __mp_acquire_count+0x4c sys/kern/kern_lock.c:227 #2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416 #3 sleep_finish+0x1b2 sys/kern/kern_synch.c:433 #4 rw_enter+0x35b sys/kern/kern_rwlock.c:286 #5 vm_map_lock_ln+0xda sys/uvm/uvm_map.c:5422 #6 uvmfault_lookup+0xb9 sys/uvm/uvm_fault.c:1695 #7 uvm_fault_check+0x607 uvmfault_amapcopy sys/uvm/uvm_fault.c:236 [inline] #7 uvm_fault_check+0x607 sys/uvm/uvm_fault.c:712 #8 uvm_fault+0x102 sys/uvm/uvm_fault.c:601 #9 uvm_fault_wire+0x63 sys/uvm/uvm_fault.c:1538 #10 sys_sysctl+0x2d8 sys/kern/kern_sysctl.c:241 #11 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #11 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #12 Xsyscall+0x128 exclusive rwlock sysctllk r = 0 (0xffffffff827670f0) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 rw_enter+0x3e2 sys/kern/kern_rwlock.c:310 #2 sys_sysctl+0x1b3 sys/kern/kern_sysctl.c:234 #3 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #4 Xsyscall+0x128 exclusive mutex &uvm.pageqlock r = 0 (0xffffffff829f9690) #0 witness_lock+0x4b0 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4b0 sys/kern/subr_witness.c:1182 #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_fault_unwire_locked+0x5d sys/uvm/uvm_fault.c:1590 #4 uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1559 #5 sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 #6 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10106 6351K 6379K 78643K 11196 0 pcb 13 8K 8K 78643K 13 0 rtable 84 2K 3K 78643K 138 0 ifaddr 32 8K 8K 78643K 32 0 counters 42 33K 33K 78643K 42 0 ioctlops 0 0K 2K 78643K 26 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1182 74K 74K 78643K 1187 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 4 12K 16K 78643K 52 0 proc 56 74K 87K 78643K 251 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 22 1K 1K 78643K 22 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 2K 78643K 349 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 140 14K 14K 78643K 2233 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 4 0K 0K 78643K 6 0 temp 23 4181K 4245K 78643K 2049 0 kqueue 12 18K 18K 78643K 21 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 19 0 16 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 128 33 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 304 29 0 23 1 0 1 1 0 8 0 nd6 48 3 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 145 0 0 10 0 10 10 0 8 0 art_table 32 146 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1460 0 61 88 0 88 88 0 8 0 ffsino 272 1460 0 61 94 0 94 94 0 8 0 nchpl 144 1716 0 111 60 0 60 60 0 8 0 uvmvnodes 72 1469 0 0 27 0 27 27 0 8 0 vnodes 224 1469 0 0 87 0 87 87 0 8 0 namei 1024 4424 0 4424 1 0 1 1 0 8 1 percpumem 16 33 0 0 1 0 1 1 0 8 0 scxspl 216 4855 0 4855 2 1 1 2 0 8 1 plimitpl 152 17 0 9 1 0 1 1 0 8 0 sigapl 424 281 0 251 4 0 4 4 0 8 0 futexpl 64 111 0 109 1 0 1 1 0 8 0 knotepl 112 56 0 0 2 0 2 2 0 8 0 kqueuepl 216 17 0 9 1 0 1 1 0 8 0 pipepl 336 76 0 69 1 0 1 1 0 8 0 fdescpl 496 267 0 251 3 0 3 3 0 8 0 filepl 152 1106 0 1041 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 67 0 56 1 0 1 1 0 8 0 zombiepl 144 251 0 251 1 0 1 1 0 8 1 processpl 1064 281 0 251 3 0 3 3 0 8 0 procpl 672 365 0 325 4 0 4 4 0 8 0 sockpl 480 81 0 59 3 0 3 3 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 80 0 0 10 0 10 10 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 134 0 0 9 0 9 9 0 8 0 bufpl 280 3361 0 153 230 0 230 230 0 8 0 anonpl 24 45747 0 41901 32 2 30 30 0 186 6 amapchunkpl 152 4591 0 4255 16 2 14 15 0 158 1 amappl16 200 200 0 137 5 1 4 4 0 8 0 amappl15 192 68 0 62 1 0 1 1 0 8 0 amappl14 184 3 0 2 1 0 1 1 0 8 0 amappl13 176 22 0 21 1 0 1 1 0 8 0 amappl12 168 57 0 53 1 0 1 1 0 8 0 amappl11 160 73 0 60 1 0 1 1 0 8 0 amappl10 152 10 0 9 2 1 1 1 0 8 0 amappl9 144 227 0 225 1 0 1 1 0 8 0 amappl8 136 302 0 286 1 0 1 1 0 8 0 amappl7 128 43 0 38 1 0 1 1 0 8 0 amappl6 120 50 0 43 1 0 1 1 0 8 0 amappl5 112 190 0 174 1 0 1 1 0 8 0 amappl4 104 561 0 538 1 0 1 1 0 8 0 amappl3 96 205 0 186 1 0 1 1 0 8 0 amappl2 88 397 0 355 2 0 2 2 0 8 1 amappl1 80 8131 0 7710 12 0 12 12 0 8 3 amappl 88 1941 0 1832 3 0 3 3 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 64 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 267 0 251 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 267 0 251 1 0 1 1 0 8 0 vmmpekpl 168 6942 0 6927 1 0 1 1 0 8 0 vmmpepl 168 26580 0 25438 61 0 61 61 0 357 11 vmsppl 368 266 0 251 2 0 2 2 0 8 0 rwobjpl 56 8046 0 7342 14 0 14 14 0 8 3 pdppl 4096 542 0 502 56 14 42 42 0 8 2 pvpl 32 159866 0 153062 132 0 132 132 0 265 77 pmappl 224 266 0 251 1 0 1 1 0 8 0 extentpl 40 58 0 40 1 0 1 1 0 8 0 phpool 112 281 0 16 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff8244a0ca) at panic+0x177 sys/kern/subr_prf.c:202 __assert(ffffffff824bdd78,ffffffff8241eef8,644,ffffffff8242d54d) at __assert+0x25 sys/kern/subr_prf.c:161 uvm_fault_unwire_locked(fffffd807f008000,20000000,20029000) at uvm_fault_unwire_locked+0x29b sys/uvm/uvm_fault.c:1601 uvm_fault_unwire(fffffd807f008000,20000000,20029000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1559 sys_sysctl(ffff8000fffee2a0,ffff80002127a1c8,ffff80002127a220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:255 syscall(ffff80002127a290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002127a290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2e82c152740, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8296a1d8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8296a1d8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 sleep_setup(ffff800021274330,ffff8000fffeea80,120,ffffffff824489e8,0) at sleep_setup+0xd3 sys/kern/kern_synch.c:370 rwsleep(ffff8000fffeea80,ffffffff827ef030,120,ffffffff824489e8,0) at rwsleep+0xc1 sys/kern/kern_synch.c:311 futex_wait(2e7e9ac2700,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff8000fffeea80,ffff8000212744c0,ffff800021274520) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff800021274590) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021274590) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2e8c251cdb0, count: 5 ddb{1}> trace x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff8296a1d8) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8296a1d8) at __mp_lock+0x122 sys/kern/kern_lock.c:147 sleep_setup(ffff800021274330,ffff8000fffeea80,120,ffffffff824489e8,0) at sleep_setup+0xd3 sys/kern/kern_synch.c:370 rwsleep(ffff8000fffeea80,ffffffff827ef030,120,ffffffff824489e8,0) at rwsleep+0xc1 sys/kern/kern_synch.c:311 futex_wait(2e7e9ac2700,1,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff8000fffeea80,ffff8000212744c0,ffff800021274520) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff800021274590) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021274590) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2e8c251cdb0, count: -10 ddb{1}>