syzbot


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

Status: closed as invalid on 2017/10/18 19:51
Subsystems: lsm
[Documentation on labels]
First crash: 2659d, last: 2659d

Sample crash report:
audit: type=1326 audit(1508344024.591:14): auid=4294967295 uid=0 gid=0 ses=4294967295 subj=kernel pid=6120 comm="syz-executor0" exe="/root/syz-executor0" sig=9 arch=c000003e syscall=202 compat=0 ip=0x452719 code=0x0
==================================================================
BUG: KASAN: stack-out-of-bounds in __read_once_size include/linux/compiler.h:276 [inline]
BUG: KASAN: stack-out-of-bounds in deref_stack_reg+0x1b8/0x1d0 arch/x86/kernel/unwind_orc.c:282
Read of size 8 at addr ffff8801c509fc20 by task blkid/6164

CPU: 0 PID: 6164 Comm: blkid Not tainted 4.14.0-rc5-mm1+ #17
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:16 [inline]
 dump_stack+0x173/0x237 lib/dump_stack.c:52
 print_address_description+0x6e/0x250 mm/kasan/report.c:252
 kasan_report_error mm/kasan/report.c:351 [inline]
 kasan_report+0x251/0x340 mm/kasan/report.c:409
 __read_once_size include/linux/compiler.h:276 [inline]
 deref_stack_reg+0x1b8/0x1d0 arch/x86/kernel/unwind_orc.c:282
 unwind_next_frame+0xebc/0x1df0 arch/x86/kernel/unwind_orc.c:426
 __save_stack_trace+0x6e/0xd0 arch/x86/kernel/stacktrace.c:44
 save_stack+0x32/0xb0 mm/kasan/kasan.c:447
 set_track mm/kasan/kasan.c:459 [inline]
 kasan_slab_free+0x71/0xc0 mm/kasan/kasan.c:524
 __cache_free mm/slab.c:3492 [inline]
 kfree+0xc8/0x250 mm/slab.c:3807
 security_cred_free+0x42/0x80 security/security.c:994
 put_cred_rcu+0xee/0x3c0 kernel/cred.c:117
 __rcu_reclaim kernel/rcu/rcu.h:172 [inline]
 rcu_do_batch kernel/rcu/tree.c:2676 [inline]
 invoke_rcu_callbacks kernel/rcu/tree.c:2930 [inline]
 __rcu_process_callbacks kernel/rcu/tree.c:2897 [inline]
 rcu_process_callbacks+0xcd4/0x1600 kernel/rcu/tree.c:2914
 __do_softirq+0x2ba/0xafb kernel/softirq.c:284
 invoke_softirq kernel/softirq.c:364 [inline]
 irq_exit+0x1c7/0x200 kernel/softirq.c:405
 exiting_irq arch/x86/include/asm/apic.h:540 [inline]
 smp_apic_timer_interrupt+0x154/0x6b0 arch/x86/kernel/apic/apic.c:1052
 apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:770
 </IRQ>
RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:772 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:794 [inline]
RIP: 0010:lock_is_held_type+0x84/0x200 kernel/locking/lockdep.c:4025
RSP: 0018:ffff8801c509fa50 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff11
RAX: dffffc0000000000 RBX: ffff8801c56ba680 RCX: 0000000000000000
RDX: 1ffffffff0ad8f48 RSI: 00000000ffffffff RDI: ffffffff856c7a40
RBP: 00000000000000c8 R08: 0000000000000002 R09: 0000000038502891
R10: 00000000de5196b2 R11: 0000000000000000 R12: ffffffff85737ce0
R13: 0000000000000108 R14: 00000000014080c0 R15: ffff8801c6114880
 kmem_cache_zalloc include/linux/slab.h:681 [inline]
 mmap_region+0x749/0x1470 mm/mmap.c:1658

The buggy address belongs to the page:
page:ffffea00071427c0 count:0 mapcount:0 mapping:          (null) index:0x0
flags: 0x200000000000000()
raw: 0200000000000000 0000000000000000 0000000000000000 00000000ffffffff
raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801c509fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
 ffff8801c509fb80: f1 00 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 f2 f2
>ffff8801c509fc00: f2 00 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f3 f3 f3
                               ^
 ffff8801c509fc80: f3 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
 ffff8801c509fd00: f1 00 f2 f2 f2 f3 f3 f3 f3 00 00 00 00 00 00 00
==================================================================

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/10/18 16:27 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 16:25 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 16:24 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 16:14 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 16:03 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 16:01 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:58 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:58 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:58 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:57 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:55 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:55 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:50 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:45 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:43 linux-next a7dd40274d75 fe864987 .config console log report ci-upstream-next-kasan-gce
2017/10/18 15:40 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:39 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:39 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:36 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
2017/10/18 15:36 mmots 3ac81ebcbbb3 fe864987 .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.