panic: uvm_fault_unwire_locked: address not in map (2)

1 view
Skip to first unread message

syzbot

unread,
Jan 28, 2019, 6:49:03 AM1/28/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c41c16f02568 The test sshd_config in in $OBJ.
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1657e928c00000
kernel config: https://syzkaller.appspot.com/x/.config?x=3303344588104330
dashboard link: https://syzkaller.appspot.com/bug?extid=af6bdd2a9ef1720cc969
compiler:

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+af6bdd...@syzkaller.appspotmail.com

panic: uvm_fault_unwire_locked: address not in map
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
415207 2835 32767 0x10 0 0 syz-executor1
* 72606 2835 32767 0x10 0x4000000 1K syz-executor1
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x16c sys/kern/subr_prf.c:208
uvm_fault_unwire_locked(f6641bc1f73d942a,fffffd807baf72b8,fffffd806bd7e690)
at u
vm_fault_unwire_locked+0x35c
uvm_map_pageable_wire(5638e5cdde9905c1,fffffd807baf72b8,21000000,20ffd000,0,4)
a
t uvm_map_pageable_wire+0x67f
uvm_map_protect(e7b2ee62ba859a84,10,ffff800020b92720,2ee9cdfe8,0) at
uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294
syscall(9b9dbc6918173ab4) at syscall+0x5a0 mi_syscall
sys/sys/syscall_mi.h:99 [inline]
syscall(9b9dbc6918173ab4) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583
Xsyscall(6,0,ffffffffffffffa0,0,3,60f5010) at Xsyscall+0x128
end of kernel
end trace frame: 0x2ee9ce070, count: 8
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{1}>
ddb{1}> set $lines = 0
ddb{1}> show panic
uvm_fault_unwire_locked: address not in map
ddb{1}> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:399
panic() at panic+0x16c sys/kern/subr_prf.c:208
uvm_fault_unwire_locked(f6641bc1f73d942a,fffffd807baf72b8,fffffd806bd7e690)
at uvm_fault_unwire_locked+0x35c
uvm_map_pageable_wire(5638e5cdde9905c1,fffffd807baf72b8,21000000,20ffd000,0,4)
at
uvm_map_pageable_wire+0x67f sys/uvm/uvm_map.c:2288
uvm_map_protect(e7b2ee62ba859a84,10,ffff800020b92720,2ee9cdfe8,0) at
uvm_map_protect+0x610 sys/uvm/uvm_map.c:3294
syscall(9b9dbc6918173ab4) at syscall+0x5a0 mi_syscall
sys/sys/syscall_mi.h:99 [inline]
syscall(9b9dbc6918173ab4) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583
Xsyscall(6,0,ffffffffffffffa0,0,3,60f5010) at Xsyscall+0x128
end of kernel
end trace frame: 0x2ee9ce070, count: -7
ddb{1}> show registers
rdi 0xffffffff819d4fa7 db_enter+0x17
rsi 0x1702 __ALIGN_SIZE+0x702
rbp 0xffff800020cbd7d0
rbx 0xffff800020cbd870
rdx 0x1703 __ALIGN_SIZE+0x703
rcx 0xffff800002749000
rax 0xffff800002749000
r8 0xffffffff81aa9b64 kprintf+0x174
r9 0x1
r10 0x6effb10ea25fb081
r11 0x32034b00d401a3d5
r12 0x3000000008
r13 0xffff800020cbd7e0
r14 0x100
r15 0x1
rip 0xffffffff819d4fa8 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff800020cbd7c0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor1) pid=72606 stat=onproc
flags process=10<SUGID> proc=4000000<THREAD>
pri=86, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff800020b93080,0xffffffff8230f728
process=0xffff800020b94010 user=0xffff800020cb8000,
vmspace=0xfffffd807f00d9d8
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
2835 415207 92290 32767 7 0x10 syz-executor1
* 2835 72606 92290 32767 7 0x4000010 syz-executor1
97633 82054 15189 32767 2 0x10 syz-executor0
97633 317031 15189 32767 3 0x4000090 netio syz-executor0
15189 291856 4159 32767 3 0x90 nanosleep syz-executor0
4159 391417 95089 0 3 0x82 wait syz-executor0
92290 452396 98537 32767 3 0x90 nanosleep syz-executor1
98537 411870 95089 0 3 0x82 wait syz-executor1
14095 322846 0 0 3 0x14200 bored sosplice
95089 70127 70295 0 3 0x82 thrsleep syz-fuzzer
95089 313071 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 249018 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 416166 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 251446 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 138147 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 350541 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 2787 70295 0 3 0x4000082 kqread syz-fuzzer
95089 500648 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 362312 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 271601 70295 0 3 0x4000082 thrsleep syz-fuzzer
95089 393292 70295 0 3 0x4000082 thrsleep syz-fuzzer
70295 283345 21644 0 3 0x10008a pause ksh
21644 251469 53425 0 3 0x92 select sshd
42 6283 1 0 3 0x100083 ttyin getty
53425 378765 1 0 3 0x80 select sshd
47975 317390 72644 73 3 0x100090 kqread syslogd
72644 357881 1 0 3 0x100082 netio syslogd
27730 453931 1 77 3 0x100090 poll dhclient
78352 314281 1 0 3 0x80 poll dhclient
82238 44154 0 0 2 0x14200 zerothread
1037 464502 0 0 3 0x14200 aiodoned aiodoned
13468 493626 0 0 3 0x14200 syncer update
43340 58710 0 0 3 0x14200 cleaner cleaner
50015 106650 0 0 3 0x14200 reaper reaper
25834 87482 0 0 3 0x14200 pgdaemon pagedaemon
82595 429753 0 0 3 0x14200 bored crynlk
59014 345205 0 0 3 0x14200 bored crypto
95274 367319 0 0 3 0x40014200 acpi0 acpi0
38925 33084 0 0 3 0x40014200 idle1
62530 167027 0 0 3 0x14200 bored softnet
76154 29900 0 0 3 0x14200 bored systqmp
13101 469362 0 0 3 0x14200 bored systq
18711 231927 0 0 3 0x40014200 bored softclock
51347 357541 0 0 3 0x40014200 idle0
1 478754 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{1}> show all locks
CPU 1:
exclusive mutex &uvm.pageqlock r = 0 (0xffffffff82310608) locked @
/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c:1339
Process 2835 (syz-executor1) thread 0xffff800020b92720 (72606)
exclusive rwlock vmmaplk r = 0 (0xfffffd807f00d9f0) locked @
/syzkaller/managers/setuid/kernel/sys/uvm/uvm_map.c:2268
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8231e5d8) locked @
/syzkaller/managers/setuid/kernel/sys/uvm/uvm_map.c:2732
exclusive mutex &uvm.pageqlock r = 0 (0xffffffff82310608) locked @
/syzkaller/managers/setuid/kernel/sys/uvm/uvm_fault.c:1339
ddb{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9462 6321K 6321K 78643K 12019 0 0
pcb 23 9K 11K 78643K 6835 0 0
rtable 97 3K 3K 78643K 9575 0 0
ifaddr 36 18K 21K 78643K 1819 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 2K 78643K 358 0 0
iov 0 0K 36K 78643K 873 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1201 75K 75K 78643K 10148 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 9K 78643K 139 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 12 0K 0K 78643K 940 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1792 194K 288K 78643K 12592 0 0
file desc 8 25K 33K 78643K 13364 0 0
sigio 0 0K 0K 78643K 217 0 0
proc 41 38K 70K 78643K 7923 0 0
subproc 68 69634K 69634K 78643K 10064 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 1959 0 0
in_multi 33 2K 2K 78643K 3725 0 0
ether_multi 1 0K 0K 78643K 100 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 72 318K 318K 78643K 72 0 0
exec 0 0K 1K 78643K 2352 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 108 22K 62K 78643K 41409 0 0
UVM aobj 130 6K 6K 78643K 140 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 0K 78643K 340 0 0
NDP 7 0K 0K 78643K 891 0 0
temp 121 2362K 2437K 78643K 50796 0 0
kqueue 0 0K 0K 78643K 157 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb{1}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 298 0 294 1 0 1 1 0
8 0
inpcbpl 280 5707 0 5699 1 0 1 1 0
8 0
plimitpl 152 698 0 689 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtentry 112 2687 0 2647 2 0 2 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpcb 544 2279 0 2275 1 0 1 1 0
8 0
nd6 48 592 0 588 1 0 1 1 0
8 0
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 12507 0 12313 15 2 13 13 0
8 0
art_table 32 12508 0 12313 2 0 2 2 0
8 0
art_node 16 2686 0 2652 1 0 1 1 0
8 0
sysvmsgpl 40 2 0 0 1 0 1 1 0
8 0
semapl 112 936 0 926 1 0 1 1 0
8 0
shmpl 112 138 0 10 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 18744 0 17129 54 1 53 53 0
8 0
ffsino 272 18744 0 17129 110 2 108 108 0
8 0
nchpl 144 36635 0 35061 59 0 59 59 0
8 0
uvmvnodes 72 5926 0 0 108 0 108 108 0
8 0
vnodes 200 5926 0 0 312 0 312 312 0
8 0
namei 1024 136159 0 136159 6 5 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 94421 0 94421 47 46 1 6 0
8 1
sigapl 432 12649 0 12633 5 3 2 3 0
8 0
futexpl 56 125101 0 125101 4 3 1 1 0
8 1
knotepl 112 7955 0 7928 16 15 1 2 0
8 0
kqueuepl 104 3411 0 3409 1 0 1 1 0
8 0
pipepl 112 10406 0 10387 27 26 1 2 0
8 0
fdescpl 488 12650 0 12633 3 0 3 3 0
8 0
filepl 152 83972 0 83874 34 29 5 7 0
8 1
lockfpl 96 3098 0 3098 13 12 1 1 0
8 1
lockfspl 24 6637 0 6637 10 9 1 1 0
8 1
sessionpl 112 311 0 301 1 0 1 1 0
8 0
pgrppl 48 490 0 480 1 0 1 1 0
8 0
ucredpl 96 30175 0 30166 1 0 1 1 0
8 0
zombiepl 144 12633 0 12633 4 3 1 1 0
8 1
processpl 840 12665 0 12633 4 0 4 4 0
8 0
procpl 600 35333 0 35288 20 16 4 5 0
8 0
srpgc 64 1734 0 1734 44 43 1 1 0
8 1
sosppl 128 261 0 261 44 43 1 1 0
8 1
sockpl 384 12838 0 12820 21 18 3 4 0
8 1
mcl64k 65536 27 0 0 3 0 3 3 0
8 0
mcl16k 16384 11 0 0 2 0 2 2 0
8 0
mcl12k 12288 29 0 0 2 0 2 2 0
8 0
mcl9k 9216 57 0 0 3 1 2 2 0
8 0
mcl8k 8192 18 0 0 3 1 2 3 0
8 0
mcl4k 4096 33 0 0 5 2 3 3 0
8 0
mcl2k2 2112 10 0 0 1 0 1 1 0
8 0
mcl2k 2048 126 0 0 14 0 14 14 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 744 0 0 12 2 10 12 0
8 0
bufpl 256 22818 0 15849 436 0 436 436 0
8 0
anonpl 16 1310537 0 1304327 289 247 42 42 0
125 7
amapchunkpl 152 98371 0 98282 581 572 9 189 0
158 4
amappl16 192 66391 0 66124 374 350 24 27 0
8 8
amappl15 184 2623 0 2623 28 28 0 1 0
8 0
amappl14 176 1351 0 1343 2 1 1 1 0
8 0
amappl13 168 1904 0 1901 1 0 1 1 0
8 0
amappl12 160 1050 0 1042 1 0 1 1 0
8 0
amappl11 152 3567 0 3554 1 0 1 1 0
8 0
amappl10 144 1464 0 1455 2 1 1 1 0
8 0
amappl9 136 2530 0 2523 1 0 1 1 0
8 0
amappl8 128 3590 0 3512 3 0 3 3 0
8 0
amappl7 120 1881 0 1870 1 0 1 1 0
8 0
amappl6 112 1319 0 1294 1 0 1 1 0
8 0
amappl5 104 2110 0 2099 1 0 1 1 0
8 0
amappl4 96 2346 0 2310 2 1 1 2 0
8 0
amappl3 88 1490 0 1485 1 0 1 1 0
8 0
amappl2 80 111133 0 111056 2 0 2 2 0
8 0
amappl1 72 319711 0 319256 23 13 10 18 0
8 0
amappl 72 37716 0 37679 1 0 1 1 0
75 0
dma4096 4096 1 0 1 1 1 0 1 0
8 0
dma256 256 6 0 6 1 1 0 1 0
8 0
dma64 64 259 0 259 1 1 0 1 0
8 0
dma32 32 7 0 7 1 1 0 1 0
8 0
dma16 16 17 0 17 1 1 0 1 0
8 0
aobjpl 64 139 0 10 3 0 3 3 0
8 0
uaddrrnd 24 12650 0 12633 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 12650 0 12633 1 0 1 1 0
8 0
vmmpekpl 168 105964 0 105941 2 0 2 2 0
8 0
vmmpepl 168 1445698 0 1444184 310 237 73 78 0
357 1
vmsppl 360 12649 0 12633 2 0 2 2 0
8 0
pdppl 4096 25307 0 25266 8 2 6 6 0
8 0
pvpl 32 3597309 0 3587827 670 561 109 116 0 265
24
pmappl 224 12649 0 12633 53 51 2 2 0
8 1
extentpl 40 39 0 25 1 0 1 1 0
8 0
phpool 112 621 0 18 18 0 18 18 0
8 0


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
syzbot.

syzbot

unread,
Oct 25, 2019, 4:37:06 AM10/25/19
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages