================================================================== BUG: KASAN: slab-out-of-bounds in __collect_expired_timers include/linux/list.h:729 [inline] BUG: KASAN: slab-out-of-bounds in collect_expired_timers kernel/time/timer.c:1569 [inline] BUG: KASAN: slab-out-of-bounds in __run_timers+0xa2e/0xb90 kernel/time/timer.c:1616 Write of size 8 at addr ffff880054adba08 by task syz-executor1/7139 CPU: 3 PID: 7139 Comm: syz-executor1 Not tainted 4.13.0-next-20170915+ #5 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_address_description+0x73/0x250 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report+0x24e/0x340 mm/kasan/report.c:409 __asan_report_store8_noabort+0x17/0x20 mm/kasan/report.c:435 __collect_expired_timers include/linux/list.h:729 [inline] collect_expired_timers kernel/time/timer.c:1569 [inline] __run_timers+0xa2e/0xb90 kernel/time/timer.c:1616 run_timer_softirq+0x4c/0xb0 kernel/time/timer.c:1646 __do_softirq+0x2bb/0xbd0 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1d3/0x210 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x177/0x710 arch/x86/kernel/apic/apic.c:1048 apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:577 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_acquire+0x256/0x580 kernel/locking/lockdep.c:4005 RSP: 0018:ffff88003529f678 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: ffff88003bf56580 RCX: 0000000000000000 RDX: 1ffffffff0b5933d RSI: ffffffff816dd0be RDI: 0000000000000282 RBP: ffff88003529f770 R08: ffff88003529f0f0 R09: ffff88003529f0e8 R10: ffff88003529f060 R11: 1ffff100077eaf43 R12: 1ffff10006a53ed5 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 fs_reclaim_acquire.part.85+0x24/0x30 mm/page_alloc.c:3560 fs_reclaim_acquire mm/page_alloc.c:3559 [inline] prepare_alloc_pages mm/page_alloc.c:4146 [inline] __alloc_pages_nodemask+0x3c7/0xd80 mm/page_alloc.c:4187 alloc_pages_current+0xb6/0x1e0 mm/mempolicy.c:2035 alloc_pages include/linux/gfp.h:505 [inline] __vmalloc_area_node mm/vmalloc.c:1704 [inline] __vmalloc_node_range+0x439/0x730 mm/vmalloc.c:1765 __vmalloc_node mm/vmalloc.c:1810 [inline] vmalloc_user+0x47/0x120 mm/vmalloc.c:1880 kcov_mmap+0x2e/0x160 kernel/kcov.c:143 call_mmap include/linux/fs.h:1775 [inline] mmap_region+0xa99/0x15a0 mm/mmap.c:1690 do_mmap+0x6a1/0xd50 mm/mmap.c:1468 do_mmap_pgoff include/linux/mm.h:2151 [inline] vm_mmap_pgoff+0x1de/0x280 mm/util.c:333 SYSC_mmap_pgoff mm/mmap.c:1518 [inline] SyS_mmap_pgoff+0x462/0x5f0 mm/mmap.c:1476 SYSC_mmap arch/x86/kernel/sys_x86_64.c:99 [inline] SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:90 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x44751a RSP: 002b:00007fff45d7a5a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00000000007082c0 RCX: 000000000044751a RDX: 0000000000000003 RSI: 0000000000080000 RDI: 0000000000000000 RBP: 0000000000000082 R08: 0000000000000009 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000080086301 R13: 0000000000708b00 R14: 000000000040e530 R15: 0000000000000000 Allocated by task 7031: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3725 [inline] __kmalloc+0x162/0x760 mm/slab.c:3734 kmalloc_array include/linux/slab.h:612 [inline] kcalloc include/linux/slab.h:623 [inline] __rds_conn_create+0x4cc/0x1870 net/rds/connection.c:176 rds_conn_create_outgoing+0x3f/0x50 net/rds/connection.c:303 rds_sendmsg+0xd6c/0x1f90 net/rds/send.c:1112 sock_sendmsg_nosec net/socket.c:633 [inline] sock_sendmsg+0xca/0x110 net/socket.c:643 SYSC_sendto+0x358/0x5a0 net/socket.c:1750 SyS_sendto+0x40/0x50 net/socket.c:1718 entry_SYSCALL_64_fastpath+0x1f/0xbe Freed by task 6648: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 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:3503 [inline] kfree+0xca/0x250 mm/slab.c:3820 kvfree+0x36/0x60 mm/util.c:416 netdev_freemem net/core/dev.c:7970 [inline] free_netdev+0x2cf/0x360 net/core/dev.c:8132 tun_set_iff drivers/net/tun.c:2105 [inline] __tun_chr_ioctl+0x2cf6/0x3d20 drivers/net/tun.c:2276 tun_chr_ioctl+0x2a/0x40 drivers/net/tun.c:2521 vfs_ioctl fs/ioctl.c:45 [inline] do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:685 SYSC_ioctl fs/ioctl.c:700 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:691 do_syscall_64+0x26c/0x8c0 arch/x86/entry/common.c:287 return_from_SYSCALL_64+0x0/0x7a The buggy address belongs to the object at ffff880054ad8600 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff880054ad8600, ffff880054adc600) The buggy address belongs to the page: page:ffffea000152b600 count:1 mapcount:0 mapping:ffff880054ad8600 index:0x0 compound_mapcount: 0 flags: 0x500000000008100(slab|head) raw: 0500000000008100 ffff880054ad8600 0000000000000000 0000000100000001 raw: ffffea0001524420 ffffea000152cc20 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880054adb900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880054adb980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880054adba00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff880054adba80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880054adbb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================