uvm_fault: ml_purge (2)

0 views
Skip to first unread message

syzbot

unread,
Nov 24, 2019, 12:29:08 AM11/24/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 254679ff envy(4): *sleep(9) -> *sleep_nsec(9); ok ratchov@
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=15a9509ce00000
kernel config: https://syzkaller.appspot.com/x/.config?x=d0fe83f82fe104d4
dashboard link: https://syzkaller.appspot.com/bug?extid=c9966cc9f451f14da6bf

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+c9966c...@syzkaller.appspotmail.com

uvm_fault(0xffffffff82564468, 0xfffffd0000000008, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at ml_purge+0x38: movq 0x8(%r12),%r12
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xffffffff82564468, 0xfffffd0000000008, 0, 1) -> e
ml_purge(ffff80001493dfc8) at ml_purge+0x38 sys/kern/uipc_mbuf.c:1627
end trace frame: 0xffff80001493e010, count: 0
ddb> trace
ml_purge(ffff80001493dfc8) at ml_purge+0x38 sys/kern/uipc_mbuf.c:1627
ifq_purge(ffff800000a65a78) at ifq_purge+0x97 sys/net/ifq.c:423
tapclose(5d01,7,2000,ffff8000ffff8770) at tapclose+0xed tun_dev_close
sys/net/if_tun.c:454 [inline]
tapclose(5d01,7,2000,ffff8000ffff8770) at tapclose+0xed sys/net/if_tun.c:433
spec_close(ffff80001493e0e0) at spec_close+0x311 sys/kern/spec_vnops.c:555
VOP_CLOSE(fffffd803e747b60,7,fffffd803f7c6b40,ffff8000ffff8770) at
VOP_CLOSE+0xc0 sys/kern/vfs_vops.c:175
vn_closefile(fffffd802d73cd30,ffff8000ffff8770) at vn_closefile+0xd3
vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffd802d73cd30,ffff8000ffff8770) at vn_closefile+0xd3
sys/kern/vfs_vnops.c:610
fdrop(fffffd802d73cd30,ffff8000ffff8770) at fdrop+0xc2
sys/kern/kern_descrip.c:1273
closef(fffffd802d73cd30,ffff8000ffff8770) at closef+0x118
sys/kern/kern_descrip.c:1257
fdfree(ffff8000ffff8770) at fdfree+0x100 sys/kern/kern_descrip.c:1189
exit1(ffff8000ffff8770,19,1) at exit1+0x32f sys/kern/kern_exit.c:196
postsig(ffff8000ffff8770,19) at postsig+0x4a6 sigexit
sys/kern/kern_sig.c:1499 [inline]
postsig(ffff8000ffff8770,19) at postsig+0x4a6 sys/kern/kern_sig.c:1431
userret(ffff8000ffff8770) at userret+0x159 sys/kern/kern_sig.c:1889
syscall(ffff80001493e560) at syscall+0x42e mi_syscall_return
sys/sys/syscall_mi.h:115 [inline]
syscall(ffff80001493e560) at syscall+0x42e sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffbbeb0, count: -14
ddb> show registers
rdi 0
rsi 0
rbp 0xffff80001493dfb0
rbx 0
rdx 0xffffffff8256ae78 mbpool+0x38
rcx 0xffffffff8256ae70 mbpool+0x30
rax 0
r8 0
r9 0x5
r10 0x5ba31b2902dfedab
r11 0x987766c39c149b2d
r12 0xfffffd0000000000
r13 0x2000 __ALIGN_SIZE+0x1000
r14 0xffff80001493dfc8
r15 0xfffffd0000000000
rip 0xffffffff811380f8 ml_purge+0x38
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80001493df80
ss 0x10
ml_purge+0x38: movq 0x8(%r12),%r12
ddb> show proc
PROC (syz-executor.1) pid=510495 stat=onproc
flags process=a<EXEC,EXITING> proc=2000<WEXIT>
pri=74, usrpri=74, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff8280,0xffff8000ffff2518
process=0xffff8000148a2018 user=0xffff800014939000,
vmspace=0xfffffd803f011220
estcpu=36, cpticks=2, pctcpu=0.0
user=0, sys=2, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
93365 342730 39914 0 2 0x480 syz-executor.0
93365 458923 39914 0 3 0x4000080 ttyin syz-executor.0
93365 443882 39914 0 3 0x4000080 fsleep syz-executor.0
24846 191638 0 0 3 0x14200 bored sosplice
45481 186502 0 0 3 0x14200 acct acct
39914 316516 14769 0 2 0x482 syz-executor.0
14769 59087 7344 0 3 0x82 thrsleep syz-fuzzer
14769 338427 7344 0 2 0x4000482 syz-fuzzer
14769 125860 7344 0 3 0x4000082 thrsleep syz-fuzzer
14769 198898 7344 0 3 0x4000082 thrsleep syz-fuzzer
14769 270842 7344 0 3 0x4000082 thrsleep syz-fuzzer
14769 303972 7344 0 2 0x4000082 syz-fuzzer
14769 342013 7344 0 3 0x4000082 thrsleep syz-fuzzer
7344 106152 68336 0 3 0x10008a pause ksh
68336 402771 46350 0 3 0x92 select sshd
88069 167468 1 0 3 0x100083 ttyin getty
46350 405129 1 0 3 0x80 select sshd
95300 189186 71461 73 3 0x100090 kqread syslogd
71461 75534 1 0 3 0x100082 netio syslogd
72157 396086 1 77 3 0x100090 poll dhclient
56025 183720 1 0 3 0x80 poll dhclient
83639 179780 0 0 2 0x14200 zerothread
38411 186060 0 0 3 0x14200 aiodoned aiodoned
77095 311301 0 0 3 0x14200 syncer update
99144 256776 0 0 3 0x14200 cleaner cleaner
47055 242136 0 0 3 0x14200 reaper reaper
39775 6955 0 0 3 0x14200 pgdaemon pagedaemon
90401 15437 0 0 3 0x14200 bored crynlk
76926 88885 0 0 3 0x14200 bored crypto
55735 380922 0 0 3 0x40014200 acpi0 acpi0
93028 351649 0 0 2 0x14200 softnet
27181 169395 0 0 3 0x14200 bored systqmp
45876 375305 0 0 3 0x14200 bored systq
47654 106624 0 0 3 0x40014200 bored softclock
2672 72687 0 0 3 0x40014200 idle0
22655 215441 0 0 3 0x14200 bored smr
1 387234 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9494 6412K 7109K 78643K 11410 0 0
pcb 13 8K 8K 78643K 57 0 0
rtable 104 3K 4K 78643K 244 0 0
ifaddr 68 14K 14K 78643K 92 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 29 0 0
iov 0 0K 24K 78643K 90 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1218 77K 77K 78643K 1436 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 7 0 0
VM map 10 2K 2K 78643K 10 0 0
sem 12 0K 1K 78643K 82 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1794 195K 288K 78643K 12646 0 0
file desc 5 13K 25K 78643K 221 0 0
sigio 0 0K 0K 78643K 6 0 0
proc 48 38K 63K 78643K 368 0 0
subproc 23 1K 2K 78643K 34 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 33 0 0
in_multi 59 3K 3K 78643K 63 0 0
ether_multi 1 0K 0K 78643K 2 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 60 265K 265K 78643K 60 0 0
exec 0 0K 1K 78643K 217 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 117 88K 88K 78643K 1421 0 0
UVM aobj 16 4K 4K 78643K 16 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 42 0 0
NDP 10 0K 0K 78643K 17 0 0
temp 128 3540K 3604K 78643K 6517 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 8 0 2 1 0 1 1 0
8 0
rtpcb 80 46 0 44 1 0 1 1 0
8 0
rtentry 112 49 0 7 2 0 2 2 0
8 0
unpcb 120 180 0 172 1 0 1 1 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpqe 32 89 0 89 1 1 0 1 0
8 0
tcpcb 544 169 0 165 1 0 1 1 0
8 0
ipq 40 6 0 6 1 0 1 1 0
8 1
ipqe 40 188 0 188 1 0 1 1 0
8 1
inpcb 280 571 0 564 2 0 2 2 0
8 1
nd6 48 4 0 0 1 0 1 1 0
8 0
swfcl 56 2 0 0 1 0 1 1 0
8 0
ppxss 1128 3 0 3 1 0 1 1 0
8 1
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 220 0 4 14 0 14 14 0
8 0
art_table 32 221 0 4 2 0 2 2 0
8 0
art_node 16 48 0 10 1 0 1 1 0
8 0
sysvmsgpl 40 60 0 28 1 0 1 1 0
8 0
semupl 112 2 0 2 2 1 1 1 0
8 1
semapl 112 80 0 70 1 0 1 1 0
8 0
shmpl 112 14 0 0 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 1721 0 323 46 0 46 46 0
8 0
ffsino 240 1721 0 323 83 0 83 83 0
8 0
nchpl 144 2270 0 1813 60 36 24 60 0
8 4
uvmvnodes 72 1941 0 0 36 0 36 36 0
8 0
vnodes 208 1941 0 0 103 0 103 103 0
8 0
namei 1024 6004 0 6004 1 0 1 1 0
8 1
vcpupl 1984 8 0 0 1 0 1 1 0
8 0
vmpool 520 8 0 0 1 0 1 1 0
8 0
scxspl 192 6522 0 6522 8 7 1 7 0
8 1
plimitpl 152 35 0 27 1 0 1 1 0
8 0
sigapl 432 391 0 378 2 0 2 2 0
8 0
futexpl 56 6990 0 6989 1 0 1 1 0
8 0
knotepl 112 78 0 58 1 0 1 1 0
8 0
kqueuepl 104 75 0 72 1 0 1 1 0
8 0
pipepl 128 222 0 204 2 0 2 2 0
8 1
fdescpl 424 392 0 378 2 0 2 2 0
8 0
filepl 120 2887 0 2798 5 0 5 5 0
8 1
lockfpl 104 103 0 102 1 0 1 1 0
8 0
lockfspl 48 38 0 37 1 0 1 1 0
8 0
sessionpl 112 17 0 7 1 0 1 1 0
8 0
pgrppl 48 19 0 9 1 0 1 1 0
8 0
ucredpl 96 199 0 192 1 0 1 1 0
8 0
zombiepl 144 379 0 378 1 0 1 1 0
8 0
processpl 864 408 0 378 4 0 4 4 0
8 0
procpl 632 696 0 658 5 0 5 5 0
8 1
sosppl 128 4 0 4 2 1 1 1 0
8 1
sockpl 384 797 0 780 5 0 5 5 0
8 3
mcl64k 65536 34 0 34 1 0 1 1 0
8 1
mcl16k 16384 5 0 4 2 1 1 1 0
8 0
mcl12k 12288 7 0 7 2 1 1 1 0
8 1
mcl9k 9216 2 0 2 1 1 0 1 0
8 0
mcl8k 8192 15 0 15 1 0 1 1 0
8 1
mcl4k 4096 31 0 31 2 1 1 1 0
8 1
mcl2k 2048 67731 0 67692 14 8 6 13 0
8 0
mtagpl 80 50 0 14 2 1 1 1 0
8 0
mbufpl 256 109970 0 109811 31 10 21 27 0
8 8
bufpl 256 6789 0 1846 310 0 310 310 0
8 0
anonpl 16 57419 0 37335 99 1 98 98 0 62
16
amapchunkpl 152 1865 0 1697 10 2 8 9 0
158 0
amappl16 192 2277 0 1172 68 4 64 68 0
8 8
amappl14 176 46 0 41 1 0 1 1 0
8 0
amappl13 168 91 0 88 1 0 1 1 0
8 0
amappl12 160 17 0 15 2 1 1 1 0
8 0
amappl11 152 46 0 35 1 0 1 1 0
8 0
amappl10 144 108 0 106 2 1 1 1 0
8 0
amappl9 136 572 0 568 1 0 1 1 0
8 0
amappl8 128 157 0 128 1 0 1 1 0
8 0
amappl7 120 130 0 127 1 0 1 1 0
8 0
amappl6 112 51 0 45 1 0 1 1 0
8 0
amappl5 104 137 0 126 1 0 1 1 0
8 0
amappl4 96 695 0 668 1 0 1 1 0
8 0
amappl3 88 120 0 114 1 0 1 1 0
8 0
amappl2 80 2354 0 2290 3 1 2 3 0
8 0
amappl1 72 16323 0 15915 27 18 9 20 0
8 0
amappl 80 945 0 896 2 0 2 2 0
84 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
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 15 0 0 1 0 1 1 0
8 0
uaddrrnd 24 400 0 378 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 400 0 378 1 0 1 1 0
8 0
vmmpekpl 168 6753 0 6726 2 0 2 2 0
8 0
vmmpepl 168 54376 0 52198 135 17 118 127 0 357
18
vmsppl 272 391 0 378 2 1 1 2 0
8 0
pdppl 4096 806 0 764 6 0 6 6 0
8 0
pvpl 32 174101 0 151190 221 0 221 221 0 265
34
pmappl 200 399 0 378 2 0 2 2 0
8 0
extentpl 40 46 0 29 1 0 1 1 0
8 0
phpool 112 474 0 23 14 0 14 14 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#status for how to communicate with syzbot.

syzbot

unread,
Sep 27, 2020, 10:59:14 AM9/27/20
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