================================================================== 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 ffff88003d9ebd48 by task syz-executor6/26190 CPU: 0 PID: 26190 Comm: syz-executor6 Not tainted 4.13.0-next-20170906+ #16 QAT: Invalid ioctl 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 QAT: Invalid ioctl 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:rep_nop arch/x86/include/asm/processor.h:634 [inline] RIP: 0010:cpu_relax arch/x86/include/asm/processor.h:639 [inline] RIP: 0010:csd_lock_wait kernel/smp.c:108 [inline] RIP: 0010:smp_call_function_many+0x6ea/0x930 kernel/smp.c:468 RSP: 0018:ffff88003a0b6908 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff10 RAX: ffff88003ad622c0 RBX: ffff88006de295a0 RCX: 0000000000000004 RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffff857eaa70 RBP: ffff88003a0b6a30 R08: fffffbffffeaf11a R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88006de295b8 R13: dffffc0000000000 R14: ffff88003a0b6a08 R15: ffffed0007416d39 smp_call_function kernel/smp.c:492 [inline] on_each_cpu+0x3d/0x1b0 kernel/smp.c:602 text_poke_bp+0xbb/0x170 arch/x86/kernel/alternative.c:807 __jump_label_transform.isra.0+0x6a5/0x8a0 arch/x86/kernel/jump_label.c:101 arch_jump_label_transform+0x2f/0x40 arch/x86/kernel/jump_label.c:109 __jump_label_update+0x207/0x2d0 kernel/jump_label.c:368 jump_label_update+0x22c/0x2b0 kernel/jump_label.c:735 static_key_slow_dec_cpuslocked+0x176/0x1d0 kernel/jump_label.c:204 __static_key_slow_dec kernel/jump_label.c:214 [inline] static_key_slow_dec+0x56/0x90 kernel/jump_label.c:228 kvm_arch_vcpu_uninit+0x18e/0x1d0 arch/x86/kvm/x86.c:8062 kvm_vcpu_uninit+0x44/0x90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:314 vmx_free_vcpu+0x209/0x2c0 arch/x86/kvm/vmx.c:9504 kvm_arch_vcpu_free arch/x86/kvm/x86.c:7693 [inline] kvm_free_vcpus arch/x86/kvm/x86.c:8129 [inline] kvm_arch_destroy_vm+0x4b4/0x990 arch/x86/kvm/x86.c:8228 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:726 [inline] kvm_put_kvm+0x695/0xdf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:747 kvm_vm_release+0x42/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:758 __fput+0x333/0x7f0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:246 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:00007f8d3da98c08 EFLAGS: 00000282 ORIG_RAX: 000000000000012a RAX: fffffffffffffffd RBX: 00000000208a7f88 RCX: 0000000000447299 RDX: ffffffffffffffff RSI: 00000000000002da RDI: 00000000208a7f88 RBP: 00000000007080b0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000282 R12: 00000000ffffffff R13: 0000000000003d10 R14: 00000000006e6dd0 R15: 00000000000002da Allocated by task 26233: 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_node mm/slab.c:3689 [inline] __kmalloc_node+0x47/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:535 [inline] bpf_map_area_alloc+0x32/0x80 kernel/bpf/syscall.c:118 array_map_alloc+0x2ef/0x830 kernel/bpf/arraymap.c:82 find_and_alloc_map kernel/bpf/syscall.c:100 [inline] map_create kernel/bpf/syscall.c:331 [inline] SYSC_bpf kernel/bpf/syscall.c:1463 [inline] SyS_bpf+0xc56/0x4c50 kernel/bpf/syscall.c:1444 entry_SYSCALL_64_fastpath+0x1f/0xbe Freed by task 25468: 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 ffff88003d9e8940 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 13320 bytes inside of 16384-byte region [ffff88003d9e8940, ffff88003d9ec940) The buggy address belongs to the page: page:ffffea0000f67a00 count:1 mapcount:0 mapping:ffff88003d9e8940 index:0x0 compound_mapcount: 0 flags: 0x100000000008100(slab|head) raw: 0100000000008100 ffff88003d9e8940 0000000000000000 0000000100000001 raw: ffffea0000e27620 ffff88003e801c50 ffff88003e802200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88003d9ebc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88003d9ebc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88003d9ebd00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88003d9ebd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88003d9ebe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================