syzbot


KASAN: stack-out-of-bounds Read in iov_iter_advance

Status: public: reported C repro on 2019/04/12 00:00
Reported-by: syzbot+a4adc46d8d1b1335a4fd@syzkaller.appspotmail.com
First crash: 2542d, last: 1816d

Sample crash report:
==================================================================
BUG: KASAN: stack-out-of-bounds in iov_iter_advance+0x4b3/0x4f0 lib/iov_iter.c:491
Read of size 8 at addr ffff8800b6a77d50 by task syz-executor329/2069

CPU: 1 PID: 2069 Comm: syz-executor329 Not tainted 4.4.158+ #105
 0000000000000000 e66ae0773ea2a43f ffff8800b6a77990 ffffffff81a991dd
 ffffea0002da9dc0 ffff8800b6a77d50 0000000000000000 ffff8800b6a77d50
 ffff8800b6a77d48 ffff8800b6a779c8 ffffffff8148a7c9 ffff8800b6a77d50
Call Trace:
 [<ffffffff81a991dd>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81a991dd>] dump_stack+0xc1/0x124 lib/dump_stack.c:51
 [<ffffffff8148a7c9>] print_address_description+0x6c/0x217 mm/kasan/report.c:252
 [<ffffffff8148aae9>] kasan_report_error mm/kasan/report.c:351 [inline]
 [<ffffffff8148aae9>] kasan_report.cold.6+0x175/0x2f7 mm/kasan/report.c:408
 [<ffffffff8147f764>] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:429
 [<ffffffff81ad4b93>] iov_iter_advance+0x4b3/0x4f0 lib/iov_iter.c:491
 [<ffffffff81e0c3d9>] tun_put_user drivers/net/tun.c:1369 [inline]
 [<ffffffff81e0c3d9>] tun_do_read+0x659/0xc10 drivers/net/tun.c:1421
 [<ffffffff81e0cc32>] tun_chr_read_iter+0xe2/0x1d0 drivers/net/tun.c:1439
 [<ffffffff81490b91>] new_sync_read fs/read_write.c:422 [inline]
 [<ffffffff81490b91>] __vfs_read+0x301/0x3d0 fs/read_write.c:434
 [<ffffffff81492680>] vfs_read+0x130/0x360 fs/read_write.c:454
 [<ffffffff81495295>] SYSC_pread64 fs/read_write.c:607 [inline]
 [<ffffffff81495295>] SyS_pread64+0x145/0x170 fs/read_write.c:594
 [<ffffffff82705a61>] entry_SYSCALL_64_fastpath+0x1e/0x9a

The buggy address belongs to the page:
page:ffffea0002da9dc0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x0()
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8800b6a77c00: 04 f2 f2 f2 f2 f2 f2 f2 00 02 f2 f2 00 00 00 00
 ffff8800b6a77c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8800b6a77d00: 00 00 00 f1 f1 f1 f1 00 00 f2 f2 f2 f2 f2 f2 00
                                                 ^
 ffff8800b6a77d80: 00 00 00 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00
 ffff8800b6a77e00: f2 f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (1538):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/09/28 06:11 https://android.googlesource.com/kernel/common android-4.4 85b352c44756 0c2fa87b .config console log report syz C ci-android-44-kasan-gce
