2017/08/15 10:01:48 parsed 1 programs 2017/08/15 10:01:48 executed programs: 0 syzkaller login: [ 25.928742] ================================================================== [ 25.929268] BUG: KASAN: use-after-free in skb_release_data+0x5cf/0x790 [ 25.929699] Read of size 1 at addr ffff88003897fd42 by task syz-executor0/3823 [ 25.930297] [ 25.930466] CPU: 0 PID: 3823 Comm: syz-executor0 Not tainted 4.13.0-rc5-next-20170815+ #3 [ 25.931293] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.932012] Call Trace: [ 25.932515] dump_stack+0x194/0x257 [ 25.932802] ? arch_local_irq_restore+0x53/0x53 [ 25.933118] ? show_regs_print_info+0x65/0x65 [ 25.933414] ? skb_release_data+0x5cf/0x790 [ 25.933698] print_address_description+0x73/0x250 [ 25.934042] ? skb_release_data+0x5cf/0x790 [ 25.934341] kasan_report+0x24e/0x340 [ 25.934592] __asan_report_load1_noabort+0x14/0x20 [ 25.934923] skb_release_data+0x5cf/0x790 [ 25.935205] ? lock_downgrade+0x990/0x990 [ 25.935476] ? ip_route_input_rcu+0x1193/0x3210 [ 25.935798] ? do_raw_spin_trylock+0x190/0x190 [ 25.936171] ? skb_tx_error+0x2c0/0x2c0 [ 25.936564] ? refcount_add+0x60/0x60 [ 25.936942] ? rt_flush_dev+0x290/0x290 [ 25.937304] skb_release_all+0x4a/0x60 [ 25.937586] kfree_skb+0x15d/0x4c0 [ 25.937936] ? ip_defrag+0xc69/0x4000 [ 25.938312] ? __kfree_skb+0x20/0x20 [ 25.938684] ? lock_release+0xa40/0xa40 [ 25.939087] ? ipqhashfn+0xb7/0x180 [ 25.939414] ? ip4_frag_match+0x370/0x370 [ 25.939688] ? percpu_counter_add_batch+0xce/0x130 [ 25.940079] ip_defrag+0xc69/0x4000 [ 25.940409] ? ip_expire+0x6d0/0x6d0 [ 25.940652] ? lock_downgrade+0x990/0x990 [ 25.940971] ? lock_release+0xa40/0xa40 [ 25.941367] ip_local_deliver+0x174/0x6d0 [ 25.941644] ? ip_call_ra_chain+0x6d0/0x6d0 [ 25.941940] ? ip_route_input_noref+0x13c/0x1e0 [ 25.942245] ? ip_route_input_rcu+0x3210/0x3210 [ 25.942554] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.942904] ip_rcv_finish+0x8db/0x19c0 [ 25.943163] ? iptable_nat_ipv4_fn+0x40/0x40 [ 25.943449] ? ip_local_deliver_finish+0xba0/0xba0 [ 25.943776] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 25.944107] ? ip_rcv+0xf05/0x17d0 [ 25.944338] ? lock_downgrade+0x990/0x990 [ 25.944606] ? iptable_nat_ipv4_in+0x2c/0x40 [ 25.944908] ? nf_hook_slow+0x12d/0x290 [ 25.945169] ? nf_unregister_afinfo+0x150/0x150 [ 25.945565] ? lock_release+0xa40/0xa40 [ 25.945875] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 25.946252] ip_rcv+0xc3f/0x17d0 [ 25.946479] ? ip_local_deliver+0x6d0/0x6d0 [ 25.946764] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.947119] ? lock_release+0xa40/0xa40 [ 25.947381] ? unwind_dump+0x4c0/0x4c0 [ 25.947636] ? ip_local_deliver_finish+0xba0/0xba0 [ 25.947963] ? ip_local_deliver+0x6d0/0x6d0 [ 25.948320] __netif_receive_skb_core+0x19af/0x33d0 [ 25.948744] ? unwind_get_return_address+0x61/0xa0 [ 25.949083] ? nf_ingress+0x9f0/0x9f0 [ 25.949337] ? save_stack+0xa3/0xd0 [ 25.949577] ? save_stack_trace+0x16/0x20 [ 25.949856] ? save_stack+0x43/0xd0 [ 25.950096] ? kasan_kmalloc+0xad/0xe0 [ 25.950359] ? kasan_slab_alloc+0x12/0x20 [ 25.950634] ? kmem_cache_alloc+0x12e/0x760 [ 25.950924] ? __build_skb+0x9d/0x450 [ 25.951176] ? build_skb+0x6f/0x260 [ 25.951417] ? tun_get_user+0x1db7/0x2150 [ 25.951694] ? tun_chr_write_iter+0xd8/0x190 [ 25.952069] ? __vfs_write+0x684/0x970 [ 25.952401] ? vfs_write+0x189/0x510 [ 25.952718] ? SyS_write+0xef/0x220 [ 25.953027] ? entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.953451] ? __skb_flow_dissect+0xfa1/0x3ae0 [ 25.953842] ? __sched_text_start+0x8/0x8 [ 25.954513] ? plist_check_list+0x7e/0xa0 [ 25.954855] ? __skb_flow_get_ports+0x400/0x400 [ 25.955237] ? bpf_prog_alloc+0x2e0/0x310 [ 25.955576] ? lock_acquire+0x1d5/0x580 [ 25.955895] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 25.956315] ? lock_downgrade+0x990/0x990 [ 25.956652] ? pvclock_read_flags+0x160/0x160 [ 25.957010] ? __build_skb+0x325/0x450 [ 25.957324] ? lock_acquire+0x1d5/0x580 [ 25.957641] ? lock_acquire+0x1d5/0x580 [ 25.957956] ? netif_receive_skb_internal+0x93/0x5e0 [ 25.958370] ? ktime_get_with_offset+0x2c1/0x420 [ 25.958750] ? lock_release+0xa40/0xa40 [ 25.959067] ? do_gettimeofday+0x190/0x190 [ 25.959403] ? __build_skb+0x450/0x450 [ 25.959715] __netif_receive_skb+0x2c/0x1b0 [ 25.960061] ? __netif_receive_skb+0x2c/0x1b0 [ 25.960418] netif_receive_skb_internal+0x10b/0x5e0 [ 25.960816] ? dev_cpu_dead+0xb00/0xb00 [ 25.961135] ? tun_device_event+0xca0/0xca0 [ 25.961480] ? futex_wake+0x680/0x680 [ 25.961782] ? __unqueue_futex+0x1c0/0x290 [ 25.962125] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 25.962535] netif_receive_skb+0xae/0x390 [ 25.962870] ? netif_receive_skb_internal+0x5e0/0x5e0 [ 25.963287] ? mark_wake_futex+0xc0/0x1c0 [ 25.963618] ? futex_wait_setup+0x3d0/0x3d0 [ 25.963967] ? tun_rx_batched.isra.43+0x5bd/0x860 [ 25.964358] tun_rx_batched.isra.43+0x5e7/0x860 [ 25.964731] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 25.965105] ? tun_sock_write_space+0x370/0x370 [ 25.965480] ? tun_free_netdev+0x1b0/0x1b0 [ 25.965824] tun_get_user+0x11dd/0x2150 [ 25.966149] ? tun_flow_update+0xf70/0xf70 [ 25.966512] ? lock_acquire+0x1d5/0x580 [ 25.966828] ? lock_acquire+0x1d5/0x580 [ 25.967146] ? __tun_get+0x1ab/0x2e0 [ 25.967442] ? lock_downgrade+0x990/0x990 [ 25.967777] ? lock_release+0xa40/0xa40 [ 25.968097] ? __fget+0x35c/0x570 [ 25.968380] ? __tun_get+0x1d4/0x2e0 [ 25.968674] ? tun_chr_close+0x60/0x60 [ 25.968983] ? do_raw_spin_trylock+0x190/0x190 [ 25.969348] ? lock_acquire+0x190/0x580 [ 25.969662] ? lock_acquire+0x1d5/0x580 [ 25.969979] tun_chr_write_iter+0xd8/0x190 [ 25.970327] __vfs_write+0x684/0x970 [ 25.970624] ? default_llseek+0x290/0x290 [ 25.970957] ? _cond_resched+0x14/0x30 [ 25.971271] ? avc_policy_seqno+0x9/0x20 [ 25.971593] ? selinux_file_permission+0x82/0x460 [ 25.971980] ? rw_verify_area+0xe5/0x2b0 [ 25.972306] ? __fdget_raw+0x20/0x20 [ 25.972603] vfs_write+0x189/0x510 [ 25.972887] SyS_write+0xef/0x220 [ 25.973166] ? SyS_read+0x220/0x220 [ 25.973456] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.973834] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 25.974210] RIP: 0033:0x40bab1 [ 25.974466] RSP: 002b:00007f8b2d89fc00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 25.975079] RAX: ffffffffffffffda RBX: 0000000000000036 RCX: 000000000040bab1 [ 25.975899] RDX: 0000000000000036 RSI: 0000000020002000 RDI: 0000000000000003 [ 25.976300] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 25.976693] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 [ 25.977229] R13: 0000000000000000 R14: 00007f8b2d8a09c0 R15: 00007f8b2d8a0700 [ 25.977717] [ 25.977824] The buggy address belongs to the page: [ 25.978100] page:ffffea0000e25fc0 count:0 mapcount:0 mapping: (null) index:0x0 [ 25.978552] flags: 0x100000000000000() [ 25.978774] raw: 0100000000000000 0000000000000000 0000000000000000 00000000ffffffff [ 25.979387] raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 [ 25.979832] page dumped because: kasan: bad access detected [ 25.980140] [ 25.980230] Memory state around the buggy address: [ 25.980497] ffff88003897fc00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.980997] ffff88003897fc80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.981478] >ffff88003897fd00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.981882] ^ [ 25.982177] ffff88003897fd80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.982603] ffff88003897fe00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 25.983237] ================================================================== [ 25.983731] Kernel panic - not syncing: panic_on_warn set ... [ 25.983731] [ 25.984226] CPU: 0 PID: 3823 Comm: syz-executor0 Tainted: G B 4.13.0-rc5-next-20170815+ #3 [ 25.984845] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 25.985547] Call Trace: [ 25.985715] dump_stack+0x194/0x257 [ 25.985968] ? arch_local_irq_restore+0x53/0x53 [ 25.986265] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 25.986572] ? skb_release_data+0x520/0x790 [ 25.986852] panic+0x1e4/0x417 [ 25.987068] ? __warn+0x1d9/0x1d9 [ 25.987326] ? skb_release_data+0x5cf/0x790 [ 25.987744] kasan_end_report+0x50/0x50 [ 25.988014] kasan_report+0x137/0x340 [ 25.988276] __asan_report_load1_noabort+0x14/0x20 [ 25.988593] skb_release_data+0x5cf/0x790 [ 25.988878] ? lock_downgrade+0x990/0x990 [ 25.989148] ? ip_route_input_rcu+0x1193/0x3210 [ 25.989528] ? do_raw_spin_trylock+0x190/0x190 [ 25.989957] ? skb_tx_error+0x2c0/0x2c0 [ 25.990216] ? refcount_add+0x60/0x60 [ 25.990472] ? rt_flush_dev+0x290/0x290 [ 25.990738] skb_release_all+0x4a/0x60 [ 25.990999] kfree_skb+0x15d/0x4c0 [ 25.991226] ? ip_defrag+0xc69/0x4000 [ 25.991542] ? __kfree_skb+0x20/0x20 [ 25.991880] ? lock_release+0xa40/0xa40 [ 25.992141] ? ipqhashfn+0xb7/0x180 [ 25.992377] ? ip4_frag_match+0x370/0x370 [ 25.992646] ? percpu_counter_add_batch+0xce/0x130 [ 25.992979] ip_defrag+0xc69/0x4000 [ 25.993217] ? ip_expire+0x6d0/0x6d0 [ 25.993514] ? lock_downgrade+0x990/0x990 [ 25.993901] ? lock_release+0xa40/0xa40 [ 25.994168] ip_local_deliver+0x174/0x6d0 [ 25.994446] ? ip_call_ra_chain+0x6d0/0x6d0 [ 25.994731] ? ip_route_input_noref+0x13c/0x1e0 [ 25.995060] ? ip_route_input_rcu+0x3210/0x3210 [ 25.995365] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 25.995788] ip_rcv_finish+0x8db/0x19c0 [ 25.996145] ? iptable_nat_ipv4_fn+0x40/0x40 [ 25.996741] ? ip_local_deliver_finish+0xba0/0xba0 [ 25.997084] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 25.997421] ? ip_rcv+0xf05/0x17d0 [ 25.997642] ? lock_downgrade+0x990/0x990 [ 25.997977] ? iptable_nat_ipv4_in+0x2c/0x40 [ 25.998384] ? nf_hook_slow+0x12d/0x290 [ 25.998645] ? nf_unregister_afinfo+0x150/0x150 [ 25.998969] ? lock_release+0xa40/0xa40 [ 25.999241] ? __read_once_size_nocheck.constprop.8+0x10/0x10 [ 25.999624] ip_rcv+0xc3f/0x17d0 [ 25.999946] ? ip_local_deliver+0x6d0/0x6d0 [ 26.000292] ? debug_check_no_locks_freed+0x3c0/0x3c0 [ 26.000631] ? lock_release+0xa40/0xa40 [ 26.000902] ? unwind_dump+0x4c0/0x4c0 [ 26.001155] ? ip_local_deliver_finish+0xba0/0xba0 [ 26.001475] ? ip_local_deliver+0x6d0/0x6d0 [ 26.001869] __netif_receive_skb_core+0x19af/0x33d0 [ 26.002316] ? unwind_get_return_address+0x61/0xa0 [ 26.002640] ? nf_ingress+0x9f0/0x9f0 [ 26.002901] ? save_stack+0xa3/0xd0 [ 26.003134] ? save_stack_trace+0x16/0x20 [ 26.003402] ? save_stack+0x43/0xd0 [ 26.003681] ? kasan_kmalloc+0xad/0xe0 [ 26.004066] ? kasan_slab_alloc+0x12/0x20 [ 26.004350] ? kmem_cache_alloc+0x12e/0x760 [ 26.004629] ? __build_skb+0x9d/0x450 [ 26.004884] ? build_skb+0x6f/0x260 [ 26.005113] ? tun_get_user+0x1db7/0x2150 [ 26.005380] ? tun_chr_write_iter+0xd8/0x190 [ 26.005661] ? __vfs_write+0x684/0x970 [ 26.005922] ? vfs_write+0x189/0x510 [ 26.006161] ? SyS_write+0xef/0x220 [ 26.006452] ? entry_SYSCALL_64_fastpath+0x1f/0xbe [ 26.006820] ? __skb_flow_dissect+0xfa1/0x3ae0 [ 26.007102] ? __sched_text_start+0x8/0x8 [ 26.007366] ? plist_check_list+0x7e/0xa0 [ 26.007746] ? __skb_flow_get_ports+0x400/0x400 [ 26.008207] ? bpf_prog_alloc+0x2e0/0x310 [ 26.008523] ? lock_acquire+0x1d5/0x580 [ 26.008798] ? netif_receive_skb_internal+0x1d7/0x5e0 [ 26.009138] ? lock_downgrade+0x990/0x990 [ 26.009414] ? pvclock_read_flags+0x160/0x160 [ 26.009710] ? __build_skb+0x325/0x450 [ 26.009979] ? lock_acquire+0x1d5/0x580 [ 26.010241] ? lock_acquire+0x1d5/0x580 [ 26.010568] ? netif_receive_skb_internal+0x93/0x5e0 [ 26.011026] ? ktime_get_with_offset+0x2c1/0x420 [ 26.011340] ? lock_release+0xa40/0xa40 [ 26.011601] ? do_gettimeofday+0x190/0x190 [ 26.011900] ? __build_skb+0x450/0x450 [ 26.012158] __netif_receive_skb+0x2c/0x1b0 [ 26.012439] ? __netif_receive_skb+0x2c/0x1b0 [ 26.012816] netif_receive_skb_internal+0x10b/0x5e0 [ 26.013233] ? dev_cpu_dead+0xb00/0xb00 [ 26.013491] ? tun_device_event+0xca0/0xca0 [ 26.013785] ? futex_wake+0x680/0x680 [ 26.014034] ? __unqueue_futex+0x1c0/0x290 [ 26.014312] ? drop_futex_key_refs.isra.13+0x63/0xb0 [ 26.014644] netif_receive_skb+0xae/0x390 [ 26.014997] ? netif_receive_skb_internal+0x5e0/0x5e0 [ 26.015437] ? mark_wake_futex+0xc0/0x1c0 [ 26.015710] ? futex_wait_setup+0x3d0/0x3d0 [ 26.016015] ? tun_rx_batched.isra.43+0x5bd/0x860 [ 26.016356] tun_rx_batched.isra.43+0x5e7/0x860 [ 26.016685] ? skb_get_hash_perturb+0x9d0/0x9d0 [ 26.017004] ? tun_sock_write_space+0x370/0x370 [ 26.017463] ? tun_free_netdev+0x1b0/0x1b0 [ 26.018085] tun_get_user+0x11dd/0x2150 [ 26.018372] ? tun_flow_update+0xf70/0xf70 [ 26.018665] ? lock_acquire+0x1d5/0x580 [ 26.018940] ? lock_acquire+0x1d5/0x580 [ 26.019272] ? __tun_get+0x1ab/0x2e0 [ 26.019623] ? lock_downgrade+0x990/0x990 [ 26.019910] ? lock_release+0xa40/0xa40 [ 26.020168] ? __fget+0x35c/0x570 [ 26.020396] ? __tun_get+0x1d4/0x2e0 [ 26.020638] ? tun_chr_close+0x60/0x60 [ 26.020906] ? do_raw_spin_trylock+0x190/0x190 [ 26.021205] ? lock_acquire+0x190/0x580 [ 26.021576] ? lock_acquire+0x1d5/0x580 [ 26.021910] tun_chr_write_iter+0xd8/0x190 [ 26.022184] __vfs_write+0x684/0x970 [ 26.022431] ? default_llseek+0x290/0x290 [ 26.022698] ? _cond_resched+0x14/0x30 [ 26.022980] ? avc_policy_seqno+0x9/0x20 [ 26.023299] ? selinux_file_permission+0x82/0x460 [ 26.023748] ? rw_verify_area+0xe5/0x2b0 [ 26.024037] ? __fdget_raw+0x20/0x20 [ 26.024283] vfs_write+0x189/0x510 [ 26.024516] SyS_write+0xef/0x220 [ 26.024743] ? SyS_read+0x220/0x220 [ 26.024986] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.025311] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 26.025717] RIP: 0033:0x40bab1 [ 26.026015] RSP: 002b:00007f8b2d89fc00 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 26.026518] RAX: ffffffffffffffda RBX: 0000000000000036 RCX: 000000000040bab1 [ 26.027002] RDX: 0000000000000036 RSI: 0000000020002000 RDI: 0000000000000003 [ 26.027552] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 26.028146] R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 [ 26.028617] R13: 0000000000000000 R14: 00007f8b2d8a09c0 R15: 00007f8b2d8a0700 [ 26.029181] Dumping ftrace buffer: [ 26.029426] (ftrace buffer empty) [ 26.029741] Kernel Offset: disabled [ 26.030079] Rebooting in 86400 seconds..