================================================================== 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 ffff880038ff3a08 by task kworker/u8:1/1196 CPU: 1 PID: 1196 Comm: kworker/u8:1 Not tainted 4.13.0-next-20170908+ #18 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: netns cleanup_net 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:__read_once_size include/linux/compiler.h:276 [inline] RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:26 [inline] RIP: 0010:rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:362 [inline] RIP: 0010:rcu_is_watching+0x79/0x110 kernel/rcu/tree.c:1120 RSP: 0018:ffff88003b767018 EFLAGS: 00000a07 ORIG_RAX: ffffffffffffff10 RAX: 1ffff10007da35dd RBX: 1ffff100076ece04 RCX: 1ffff100076ece08 RDX: 0000000000000000 RSI: 0000000066c6964d RDI: ffff88003ed1aeec RBP: ffff88003b767098 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff8705eca0 R12: ffff88003ed1aee0 R13: ffff88003b767080 R14: ffff88003b767228 R15: dffffc0000000000 rcu_read_unlock include/linux/rcupdate.h:682 [inline] inet_twsk_purge+0x61c/0x770 net/ipv4/inet_timewait_sock.c:302 dccp_v6_exit_batch+0x1a/0x20 net/dccp/ipv6.c:1112 ops_exit_list.isra.6+0x100/0x150 net/core/net_namespace.c:145 cleanup_net+0x5c7/0xb60 net/core/net_namespace.c:483 process_one_work+0xbfa/0x1bd0 kernel/workqueue.c:2119 worker_thread+0x223/0x1860 kernel/workqueue.c:2253 dccp_invalid_packet: invalid packet type kthread+0x39c/0x470 kernel/kthread.c:231 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 Allocated by task 5963: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x43/0xd0 mm/kasan/kasan.c:447 dccp_invalid_packet: invalid packet type 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 copy_namespaces+0x340/0x400 kernel/nsproxy.c:165 copy_process.part.36+0x22fd/0x4af0 kernel/fork.c:1738 copy_process kernel/fork.c:1548 [inline] _do_fork+0x1ef/0xfe0 kernel/fork.c:2027 SYSC_clone kernel/fork.c:2137 [inline] SyS_clone+0x37/0x50 kernel/fork.c:2131 do_syscall_64+0x26c/0x8c0 arch/x86/entry/common.c:287 return_from_SYSCALL_64+0x0/0x7a Freed by task 5708: 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:7963 [inline] free_netdev+0x2cf/0x360 net/core/dev.c:8125 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 ffff880038ff0600 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff880038ff0600, ffff880038ff4600) The buggy address belongs to the page: page:ffffea0000e3fc00 count:1 mapcount:0 mapping:ffff880038ff0600 index:0x0 compound_mapcount: 0 flags: 0x100000000008100(slab|head) raw: 0100000000008100 ffff880038ff0600 0000000000000000 0000000100000001 raw: ffffea0000df5e20 ffffea0000a7e420 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff880038ff3900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880038ff3980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff880038ff3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff880038ff3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff880038ff3b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================