syzbot


KASAN: out-of-bounds Read in bpf_test_finish

Status: auto-closed as invalid on 2019/05/19 12:33
Reported-by: syzbot+9445fd0df5de2f09d270@syzkaller.appspotmail.com
First crash: 2039d, last: 1983d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: out-of-bounds Read in bpf_test_finish bpf net 9 2111d 2117d 8/26 fixed on 2018/08/07 13:43

Sample crash report:
==================================================================
BUG: KASAN: out-of-bounds in _copy_to_user+0x9a/0xc0 lib/usercopy.c:27
Read of size 793 at addr ffff8800003ffff5 by task syz-executor0/31257

CPU: 0 PID: 31257 Comm: syz-executor0 Not tainted 4.14.81+ #6
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:1343 [inline]
 SYSC_bpf kernel/bpf/syscall.c:1615 [inline]
 SyS_bpf+0x79d/0x3700 kernel/bpf/syscall.c:1560
 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457569
RSP: 002b:00007f8a68084c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
RDX: 0000000000000028 RSI: 0000000020000040 RDI: 000000000000000a
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8a680856d4
R13: 00000000004bd952 R14: 00000000004ccbf0 R15: 00000000ffffffff

The buggy address belongs to the page:
page:ffffea000000ffc0 count:1 mapcount:0 mapping:          (null) index:0x0
flags: 0x0()
raw: 0000000000000000 0000000000000000 0000000000000000 00000001ffffffff
raw: dead000000000100 dead000000000200 ffff8801d2119000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff880000400200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff880000400280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff880000400300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
                         ^
 ffff880000400380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff880000400400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/11/20 12:32 android-4.14 4e76528bd48d 9bc2a903 .config console log report ci-android-414-kasan-gce-root
2018/09/25 02:31 android-4.14 666c420fa3ea 0e7547d7 .config console log report ci-android-414-kasan-gce-root
* Struck through repros no longer work on HEAD.