================================================================== 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 ffff880069613b88 by task syz-executor2/9345 CPU: 2 PID: 9345 Comm: syz-executor2 Not tainted 4.13.0-next-20170913+ #3 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:814 [inline] RIP: 0010:lock_release+0x69b/0xd70 kernel/locking/lockdep.c:4024 RSP: 0018:ffff88006b6d6f30 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: dffffc0000000000 RBX: 1ffff1000d6dadeb RCX: ffff880067cbabc8 RDX: 1ffffffff0b59305 RSI: 0000000000000001 RDI: 0000000000000282 RBP: ffff88006b6d70e0 R08: ffff8800699d0380 R09: 1ffff1000d6dadf7 R10: ffff880067cba300 R11: 0000000000000000 R12: ffff88006b6d6fb8 R13: ffff880067cba300 R14: 0000000000000000 R15: 0000000000000003 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock+0x1a/0x30 kernel/locking/spinlock.c:183 spin_unlock include/linux/spinlock.h:356 [inline] __dentry_kill+0x4cf/0x6d0 fs/dcache.c:584 dentry_kill fs/dcache.c:613 [inline] dput.part.24+0x62c/0x740 fs/dcache.c:823 dput+0x1f/0x30 fs/dcache.c:787 __fput+0x52b/0x7f0 fs/file_table.c:228 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:112 exit_task_work include/linux/task_work.h:21 [inline] do_exit+0xa52/0x1b40 kernel/exit.c:865 do_group_exit+0x149/0x400 kernel/exit.c:968 get_signal+0x7e8/0x17e0 kernel/signal.c:2334 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:808 exit_to_usermode_loop+0x224/0x300 arch/x86/entry/common.c:158 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath+0x42f/0x500 arch/x86/entry/common.c:266 entry_SYSCALL_64_fastpath+0xbc/0xbe RIP: 0033:0x447299 RSP: 002b:00007f08fbdb0c08 EFLAGS: 00000282 ORIG_RAX: 000000000000012a RAX: fffffffffffffffd RBX: 00000000206d1000 RCX: 0000000000447299 RDX: ffffffffffffffff RSI: 0000000000000295 RDI: 00000000206d1000 RBP: 0000000000708000 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000282 R12: 00000000ffffffff R13: 0000000000003d10 R14: 00000000006e6dd0 R15: 0000000000000295 Allocated by task 9361: 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 kmem_cache_alloc_trace+0x136/0x750 mm/slab.c:3627 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:666 [inline] tipc_nametbl_init+0x241/0x5e0 net/tipc/name_table.c:810 tipc_init_net+0x347/0x570 net/tipc/core.c:69 ops_init+0x10a/0x570 net/core/net_namespace.c:118 setup_net+0x319/0x720 net/core/net_namespace.c:294 copy_net_ns+0x27c/0x580 net/core/net_namespace.c:418 create_new_namespaces+0x425/0x880 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xae/0x1e0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2348 [inline] SyS_unshare+0x653/0xfa0 kernel/fork.c:2298 entry_SYSCALL_64_fastpath+0x1f/0xbe Freed by task 8879: 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 entry_SYSCALL_64_fastpath+0x1f/0xbe The buggy address belongs to the object at ffff880069610780 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff880069610780, ffff880069614780) The buggy address belongs to the page: page:ffffea0001a58400 count:1 mapcount:0 mapping:ffff880069610780 index:0x0 compound_mapcount: 0 flags: 0x500000000008100(slab|head) raw: 0500000000008100 ffff880069610780 0000000000000000 0000000100000001 raw: ffffea0001a51a20 ffffea00019cd820 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880069613a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880069613b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880069613b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff880069613c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880069613c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================