2018/06/16 14:41 https://android.googlesource.com/kernel/common android-4.4 07c01385fb82 27c5f59f .config console log report syz C ci-android-44-kasan-gce
2018/01/03 04:54 https://android.googlesource.com/kernel/common android-4.4 610c835673f3 00193447 .config console log report syz C ci-android-44-kasan-gce-386
2017/12/26 17:03 https://android.googlesource.com/kernel/common android-4.4 610c835673f3 73aba437 .config console log report syz C ci-android-44-kasan-gce-386
2017/12/26 11:08 https://android.googlesource.com/kernel/common android-4.4 610c835673f3 73aba437 .config console log report syz C ci-android-44-kasan-gce
2017/12/09 10:53 https://android.googlesource.com/kernel/common android-4.4 ed884ebd80a9 5ad0ce95 .config console log report syz C ci-android-44-kasan-gce
2018/09/28 06:12 https://android.googlesource.com/kernel/common android-4.4 85b352c44756 0c2fa87b .config console log report syz C ci-android-44-kasan-gce-386
2018/06/16 14:47 https://android.googlesource.com/kernel/common android-4.4 07c01385fb82 27c5f59f .config console log report syz ci-android-44-kasan-gce-386
2019/12/04 11:17 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 0ecb9746 .config console log report ci-android-44-kasan-gce
2019/12/02 18:49 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f879db37 .config console log report ci-android-44-kasan-gce
2019/11/25 02:47 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 598ca6c8 .config console log report ci-android-44-kasan-gce
2019/11/21 13:32 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8098ea0f .config console log report ci-android-44-kasan-gce
2019/11/19 20:03 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5bc70212 .config console log report ci-android-44-kasan-gce
2019/11/19 06:12 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5bc70212 .config console log report ci-android-44-kasan-gce
2019/11/18 06:47 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/18 04:48 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/18 03:41 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/17 21:49 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/17 17:24 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/16 23:21 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d5696d51 .config console log report ci-android-44-kasan-gce
2019/11/16 09:28 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b cdac920b .config console log report ci-android-44-kasan-gce
2019/11/15 19:31 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b cdac920b .config console log report ci-android-44-kasan-gce
2019/11/15 11:01 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 79248ee8 .config console log report ci-android-44-kasan-gce
2019/11/13 12:34 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 048f2d49 .config console log report ci-android-44-kasan-gce
2019/11/11 14:56 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b dc438b91 .config console log report ci-android-44-kasan-gce
2019/11/11 09:07 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b dc438b91 .config console log report ci-android-44-kasan-gce
2019/11/09 15:57 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b dc438b91 .config console log report ci-android-44-kasan-gce
2019/11/06 17:41 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b da505f84 .config console log report ci-android-44-kasan-gce
2019/11/06 02:19 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 0f3ec414 .config console log report ci-android-44-kasan-gce
2019/10/31 21:59 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b a41ca8fa .config console log report ci-android-44-kasan-gce
2019/10/29 22:14 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5ea87a66 .config console log report ci-android-44-kasan-gce
2019/10/28 17:42 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 439d7b14 .config console log report ci-android-44-kasan-gce
2019/10/25 07:36 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d01bb02a .config console log report ci-android-44-kasan-gce
2019/10/23 19:35 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b b602d64b .config console log report ci-android-44-kasan-gce
2019/10/23 17:39 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b b602d64b .config console log report ci-android-44-kasan-gce
2019/10/23 03:24 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5681358a .config console log report ci-android-44-kasan-gce
2019/10/22 21:16 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5681358a .config console log report ci-android-44-kasan-gce
2019/10/22 20:07 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5681358a .config console log report ci-android-44-kasan-gce
2019/11/29 20:02 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d29b9e84 .config console log report ci-android-44-kasan-gce-386
2019/11/29 15:06 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d29b9e84 .config console log report ci-android-44-kasan-gce-386
2019/11/29 03:59 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 76357d6f .config console log report ci-android-44-kasan-gce-386
2019/11/29 01:12 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 76357d6f .config console log report ci-android-44-kasan-gce-386
2019/11/27 17:40 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 0d63f89c .config console log report ci-android-44-kasan-gce-386
2019/11/23 00:09 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 598ca6c8 .config console log report ci-android-44-kasan-gce-386
2019/11/22 09:56 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8098ea0f .config console log report ci-android-44-kasan-gce-386
2019/11/16 11:14 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b cdac920b .config console log report ci-android-44-kasan-gce-386
2019/11/16 03:44 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b cdac920b .config console log report ci-android-44-kasan-gce-386
2019/11/15 12:36 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 79248ee8 .config console log report ci-android-44-kasan-gce-386
2019/11/15 08:32 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b a24fe792 .config console log report ci-android-44-kasan-gce-386
2019/11/13 12:35 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 048f2d49 .config console log report ci-android-44-kasan-gce-386
2019/11/08 19:26 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 1e35461e .config console log report ci-android-44-kasan-gce-386
2019/11/07 20:18 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b f39aff9e .config console log report ci-android-44-kasan-gce-386
2019/11/05 16:15 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 0f3ec414 .config console log report ci-android-44-kasan-gce-386
2019/10/29 06:20 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 5ea87a66 .config console log report ci-android-44-kasan-gce-386
2019/10/28 12:38 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 25bb509e .config console log report ci-android-44-kasan-gce-386
2019/10/26 08:28 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 413926c5 .config console log report ci-android-44-kasan-gce-386
2019/10/25 07:33 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d01bb02a .config console log report ci-android-44-kasan-gce-386
2019/10/24 09:43 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d01bb02a .config console log report ci-android-44-kasan-gce-386
2019/10/23 16:38 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b b602d64b .config console log report ci-android-44-kasan-gce-386
2019/10/23 08:10 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b d0686497 .config console log report ci-android-44-kasan-gce-386
2019/10/22 05:51 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b c59a7cd8 .config console log report ci-android-44-kasan-gce-386
2019/10/21 22:02 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b b24d2b8a .config console log report ci-android-44-kasan-gce-386
2019/10/20 04:15 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8c88c9c1 .config console log report ci-android-44-kasan-gce-386
2019/10/19 21:43 https://android.googlesource.com/kernel/common android-4.4 62872f952d6b 8c88c9c1 .config console log report ci-android-44-kasan-gce-386
* Struck through repros no longer work on HEAD.