KASAN: out-of-bounds Read in bpf_test_finish

5 views
Skip to first unread message

syzbot

unread,
Apr 13, 2019, 8:02:22 PM4/13/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 666c420f FROMLIST: ANDROID: binder: Add BINDER_GET_NODE_IN..
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=178cd0e6400000
kernel config: https://syzkaller.appspot.com/x/.config?x=89d929f317ea847c
dashboard link: https://syzkaller.appspot.com/bug?extid=9445fd0df5de2f09d270
compiler: gcc (GCC) 8.0.1 20180413 (experimental)

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

==================================================================
BUG: KASAN: out-of-bounds in _copy_to_user+0x9a/0xc0 lib/usercopy.c:27
Read of size 1659 at addr ffff88018fbffff5 by task syz-executor3/32602

CPU: 1 PID: 32602 Comm: syz-executor3 Not tainted 4.14.71+ #8
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
print_address_description+0x60/0x22b mm/kasan/report.c:252
kasan_report_error mm/kasan/report.c:351 [inline]
kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409
_copy_to_user+0x9a/0xc0 lib/usercopy.c:27
copy_to_user include/linux/uaccess.h:155 [inline]
bpf_test_finish.isra.0+0xc8/0x190 net/bpf/test_run.c:59
bpf_prog_test_run_skb+0x4d0/0x8c0 net/bpf/test_run.c:144
bpf_prog_test_run kernel/bpf/syscall.c:1330 [inline]
SYSC_bpf kernel/bpf/syscall.c:1602 [inline]
SyS_bpf+0x79d/0x3640 kernel/bpf/syscall.c:1547
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457579
RSP: 002b:00007fc3165a6c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457579
RDX: 0000000000000028 RSI: 0000000020000180 RDI: 000000000000000a
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc3165a76d4
R13: 00000000004bd8a6 R14: 00000000004cc168 R15: 00000000ffffffff

The buggy address belongs to the page:
page:ffffea00063effc0 count:0 mapcount:0 mapping: (null) index:0x0
flags: 0x4000000000000000()
raw: 4000000000000000 0000000000000000 0000000000000000 00000000ffffffff
raw: 0000000000000000 dead000000000200 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
ffff88018fc00500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88018fc00580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> ffff88018fc00600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
^
ffff88018fc00680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88018fc00700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================


---
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,
May 19, 2019, 8:33:03 AM5/19/19
to syzkaller-a...@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