syzbot


KASAN: global-out-of-bounds Read in show_timer

Status: closed as dup on 2017/12/11 23:14
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+dc3224b9c8f85af3ad550f98c1bc002062185ea6@syzkaller.appspotmail.com
First crash: 2427d, last: 2405d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in show_timer fs C 10 2405d 2424d

Sample crash report:
audit: type=1400 audit(1513022513.786:7): avc:  denied  { map } for  pid=3151 comm="syzkaller514695" path="/root/syzkaller514695434" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
==================================================================
BUG: KASAN: global-out-of-bounds in show_timer+0x278/0x2b0 fs/proc/base.c:2274
Read of size 8 at addr ffffffff853431f8 by task syzkaller514695/3151

CPU: 1 PID: 3151 Comm: syzkaller514695 Not tainted 4.15.0-rc3+ #217
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 print_address_description+0x178/0x250 mm/kasan/report.c:252
 kasan_report_error mm/kasan/report.c:351 [inline]
 kasan_report+0x25b/0x340 mm/kasan/report.c:409
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430
 show_timer+0x278/0x2b0 fs/proc/base.c:2274
 seq_read+0x385/0x13d0 fs/seq_file.c:234
 do_loop_readv_writev fs/read_write.c:673 [inline]
 do_iter_read+0x3db/0x5b0 fs/read_write.c:897
 vfs_readv+0x121/0x1c0 fs/read_write.c:959
 do_preadv+0x11b/0x1a0 fs/read_write.c:1043
 SYSC_preadv fs/read_write.c:1093 [inline]
 SyS_preadv+0x30/0x40 fs/read_write.c:1088
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x440149
RSP: 002b:00007ffcfb489e78 EFLAGS: 00000213 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007ffcfb489e80 RCX: 0000000000440149
RDX: 0000000000000001 RSI: 00000000205e2ff0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000011 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401a10
R13: 0000000000401aa0 R14: 0000000000000000 R15: 0000000000000000

The buggy address belongs to the variable:
 nstr.44444+0x18/0x40

Memory state around the buggy address:
 ffffffff85343080: fa fa fa fa 00 00 00 fa fa fa fa fa 00 06 fa fa
 ffffffff85343100: fa fa fa fa 07 fa fa fa fa fa fa fa 05 fa fa fa
