login: panic: kernel diagnostic assertion "next != NULL && next->start <= entry->end" failed: file "/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c", line 1643
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
256887 87958 32767 0x10 0x4000000 1 syz-executor.4
*509015 87958 32767 0x10 0x4000000 0K syz-executor.4
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82576769) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825ea40b,ffffffff82549618,66b,ffffffff82558d47) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002134bcf0,ffff8000212f41c8,ffff8000212f4220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212f4290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212f4290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x510d4717290, 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 1643
ddb{0}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440
panic(ffffffff82576769) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825ea40b,ffffffff82549618,66b,ffffffff82558d47) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002134bcf0,ffff8000212f41c8,ffff8000212f4220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212f4290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212f4290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x510d4717290, count: -8
ddb{0}> show registers
rdi 0
rsi 0x1
rbp 0xffff8000212f3f50
rbx 0xffffffff828ebbff cpu_info_full_primary+0x2bff
rdx 0x3fd
rcx 0
rax 0x9f
r8 0x101010101010101
r9 0x8080808080808080
r10 0xa3412523b639743c
r11 0x92afa2c8e7f2695d
r12 0xffffffff828eba00 cpu_info_full_primary+0x2a00
r13 0
r14 0
r15 0x1
rip 0xffffffff82285cc8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000212f3f40
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{0}> show proc
PROC (syz-executor.4) pid=509015 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=36, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff5a48,0xffffffff82abbde8
process=0xffff8000fffeedd8 user=0xffff8000212ef000, vmspace=0xfffffd806b03b5d8
estcpu=36, cpticks=3, pctcpu=0.0
user=0, sys=2, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
49478 149586 39035 32767 2 0x490 syz-executor.3
49478 108199 39035 32767 3 0x4000090 fsleep syz-executor.3
87958 480476 13052 32767 2 0x490 syz-executor.4
87958 256887 13052 32767 7 0x4000010 syz-executor.4
*87958 509015 13052 32767 7 0x4000010 syz-executor.4
43823 53225 93326 32767 2 0x490 syz-executor.7
43823 93171 93326 32767 3 0x4000090 fsleep syz-executor.7
42541 121216 76846 32767 2 0x490 syz-executor.6
18262 446702 95520 32767 3 0x90 piperd syz-executor.2
76846 456026 25794 0 3 0x82 wait syz-executor.6
60953 63772 92446 32767 2 0x490 syz-executor.5
95520 143419 25794 0 3 0x82 wait syz-executor.2
13052 239450 5324 32767 2 0x490 syz-executor.4
39035 70198 29934 32767 2 0x490 syz-executor.3
93326 491215 50992 32767 2 0x490 syz-executor.7
92446 188246 25794 0 3 0x82 wait syz-executor.5
5324 88290 25794 0 3 0x82 wait syz-executor.4
29934 470958 25794 0 3 0x82 wait syz-executor.3
50992 397134 25794 0 3 0x82 wait syz-executor.7
29474 25487 96521 32767 2 0x490 syz-executor.1
26819 320282 7579 32767 3 0x90 piperd syz-executor.0
96521 492144 25794 0 3 0x82 wait syz-executor.1
7579 475980 25794 0 3 0x82 wait syz-executor.0
25794 134900 96203 0 3 0x82 kqread syz-execprog
25794 329711 96203 0 2 0x4000482 syz-execprog
25794 512329 96203 0 3 0x4000082 thrsleep syz-execprog
25794 313980 96203 0 3 0x4000082 thrsleep syz-execprog
25794 271303 96203 0 3 0x4000082 thrsleep syz-execprog
25794 306763 96203 0 3 0x4000082 thrsleep syz-execprog
25794 333233 96203 0 3 0x4000082 thrsleep syz-execprog
25794 119128 96203 0 3 0x4000082 thrsleep syz-execprog
25794 248306 96203 0 3 0x4000082 thrsleep syz-execprog
25794 273215 96203 0 3 0x4000082 thrsleep syz-execprog
96203 344118 55086 0 3 0x10008a sigsusp ksh
55086 398285 32653 0 3 0x9a kqread sshd
83467 167539 1 0 3 0x100083 ttyin getty
32653 496346 1 0 3 0x88 kqread sshd
97861 24658 18659 73 3 0x1100090 kqread syslogd
18659 102426 1 0 3 0x100082 netio syslogd
78224 27394 1 0 3 0x100080 kqread resolvd
60789 14943 8965 77 3 0x100092 kqread dhcpleased
49017 76617 8965 77 3 0x100092 kqread dhcpleased
8965 299672 1 0 3 0x80 kqread dhcpleased
78176 349648 0 0 3 0x14200 bored smr
75410 78379 0 0 2 0x14200 zerothread
6508 57518 0 0 3 0x14200 aiodoned aiodoned
51555 123647 0 0 3 0x14200 syncer update
97169 493229 0 0 3 0x14200 cleaner cleaner
69576 143683 0 0 3 0x14200 reaper reaper
34778 435491 0 0 3 0x14200 pgdaemon pagedaemon
15882 167846 0 0 3 0x14200 bored viomb
86686 213294 0 0 3 0x40014200 acpi0 acpi0
92569 42955 0 0 3 0x40014200 idle1
63748 444587 0 0 3 0x14200 bored softnet
94070 305848 0 0 3 0x14200 bored systqmp
67390 161389 0 0 3 0x14200 bored systq
89081 118457 0 0 3 0x40014200 bored softclock
794 426475 0 0 3 0x40014200 idle0
1 206153 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 87958 (syz-executor.4) thread 0xffff80002134bcf0 (509015)
exclusive rwlock amaplk r = 0 (0xfffffd806a9a16d8)
#0 witness_lock+0x44d
#1 uvm_map_lock_entry+0x36 sys/uvm/uvm_map.c:508
#2 uvm_fault_unwire_locked+0x1e8 sys/uvm/uvm_fault.c:1655
#3 uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
#4 sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
#5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#6 Xsyscall+0x128
shared rwlock vmmaplk r = 0 (0xfffffd806b03b5f0)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:1600
#3 sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
#4 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#4 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#5 Xsyscall+0x128
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82a3b270)
#0 witness_lock+0x44d
#1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227
#2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416
#3 sleep_finish+0x198 sys/kern/kern_synch.c:437
#4 rw_enter+0x35a sys/kern/kern_rwlock.c:286
#5 uvm_fault_unwire+0x31 sys/uvm/uvm_fault.c:1600
#6 sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
#7 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
#7 syscall+0x489 sys/arch/amd64/amd64/trap.c:585
#8 Xsyscall+0x128
exclusive rwlock sysctllk r = 0 (0xffffffff828fe3f0)
#0 witness_lock+0x44d
#1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310
#2 sys_sysctl+0x1b3 sys/kern/kern_sysctl.c:233
#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
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10167 6406K 6419K 78643K 11257 0
pcb 13 8K 8K 78643K 13 0
rtable 238 6K 7K 78643K 348 0
ifaddr 81 16K 16K 78643K 82 0
counters 56 35K 35K 78643K 56 0
ioctlops 0 0K 2K 78643K 33 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1166 73K 73K 78643K 1179 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 12548 0
file desc 21 77K 125K 78643K 5996 0
proc 56 74K 123K 78643K 451 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 99 6K 6K 78643K 99 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 25 122K 122K 78643K 25 0
exec 0 0K 2K 78643K 608 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 246 75K 76K 78643K 71352 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 11 0K 2K 78643K 27 0
temp 52 4687K 4751K 78643K 15747 0
kqueue 12 18K 18K 78643K 25 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 33 0 30 1 0 1 1 0 8 0
rtentry 112 111 0 1 4 0 4 4 0 8 0
unpcb 136 33 0 20 1 0 1 1 0 8 0
syncache 296 5 0 5 2 2 0 1 0 8 0
tcpcb 736 8 0 5 1 0 1 1 0 8 0
arp 120 18 0 0 1 0 1 1 0 8 0
inpcb 304 57 0 51 1 0 1 1 0 8 0
nd6 48 24 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 453 0 0 29 0 29 29 0 8 0
art_table 32 454 0 0 4 0 4 4 0 8 0
art_node 16 110 0 10 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 7331 0 5902 90 0 90 90 0 8 0
ffsino 272 7331 0 5902 96 0 96 96 0 8 0
nchpl 144 13432 0 11773 62 0 62 62 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 29130 0 29130 3 2 1 2 0 8 1
percpumem 16 40 0 0 1 0 1 1 0 8 0
scxspl 216 40644 0 40644 21 20 1 8 0 8 1
plimitpl 152 31 0 9 1 0 1 1 0 8 0
sigapl 424 6277 0 6228 7 1 6 7 0 8 0
futexpl 64 13987 0 13985 1 0 1 1 0 8 0
knotepl 120 102 0 0 4 0 4 4 0 8 0
kqueuepl 216 21 0 13 1 0 1 1 0 8 0
pipepl 336 127 0 99 4 1 3 3 0 8 0
fdescpl 496 6263 0 6231 7 2 5 6 0 8 0
filepl 152 7258 0 7130 6 0 6 6 0 8 1
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 25 0 9 1 0 1 1 0 8 0
pgrppl 48 25 0 9 1 0 1 1 0 8 0
ucredpl 96 88 0 70 1 0 1 1 0 8 0
zombiepl 144 6231 0 6228 2 1 1 1 0 8 0
processpl 1064 6277 0 6228 5 1 4 4 0 8 0
procpl 672 12363 0 12301 6 0 6 6 0 8 0
sockpl 480 123 0 101 4 1 3 4 0 8 0
mcl8k 8192 4 0 0 1 0 1 1 0 8 0
mcl4k 4096 3 0 0 1 0 1 1 0 8 0
mcl2k 2048 65 0 0 8 0 8 8 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 296 0 0 18 0 18 18 0 8 0
bufpl 288 9406 0 3071 453 0 453 453 0 8 0
anonpl 24 1470292 0 1464080 54 9 45 45 0 186 0
amapchunkpl 152 167204 0 166675 27 1 26 26 0 158 1
amappl16 200 6319 0 6203 8 1 7 7 0 8 0
amappl15 192 842 0 835 1 0 1 1 0 8 0
amappl14 184 707 0 703 1 0 1 1 0 8 0
amappl13 176 830 0 827 2 1 1 1 0 8 0
amappl12 168 1472 0 1467 2 1 1 1 0 8 0
amappl11 160 42 0 32 1 0 1 1 0 8 0
amappl10 152 40 0 38 2 1 1 1 0 8 0
amappl9 144 1182 0 1175 1 0 1 1 0 8 0
amappl8 136 2044 0 2004 2 0 2 2 0 8 0
amappl7 128 1617 0 1598 1 0 1 1 0 8 0
amappl6 120 953 0 929 2 1 1 2 0 8 0
amappl5 112 6044 0 6025 1 0 1 1 0 8 0
amappl4 104 6539 0 6514 2 1 1 2 0 8 0
amappl3 96 1626 0 1613 1 0 1 1 0 8 0
amappl2 88 1254 0 1212 3 1 2 3 0 8 0
amappl1 80 106047 0 105454 21 7 14 18 0 8 0
amappl 88 70817 0 70623 6 0 6 6 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 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 6263 0 6231 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 6263 0 6231 1 0 1 1 0 8 0
vmmpekpl 168 39174 0 39148 2 0 2 2 0 8 0
vmmpepl 168 493287 0 491378 108 8 100 100 0 357 4
vmsppl 368 6262 0 6231 4 0 4 4 0 8 0
rwobjpl 56 124350 0 117479 100 1 99 99 0 8 1
pdppl 4096 12533 0 12462 113 32 81 95 0 8 10
pvpl 32 3983110 0 3972525 267 77 190 260 0 265 92
pmappl 248 6262 0 6231 4 1 3 3 0 8 0
extentpl 40 58 0 38 1 0 1 1 0 8 0
phpool 112 828 0 37 23 0 23 23 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(ffffffff82576769) at panic+0x177 sys/kern/subr_prf.c:202
__assert(ffffffff825ea40b,ffffffff82549618,66b,ffffffff82558d47) at __assert+0x25 sys/kern/subr_prf.c:161
uvm_fault_unwire_locked(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire_locked+0x2eb sys/uvm/uvm_fault.c:1640
uvm_fault_unwire(fffffd806b03b5d8,20000000,20011000) at uvm_fault_unwire+0x3f sys/uvm/uvm_fault.c:1601
sys_sysctl(ffff80002134bcf0,ffff8000212f41c8,ffff8000212f4220) at sys_sysctl+0x229 sys/kern/kern_sysctl.c:254
syscall(ffff8000212f4290) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline]
syscall(ffff8000212f4290) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x510d4717290, count: -8
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020ce8ff0) 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(ffffffff82a3b068) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3b068) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff80002124ed60) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline]
syscall(ffff80002124ed60) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x51131dcda50, count: 9
ddb{1}> trace
x86_ipi_db(ffff800020ce8ff0) 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(ffffffff82a3b068) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline]
__mp_lock(ffffffff82a3b068) at __mp_lock+0x122 sys/kern/kern_lock.c:147
syscall(ffff80002124ed60) at syscall+0x3ef mi_syscall sys/sys/syscall_mi.h:93 [inline]
syscall(ffff80002124ed60) at syscall+0x3ef sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x51131dcda50, count: -6