>ffffffff85343180: fa fa fa fa 07 fa fa fa fa fa fa fa 00 00 00 fa
                                                                ^
 ffffffff85343200: fa fa fa fa 00 fa fa fa fa fa fa fa 07 fa fa fa
 ffffffff85343280: fa fa fa fa 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 3151 Comm: syzkaller514695 Tainted: G    B            4.15.0-rc3+ #217
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x41c kernel/panic.c:183
 kasan_end_report+0x50/0x50 mm/kasan/report.c:176
 kasan_report_error mm/kasan/report.c:356 [inline]
 kasan_report+0x144/0x340 mm/kasan/report.c:409
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430
 show_timer+0x278/0x2b0 fs/proc/base.c:2274
 seq_read+0x385/0x13d0 fs/seq_file.c:234
 do_loop_readv_writev fs/read_write.c:673 [inline]
 do_iter_read+0x3db/0x5b0 fs/read_write.c:897
 vfs_readv+0x121/0x1c0 fs/read_write.c:959
 do_preadv+0x11b/0x1a0 fs/read_write.c:1043
 SYSC_preadv fs/read_write.c:1093 [inline]
 SyS_preadv+0x30/0x40 fs/read_write.c:1088
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x440149
RSP: 002b:00007ffcfb489e78 EFLAGS: 00000213 ORIG_RAX: 0000000000000127
RAX: ffffffffffffffda RBX: 00007ffcfb489e80 RCX: 0000000000440149
RDX: 0000000000000001 RSI: 00000000205e2ff0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000011 R09: 65732f636f72702f
R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000401a10
R13: 0000000000401aa0 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (165):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/11 20:03 upstream 50c4c4e268a2 da131727 .config console log report syz C ci-upstream-kasan-gce
2017/12/05 12:50 upstream fd6d2e506ce6 de212f1a .config console log report syz C ci-upstream-kasan-gce
2017/12/04 08:41 upstream ae64f9bd1d36 48359b97 .config console log report syz C ci-upstream-kasan-gce
2017/12/03 14:27 upstream 2db767d9889c 48359b97 .config console log report syz C ci-upstream-kasan-gce
2017/12/03 10:52 upstream 2db767d9889c 48359b97 .config console log report syz C ci-upstream-kasan-gce
2017/12/03 04:02 upstream 2db767d9889c 48359b97 .config console log report syz C ci-upstream-kasan-gce-386
2017/12/02 14:55 upstream 2db767d9889c 48359b97 .config console log report syz C ci-upstream-kasan-gce-386
2017/12/02 03:51 upstream a0651c7fa2c0 48359b97 .config console log report syz C ci-upstream-kasan-gce-386
2017/12/02 02:57 upstream a0651c7fa2c0 48359b97 .config console log report syz C ci-upstream-kasan-gce-386
2017/12/13 22:22 mmots 82bcf1def3b5 06ea774d .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/11 20:16 linux-next 153e8244ebcb da131727 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/09 17:51 mmots 82bcf1def3b5 5ad0ce95 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/08 22:00 mmots 82bcf1def3b5 5ad0ce95 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/06 12:23 linux-next d5c52866f560 0796857b .config console log report syz C ci-upstream-next-kasan-gce
2017/12/05 08:17 linux-next 7ceb97a071e8 de212f1a .config console log report syz C ci-upstream-next-kasan-gce
2017/12/04 08:24 linux-next 7cc61a0a562c 48359b97 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/03 12:34 mmots 4131d5166185 29b0fd90 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/03 09:45 mmots 4131d5166185 29b0fd90 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/12/02 02:02 linux-next fb20eb9d798d 16668351 .config console log report syz C ci-upstream-next-kasan-gce
2017/12/17 11:23 upstream f3b5ad89de16 d5beb42a .config console log report ci-upstream-kasan-gce
2017/12/17 11:10 upstream f3b5ad89de16 d5beb42a .config console log report ci-upstream-kasan-gce
2017/12/15 23:27 upstream 032b4cc8ff84 ac20b98c .config console log report ci-upstream-kasan-gce
2017/12/15 08:37 upstream d455df0bcc00 ac20b98c .config console log report ci-upstream-kasan-gce
2017/12/13 20:07 upstream d39a01eff9af 06ea774d .config console log report ci-upstream-kasan-gce
2017/12/11 22:35 upstream 50c4c4e268a2 da131727 .config console log report ci-upstream-kasan-gce
2017/12/11 14:19 upstream 50c4c4e268a2 27f5dfef .config console log report ci-upstream-kasan-gce
2017/12/11 05:27 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/12/10 13:55 upstream 4ded3bec65a0 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/12/10 08:24 upstream 4ded3bec65a0 5ad0ce95 .config console log report ci-upstream-kasan-gce
2017/12/17 11:19 upstream f3b5ad89de16 d5beb42a .config console log report ci-upstream-kasan-gce-386
2017/12/11 15:41 upstream 50c4c4e268a2 27f5dfef .config console log report ci-upstream-kasan-gce-386
2017/12/11 14:19 upstream 50c4c4e268a2 27f5dfef .config console log report ci-upstream-kasan-gce-386
2017/12/11 05:55 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/10 19:42 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/10 19:24 upstream 51090c5d6de0 5ad0ce95 .config console log report ci-upstream-kasan-gce-386
2017/12/19 13:31 mmots 82bcf1def3b5 af9163c7 .config console log report ci-upstream-mmots-kasan-gce
2017/12/19 11:50 mmots 82bcf1def3b5 25793abb .config console log report ci-upstream-mmots-kasan-gce
2017/12/19 07:26 mmots 82bcf1def3b5 1c4160ef .config console log report ci-upstream-mmots-kasan-gce
2017/12/19 07:11 mmots 82bcf1def3b5 1c4160ef .config console log report ci-upstream-mmots-kasan-gce
2017/12/19 03:00 mmots 82bcf1def3b5 1c4160ef .config console log report ci-upstream-mmots-kasan-gce
2017/12/18 22:15 mmots 82bcf1def3b5 1c4160ef .config console log report ci-upstream-mmots-kasan-gce
2017/12/17 20:50 mmots 82bcf1def3b5 d5beb42a .config console log report ci-upstream-mmots-kasan-gce
2017/12/17 14:51 mmots 82bcf1def3b5 d5beb42a .config console log report ci-upstream-mmots-kasan-gce
2017/12/17 05:10 mmots 82bcf1def3b5 b6f0c91b .config console log report ci-upstream-mmots-kasan-gce
2017/12/15 23:24 mmots 82bcf1def3b5 ac20b98c .config console log report ci-upstream-mmots-kasan-gce
2017/12/15 08:37 mmots 82bcf1def3b5 ac20b98c .config console log report ci-upstream-mmots-kasan-gce
2017/12/13 20:53 mmots 82bcf1def3b5 06ea774d .config console log report ci-upstream-mmots-kasan-gce
2017/12/13 14:32 mmots 82bcf1def3b5 ce7f2399 .config console log report ci-upstream-mmots-kasan-gce
2017/12/13 00:56 mmots 82bcf1def3b5 414a185f .config console log report ci-upstream-mmots-kasan-gce
2017/12/12 22:21 mmots 82bcf1def3b5 414a185f .config console log report ci-upstream-mmots-kasan-gce
2017/12/12 19:42 mmots 82bcf1def3b5 414a185f .config console log report ci-upstream-mmots-kasan-gce
2017/12/11 21:03 mmots 82bcf1def3b5 da131727 .config console log report ci-upstream-mmots-kasan-gce
2017/12/11 14:20 mmots 82bcf1def3b5 27f5dfef .config console log report ci-upstream-mmots-kasan-gce
2017/12/11 14:20 mmots 82bcf1def3b5 27f5dfef .config console log report ci-upstream-mmots-kasan-gce
2017/12/11 14:20 linux-next 153e8244ebcb 27f5dfef .config console log report ci-upstream-next-kasan-gce
2017/12/11 14:20 linux-next 153e8244ebcb 27f5dfef .config console log report ci-upstream-next-kasan-gce
2017/12/11 03:33 linux-next ad4dac17f9d5 5ad0ce95 .config console log report ci-upstream-next-kasan-gce
2017/12/10 23:43 mmots 82bcf1def3b5 5ad0ce95 .config console log report ci-upstream-mmots-kasan-gce
2017/12/10 12:47 linux-next ad4dac17f9d5 5ad0ce95 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.