[....] Starting enhanced syslogd: rsyslogd[ 11.377682] audit: type=1400 audit(1513758178.766:5): avc: denied { syslog } for pid=2983 comm="rsyslogd" capability=34 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 [?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 17.307562] audit: type=1400 audit(1513758184.696:6): avc: denied { map } for pid=3124 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added 'ci-upstream-kasan-gce-8,10.128.0.10' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 45.358961] audit: type=1400 audit(1513758212.747:7): avc: denied { map } for pid=3142 comm="syzkaller418289" path="/root/syzkaller418289266" dev="sda1" ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 51.307823] ================================================================== [ 51.315292] BUG: KASAN: double-free or invalid-free in skb_free_head+0x74/0xb0 [ 51.322634] [ 51.324254] CPU: 0 PID: 3140 Comm: sshd Not tainted 4.15.0-rc4+ #229 [ 51.330725] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 51.340061] Call Trace: [ 51.342637] dump_stack+0x194/0x257 [ 51.346259] ? arch_local_irq_restore+0x53/0x53 [ 51.350919] ? show_regs_print_info+0x18/0x18 [ 51.355399] ? check_noncircular+0x20/0x20 [ 51.359627] ? print_irqtrace_events+0x270/0x270 [ 51.364391] ? skb_free_head+0x74/0xb0 [ 51.368267] print_address_description+0x73/0x250 [ 51.373100] ? skb_free_head+0x74/0xb0 [ 51.376974] ? skb_free_head+0x74/0xb0 [ 51.380848] kasan_report_double_free+0x55/0x80 [ 51.385508] kasan_slab_free+0xa3/0xc0 [ 51.389387] kfree+0xca/0x250 [ 51.392488] skb_free_head+0x74/0xb0 [ 51.396190] skb_release_data+0x58c/0x790 [ 51.400343] ? skb_tx_error+0x2c0/0x2c0 [ 51.404303] ? check_noncircular+0x20/0x20 [ 51.408537] ? __lock_is_held+0xb6/0x140 [ 51.412607] skb_release_all+0x4a/0x60 [ 51.416483] consume_skb+0x153/0x490 [ 51.420185] ? alloc_skb_with_frags+0x750/0x750 [ 51.424845] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 51.429598] ? detach_buf+0x6a0/0x6a0 [ 51.433411] __dev_kfree_skb_any+0x85/0xa0 [ 51.437637] free_old_xmit_skbs.isra.28+0x15a/0x2c0 [ 51.442648] ? virtnet_cpu_down_prep+0x80/0x80 [ 51.447215] ? packet_rcv_fanout+0x7d0/0x7d0 [ 51.451617] ? dev_queue_xmit_nit+0x8af/0xc40 [ 51.456112] start_xmit+0x1b9/0x1650 [ 51.459834] ? virtnet_xdp+0x12a0/0x12a0 [ 51.463908] dev_hard_start_xmit+0x248/0xac0 [ 51.468319] ? validate_xmit_skb_list+0x120/0x120 [ 51.473152] ? perf_trace_lock_acquire+0x590/0x980 [ 51.478074] ? lock_acquire+0x1d5/0x580 [ 51.482035] ? lock_acquire+0x1d5/0x580 [ 51.485998] ? sch_direct_xmit+0x280/0x6d0 [ 51.490223] ? skb_csum_hwoffload_help+0x57/0xa0 [ 51.494981] ? lock_release+0xa40/0xa40 [ 51.498946] ? netif_skb_features+0x8e0/0x8e0 [ 51.503437] ? do_raw_spin_trylock+0x190/0x190 [ 51.508010] ? lock_acquire+0x1d5/0x580 [ 51.511991] sch_direct_xmit+0x31d/0x6d0 [ 51.516049] ? dev_deactivate_queue.constprop.29+0x260/0x260 [ 51.521853] __dev_queue_xmit+0x16f4/0x2070 [ 51.526182] ? netdev_pick_tx+0x300/0x300 [ 51.530339] ? check_noncircular+0x20/0x20 [ 51.534564] ? __lock_is_held+0xb6/0x140 [ 51.538623] ? __lock_acquire+0x664/0x3e00 [ 51.542846] ? print_irqtrace_events+0x270/0x270 [ 51.547594] ? update_load_avg+0x249/0x2d80 [ 51.551904] ? numa_migrate_preferred+0x250/0x250 [ 51.556749] ? print_irqtrace_events+0x270/0x270 [ 51.561502] ? ip_finish_output+0x85e/0xd10 [ 51.565814] ? netlbl_catmap_setrng+0xb0/0xb0 [ 51.570315] ? mark_held_locks+0xaf/0x100 [ 51.574456] ? ip_finish_output2+0xca6/0x1460 [ 51.578961] dev_queue_xmit+0x17/0x20 [ 51.582753] ip_finish_output2+0xece/0x1460 [ 51.587080] ? dst_output+0x140/0x140 [ 51.590878] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 51.595885] ? ipt_do_table+0xd04/0x1330 [ 51.599947] ? trace_hardirqs_on+0xd/0x10 [ 51.604091] ? __local_bh_enable_ip+0x121/0x230 [ 51.608751] ? ipt_do_table+0xd6f/0x1330 [ 51.612806] ? __local_bh_enable_ip+0x121/0x230 [ 51.617474] ? ipv4_mtu+0x28c/0x3d0 [ 51.621098] ? __lock_is_held+0xb6/0x140 [ 51.625166] ip_finish_output+0x85e/0xd10 [ 51.629301] ? ip_finish_output+0x85e/0xd10 [ 51.633614] ? ip_fragment.constprop.49+0x200/0x200 [ 51.638618] ? iptable_mangle_hook+0xa9/0x550 [ 51.643115] ? nf_hook_slow+0xd3/0x1a0 [ 51.647002] ip_output+0x1cc/0x860 [ 51.650533] ? ip_mc_output+0x1350/0x1350 [ 51.654690] ? ip_fragment.constprop.49+0x200/0x200 [ 51.659709] ip_local_out+0x95/0x160 [ 51.663417] ip_queue_xmit+0x8c6/0x18e0 [ 51.667396] ? ip_build_and_send_pkt+0xc30/0xc30 [ 51.672144] ? refcount_dec_if_one+0x20/0x20 [ 51.676560] ? __tcp_v4_send_check+0x1b8/0x350 [ 51.681138] ? tcp_options_write+0x228/0x940 [ 51.685545] tcp_transmit_skb+0x1b12/0x38b0 [ 51.689882] ? __tcp_select_window+0x900/0x900 [ 51.694457] ? __kernel_text_address+0xd/0x40 [ 51.698947] ? __lock_acquire+0x664/0x3e00 [ 51.703180] ? depot_save_stack+0x12c/0x490 [ 51.707513] ? tcp_small_queue_check.isra.26+0x31c/0x450 [ 51.712954] ? tcp_tso_segs+0x240/0x240 [ 51.716915] ? pvclock_read_flags+0x160/0x160 [ 51.722115] ? inet_sendmsg+0x11f/0x5e0 [ 51.726074] ? sock_sendmsg+0xca/0x110 [ 51.729949] ? sock_write_iter+0x31a/0x5d0 [ 51.734171] ? __vfs_write+0x684/0x970 [ 51.738041] ? vfs_write+0x189/0x510 [ 51.741745] ? SyS_write+0xef/0x220 [ 51.745366] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 51.750306] ? sched_clock_cpu+0x1b/0x170 [ 51.754447] ? tcp_init_tso_segs+0x114/0x1f0 [ 51.758869] tcp_write_xmit+0x680/0x5190 [ 51.762938] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.767951] ? tcp_transmit_skb+0x38b0/0x38b0 [ 51.772433] ? __asan_register_globals+0x80/0xa0 [ 51.777203] ? find_held_lock+0x35/0x1d0 [ 51.781267] ? __might_fault+0x110/0x1d0 [ 51.785319] ? iov_iter_advance+0x2a1/0x13f0 [ 51.789723] ? lock_release+0xa40/0xa40 [ 51.793684] ? tcp_v4_md5_lookup+0x22/0x30 [ 51.797908] ? tcp_established_options+0x2c5/0x420 [ 51.802831] ? iov_iter_copy_from_user_atomic+0xe30/0xe30 [ 51.808365] __tcp_push_pending_frames+0xa0/0x250 [ 51.813200] tcp_push+0x538/0x770 [ 51.816650] ? tcp_splice_data_recv+0x1a0/0x1a0 [ 51.821310] ? skb_entail+0x5f6/0x8a0 [ 51.825102] ? iov_iter_advance+0x13f0/0x13f0 [ 51.829595] ? tcp_tx_timestamp+0x62/0x2a0 [ 51.833825] tcp_sendmsg_locked+0x2663/0x3b30 [ 51.838358] ? tcp_sendpage+0x60/0x60 [ 51.842163] ? rcu_read_lock_sched_held+0x108/0x120 [ 51.847166] ? __mark_inode_dirty+0x262/0x1170 [ 51.851746] ? print_irqtrace_events+0x270/0x270 [ 51.856488] ? find_held_lock+0x35/0x1d0 [ 51.860549] ? lock_sock_nested+0xa3/0x110 [ 51.864767] ? lock_acquire+0x1d5/0x580 [ 51.868728] ? tcp_sendmsg+0x21/0x50 [ 51.872445] ? mark_held_locks+0xaf/0x100 [ 51.876855] ? do_raw_spin_trylock+0x190/0x190 [ 51.881430] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 51.886432] ? lock_sock_nested+0x91/0x110 [ 51.890653] ? trace_hardirqs_on+0xd/0x10 [ 51.894790] ? __local_bh_enable_ip+0x121/0x230 [ 51.899459] tcp_sendmsg+0x2f/0x50 [ 51.902995] inet_sendmsg+0x11f/0x5e0 [ 51.906787] ? inet_recvmsg+0x5f0/0x5f0 [ 51.910753] ? selinux_socket_sendmsg+0x36/0x40 [ 51.915413] ? security_socket_sendmsg+0x89/0xb0 [ 51.920156] ? inet_recvmsg+0x5f0/0x5f0 [ 51.924122] sock_sendmsg+0xca/0x110 [ 51.927835] sock_write_iter+0x31a/0x5d0 [ 51.931887] ? sock_sendmsg+0x110/0x110 [ 51.935871] ? iov_iter_init+0xaf/0x1d0 [ 51.939843] __vfs_write+0x684/0x970 [ 51.943548] ? kernel_read+0x120/0x120 [ 51.947422] ? bpf_fd_pass+0x280/0x280 [ 51.951304] ? _cond_resched+0x14/0x30 [ 51.955186] ? selinux_file_permission+0x82/0x460 [ 51.960031] ? rw_verify_area+0xe5/0x2b0 [ 51.964078] ? __fdget_raw+0x20/0x20 [ 51.967787] vfs_write+0x189/0x510 [ 51.971321] SyS_write+0xef/0x220 [ 51.974767] ? SyS_read+0x220/0x220 [ 51.978377] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 51.983387] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 51.988141] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 51.992881] RIP: 0033:0x7f89df172370 [ 51.996573] RSP: 002b:00007ffe252d6098 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 52.004264] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f89df172370 [ 52.011519] RDX: 0000000000000038 RSI: 0000561b3e395460 RDI: 0000000000000003 [ 52.018771] RBP: 0000561b3ce38c88 R08: 0000000000000001 R09: 0101010101010101 [ 52.026023] R10: 0000000000000008 R11: 0000000000000246 R12: 0000561b3e393b80 [ 52.033278] R13: 0000561b3ce36fb4 R14: 0000000000000028 R15: 0000561b3ce38ca0 [ 52.040558] [ 52.042172] Allocated by task 3140: [ 52.045784] save_stack+0x43/0xd0 [ 52.049221] kasan_kmalloc+0xad/0xe0 [ 52.052920] __kmalloc_node_track_caller+0x47/0x70 [ 52.057840] __kmalloc_reserve.isra.41+0x41/0xd0 [ 52.062580] __alloc_skb+0x13b/0x780 [ 52.066279] sk_stream_alloc_skb+0x11d/0x900 [ 52.070671] tcp_sendmsg_locked+0x1341/0x3b30 [ 52.075149] tcp_sendmsg+0x2f/0x50 [ 52.078677] inet_sendmsg+0x11f/0x5e0 [ 52.082461] sock_sendmsg+0xca/0x110 [ 52.086159] sock_write_iter+0x31a/0x5d0 [ 52.090202] __vfs_write+0x684/0x970 [ 52.093896] vfs_write+0x189/0x510 [ 52.097419] SyS_write+0xef/0x220 [ 52.100945] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 52.105677] [ 52.107285] Freed by task 3140: [ 52.110548] save_stack+0x43/0xd0 [ 52.113984] kasan_slab_free+0x71/0xc0 [ 52.117857] kfree+0xca/0x250 [ 52.120948] skb_free_head+0x74/0xb0 [ 52.124648] skb_release_data+0x58c/0x790 [ 52.128779] skb_release_all+0x4a/0x60 [ 52.132651] consume_skb+0x153/0x490 [ 52.136352] __dev_kfree_skb_any+0x85/0xa0 [ 52.140571] free_old_xmit_skbs.isra.28+0x15a/0x2c0 [ 52.145570] start_xmit+0x1b9/0x1650 [ 52.149268] dev_hard_start_xmit+0x248/0xac0 [ 52.153659] sch_direct_xmit+0x31d/0x6d0 [ 52.157705] __dev_queue_xmit+0x16f4/0x2070 [ 52.162012] dev_queue_xmit+0x17/0x20 [ 52.165797] ip_finish_output2+0xece/0x1460 [ 52.170108] ip_finish_output+0x85e/0xd10 [ 52.174236] ip_output+0x1cc/0x860 [ 52.177756] ip_local_out+0x95/0x160 [ 52.181452] ip_queue_xmit+0x8c6/0x18e0 [ 52.185410] tcp_transmit_skb+0x1b12/0x38b0 [ 52.189717] tcp_write_xmit+0x680/0x5190 [ 52.193764] __tcp_push_pending_frames+0xa0/0x250 [ 52.198591] tcp_push+0x538/0x770 [ 52.202027] tcp_sendmsg_locked+0x2663/0x3b30 [ 52.206510] tcp_sendmsg+0x2f/0x50 [ 52.210035] inet_sendmsg+0x11f/0x5e0 [ 52.213827] sock_sendmsg+0xca/0x110 [ 52.217528] sock_write_iter+0x31a/0x5d0 [ 52.221574] __vfs_write+0x684/0x970 [ 52.225271] vfs_write+0x189/0x510 [ 52.228793] SyS_write+0xef/0x220 [ 52.232234] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 52.236969] [ 52.238579] The buggy address belongs to the object at ffff8801c3e72dc0 [ 52.238579] which belongs to the cache kmalloc-1024 of size 1024 [ 52.251387] The buggy address is located 0 bytes inside of [ 52.251387] 1024-byte region [ffff8801c3e72dc0, ffff8801c3e731c0) [ 52.263143] The buggy address belongs to the page: [ 52.268042] page:00000000f161d9f1 count:1 mapcount:0 mapping:00000000235d16b3 index:0x0 compound_mapcount: 0 [ 52.277979] flags: 0x2fffc0000008100(slab|head) [ 52.282618] raw: 02fffc0000008100 ffff8801c3e72040 0000000000000000 0000000100000007 [ 52.290469] raw: ffffea00070f42a0 ffffea00070f9e20 ffff8801db000ac0 0000000000000000 [ 52.298312] page dumped because: kasan: bad access detected [ 52.303985] [ 52.305580] Memory state around the buggy address: [ 52.310476] ffff8801c3e72c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.317805] ffff8801c3e72d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 52.325130] >ffff8801c3e72d80: fb fb fb fb fb fb fb fb fb fb fb fb 00 00 00 00 [ 52.332456] ^ [ 52.337873] ffff8801c3e72e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 52.345199] ffff8801c3e72e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 52.352521] ================================================================== [ 52.359846] Disabling lock debugging due to kernel taint [ 52.365260] ================================================================== [ 52.365262] Kernel panic - not syncing: panic_on_warn set ... [ 52.365262] [ 52.365270] CPU: 0 PID: 3140 Comm: sshd Tainted: G B 4.15.0-rc4+ #229 [ 52.365273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 52.365275] Call Trace: [ 52.365287] dump_stack+0x194/0x257 [ 52.365298] ? arch_local_irq_restore+0x53/0x53 [ 52.365307] ? kasan_end_report+0x32/0x50 [ 52.365315] ? lock_downgrade+0x980/0x980 [ 52.365322] ? vsnprintf+0x1ed/0x1900 [ 52.365332] panic+0x1e4/0x41c [ 52.365339] ? refcount_error_report+0x214/0x214 [ 52.365349] ? add_taint+0x40/0x50 [ 52.365355] ? add_taint+0x1c/0x50 [ 52.365364] ? skb_free_head+0x74/0xb0 [ 52.365370] ? skb_free_head+0x74/0xb0 [ 52.365375] kasan_end_report+0x50/0x50 [ 52.365382] kasan_report_double_free+0x72/0x80 [ 52.365389] kasan_slab_free+0xa3/0xc0 [ 52.365398] kfree+0xca/0x250 [ 52.365406] skb_free_head+0x74/0xb0 [ 52.365414] skb_release_data+0x58c/0x790 [ 52.365428] ? skb_tx_error+0x2c0/0x2c0 [ 52.365433] ? check_noncircular+0x20/0x20 [ 52.365442] ? __lock_is_held+0xb6/0x140 [ 52.365456] skb_release_all+0x4a/0x60 [ 52.365463] consume_skb+0x153/0x490 [ 52.365471] ? alloc_skb_with_frags+0x750/0x750 [ 52.365481] ? virtqueue_get_buf_ctx+0x3b1/0x8b0 [ 52.365491] ? detach_buf+0x6a0/0x6a0 [ 52.365508] __dev_kfree_skb_any+0x85/0xa0 [ 52.365518] free_old_xmit_skbs.isra.28+0x15a/0x2c0 [ 52.365528] ? virtnet_cpu_down_prep+0x80/0x80 [ 52.365535] ? packet_rcv_fanout+0x7d0/0x7d0 [ 52.365545] ? dev_queue_xmit_nit+0x8af/0xc40 [ 52.365556] start_xmit+0x1b9/0x1650 [ 52.365569] ? virtnet_xdp+0x12a0/0x12a0 [ 52.365583] dev_hard_start_xmit+0x248/0xac0 [ 52.365596] ? validate_xmit_skb_list+0x120/0x120 [ 52.365603] ? perf_trace_lock_acquire+0x590/0x980 [ 52.365613] ? lock_acquire+0x1d5/0x580 [ 52.365619] ? lock_acquire+0x1d5/0x580 [ 52.365625] ? sch_direct_xmit+0x280/0x6d0 [ 52.365632] ? skb_csum_hwoffload_help+0x57/0xa0 [ 52.365641] ? lock_release+0xa40/0xa40 [ 52.365648] ? netif_skb_features+0x8e0/0x8e0 [ 52.365656] ? do_raw_spin_trylock+0x190/0x190 [ 52.365663] ? lock_acquire+0x1d5/0x580 [ 52.365677] sch_direct_xmit+0x31d/0x6d0 [ 52.365687] ? dev_deactivate_queue.constprop.29+0x260/0x260 [ 52.365701] __dev_queue_xmit+0x16f4/0x2070 [ 52.365714] ? netdev_pick_tx+0x300/0x300 [ 52.365725] ? check_noncircular+0x20/0x20 [ 52.365733] ? __lock_is_held+0xb6/0x140 [ 52.365744] ? __lock_acquire+0x664/0x3e00 [ 52.365752] ? print_irqtrace_events+0x270/0x270 [ 52.365759] ? update_load_avg+0x249/0x2d80 [ 52.365765] ? numa_migrate_preferred+0x250/0x250 [ 52.365777] ? print_irqtrace_events+0x270/0x270 [ 52.365788] ? ip_finish_output+0x85e/0xd10 [ 52.365799] ? netlbl_catmap_setrng+0xb0/0xb0 [ 52.365815] ? mark_held_locks+0xaf/0x100 [ 52.365822] ? ip_finish_output2+0xca6/0x1460 [ 52.365831] dev_queue_xmit+0x17/0x20 [ 52.365837] ip_finish_output2+0xece/0x1460 [ 52.365848] ? dst_output+0x140/0x140 [ 52.365855] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.365861] ? ipt_do_table+0xd04/0x1330 [ 52.365868] ? trace_hardirqs_on+0xd/0x10 [ 52.365874] ? __local_bh_enable_ip+0x121/0x230 [ 52.365883] ? ipt_do_table+0xd6f/0x1330 [ 52.365889] ? __local_bh_enable_ip+0x121/0x230 [ 52.365898] ? ipv4_mtu+0x28c/0x3d0 [ 52.365909] ? __lock_is_held+0xb6/0x140 [ 52.365923] ip_finish_output+0x85e/0xd10 [ 52.365928] ? ip_finish_output+0x85e/0xd10 [ 52.365937] ? ip_fragment.constprop.49+0x200/0x200 [ 52.365943] ? iptable_mangle_hook+0xa9/0x550 [ 52.365956] ? nf_hook_slow+0xd3/0x1a0 [ 52.365966] ip_output+0x1cc/0x860 [ 52.365975] ? ip_mc_output+0x1350/0x1350 [ 52.365989] ? ip_fragment.constprop.49+0x200/0x200 [ 52.366001] ip_local_out+0x95/0x160 [ 52.366010] ip_queue_xmit+0x8c6/0x18e0 [ 52.366022] ? ip_build_and_send_pkt+0xc30/0xc30 [ 52.366032] ? refcount_dec_if_one+0x20/0x20 [ 52.366043] ? __tcp_v4_send_check+0x1b8/0x350 [ 52.366048] ? tcp_options_write+0x228/0x940 [ 52.366059] tcp_transmit_skb+0x1b12/0x38b0 [ 52.366076] ? __tcp_select_window+0x900/0x900 [ 52.366086] ? __kernel_text_address+0xd/0x40 [ 52.366095] ? __lock_acquire+0x664/0x3e00 [ 52.366105] ? depot_save_stack+0x12c/0x490 [ 52.366119] ? tcp_small_queue_check.isra.26+0x31c/0x450 [ 52.366126] ? tcp_tso_segs+0x240/0x240 [ 52.366133] ? pvclock_read_flags+0x160/0x160 [ 52.366139] ? inet_sendmsg+0x11f/0x5e0 [ 52.366145] ? sock_sendmsg+0xca/0x110 [ 52.366151] ? sock_write_iter+0x31a/0x5d0 [ 52.366156] ? __vfs_write+0x684/0x970 [ 52.366160] ? vfs_write+0x189/0x510 [ 52.366165] ? SyS_write+0xef/0x220 [ 52.366171] ? entry_SYSCALL_64_fastpath+0x1f/0x96 [ 52.366184] ? sched_clock_cpu+0x1b/0x170 [ 52.366190] ? tcp_init_tso_segs+0x114/0x1f0 [ 52.366198] tcp_write_xmit+0x680/0x5190 [ 52.366215] ? rcu_read_lock_sched_held+0x108/0x120 [ 52.366226] ? tcp_transmit_skb+0x38b0/0x38b0 [ 52.366232] ? __asan_register_globals+0x80/0xa0 [ 52.366247] ? find_held_lock+0x35/0x1d0 [ 52.366260] ? __might_fault+0x110/0x1d0 [ 52.366268] ? iov_iter_advance+0x2a1/0x13f0 [ 52.366277] ? lock_release+0xa40/0xa40 [ 52.366283] ? tcp_v4_md5_lookup+0x22/0x30 [ 52.366290] ? tcp_established_options+0x2c5/0x420 [ 52.366300] ? iov_iter_copy_from_user_atomic+0xe30/0xe30 [ 52.366309] __tcp_push_pending_frames+0xa0/0x250 [ 52.366317] tcp_push+0x538/0x770 [ 52.366328] ? tcp_splice_data_recv+0x1a0/0x1a0 [ 52.366335] ? skb_entail+0x5f6/0x8a0 [ 52.366342] ? iov_iter_advance+0x13f0/0x13f0 [ 52.366352] ? tcp_tx_timestamp+0x62/0x2a0 [ 52.366362] tcp_sendmsg_locked+0x2663/0x3b30 [ 52.366389] ? tcp_sendpage+0x60/0x60 [ 52.366402] ? rcu_read_lock_sched_held+0x108/0x120 [ 52.366409] ? __mark_inode_dirty+0x262/0x1170 [ 52.366419] ? print_irqtrace_events+0x270/0x270 [ 52.366424] ? find_held_lock+0x35/0x1d0 [ 52.366436] ? lock_sock_nested+0xa3/0x110 [ 52.366441] ? lock_acquire+0x1d5/0x580 [ 52.366447] ? tcp_sendmsg+0x21/0x50 [ 52.366461] ? mark_held_locks+0xaf/0x100 [ 52.366467] ? do_raw_spin_trylock+0x190/0x190 [ 52.366477] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.366483] ? lock_sock_nested+0x91/0x110 [ 52.366489] ? trace_hardirqs_on+0xd/0x10 [ 52.366495] ? __local_bh_enable_ip+0x121/0x230 [ 52.366507] tcp_sendmsg+0x2f/0x50 [ 52.366515] inet_sendmsg+0x11f/0x5e0 [ 52.366523] ? inet_recvmsg+0x5f0/0x5f0 [ 52.366533] ? selinux_socket_sendmsg+0x36/0x40 [ 52.366540] ? security_socket_sendmsg+0x89/0xb0 [ 52.366546] ? inet_recvmsg+0x5f0/0x5f0 [ 52.366554] sock_sendmsg+0xca/0x110 [ 52.366563] sock_write_iter+0x31a/0x5d0 [ 52.366572] ? sock_sendmsg+0x110/0x110 [ 52.366586] ? iov_iter_init+0xaf/0x1d0 [ 52.366595] __vfs_write+0x684/0x970 [ 52.366604] ? kernel_read+0x120/0x120 [ 52.366609] ? bpf_fd_pass+0x280/0x280 [ 52.366618] ? _cond_resched+0x14/0x30 [ 52.366628] ? selinux_file_permission+0x82/0x460 [ 52.366643] ? rw_verify_area+0xe5/0x2b0 [ 52.366649] ? __fdget_raw+0x20/0x20 [ 52.366657] vfs_write+0x189/0x510 [ 52.366666] SyS_write+0xef/0x220 [ 52.366675] ? SyS_read+0x220/0x220 [ 52.366680] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 52.366689] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 52.366700] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 52.366706] RIP: 0033:0x7f89df172370 [ 52.366709] RSP: 002b:00007ffe252d6098 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 52.366715] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f89df172370 [ 52.366719] RDX: 0000000000000038 RSI: 0000561b3e395460 RDI: 0000000000000003 [ 52.366723] RBP: 0000561b3ce38c88 R08: 0000000000000001 R09: 0101010101010101 [ 52.366726] R10: 0000000000000008 R11: 0000000000000246 R12: 0000561b3e393b80 [ 52.366730] R13: 0000561b3ce36fb4 R14: 0000000000000028 R15: 0000561b3ce38ca0 [ 53.099878] BUG: KASAN: use-after-free in crypto_aead_free_instance+0xc0/0xd0 [ 53.107118] Read of size 8 at addr ffff8801c18c7240 by task cryptomgr_test/6762 [ 53.114528] [ 53.116128] CPU: 1 PID: 6762 Comm: cryptomgr_test Tainted: G B 4.15.0-rc4+ #229 [ 53.124753] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.134073] Call Trace: [ 53.136630] dump_stack+0x194/0x257 [ 53.140231] ? arch_local_irq_restore+0x53/0x53 [ 53.144867] ? show_regs_print_info+0x18/0x18 [ 53.149332] ? crypto_aead_free_instance+0xc0/0xd0 [ 53.154232] print_address_description+0x73/0x250 [ 53.159045] ? crypto_aead_free_instance+0xc0/0xd0 [ 53.163942] kasan_report+0x25b/0x340 [ 53.167713] __asan_report_load8_noabort+0x14/0x20 [ 53.172611] crypto_aead_free_instance+0xc0/0xd0 [ 53.177333] ? aead_register_instance+0x1c0/0x1c0 [ 53.182144] crypto_free_instance+0x6d/0x100 [ 53.186520] crypto_destroy_instance+0x3c/0x80 [ 53.191070] ? crypto_free_instance+0x100/0x100 [ 53.195707] crypto_remove_final+0x212/0x370 [ 53.200086] ? do_wait_intr_irq+0x3e0/0x3e0 [ 53.204376] ? crypto_attr_alg2+0x140/0x140 [ 53.208666] ? up_write+0x6b/0x120 [ 53.212172] ? up_read+0x40/0x40 [ 53.215506] ? trace_hardirqs_on+0xd/0x10 [ 53.219625] crypto_alg_tested+0x445/0x6f0 [ 53.223830] ? crypto_unregister_template+0x6e0/0x6e0 [ 53.228989] ? lockdep_init_map+0x9/0x10 [ 53.233016] ? _raw_spin_unlock_irqrestore+0x31/0xba [ 53.238088] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.243072] ? trace_hardirqs_on+0xd/0x10 [ 53.247190] cryptomgr_test+0x17/0x30 [ 53.250958] kthread+0x33c/0x400 [ 53.254292] ? crypto_acomp_scomp_free_ctx+0x100/0x100 [ 53.259532] ? kthread_stop+0x7a0/0x7a0 [ 53.263474] ret_from_fork+0x24/0x30 [ 53.267164] [ 53.268763] Allocated by task 6757: [ 53.272356] save_stack+0x43/0xd0 [ 53.275775] kasan_kmalloc+0xad/0xe0 [ 53.279457] kmem_cache_alloc_trace+0x136/0x750 [ 53.284093] pcrypt_create+0x137/0x6c0 [ 53.287950] cryptomgr_probe+0x74/0x240 [ 53.291890] kthread+0x33c/0x400 [ 53.295226] ret_from_fork+0x24/0x30 [ 53.298904] [ 53.300499] Freed by task 3140: [ 53.303744] save_stack+0x43/0xd0 [ 53.307164] kasan_slab_free+0x71/0xc0 [ 53.311016] kfree+0xca/0x250 [ 53.314090] skb_free_head+0x74/0xb0 [ 53.317770] skb_release_data+0x58c/0x790 [ 53.321884] skb_release_all+0x4a/0x60 [ 53.325737] consume_skb+0x153/0x490 [ 53.329420] __dev_kfree_skb_any+0x85/0xa0 [ 53.333623] free_old_xmit_skbs.isra.28+0x15a/0x2c0 [ 53.338604] start_xmit+0x1b9/0x1650 [ 53.342285] dev_hard_start_xmit+0x248/0xac0 [ 53.346658] sch_direct_xmit+0x31d/0x6d0 [ 53.350686] __dev_queue_xmit+0x16f4/0x2070 [ 53.354974] dev_queue_xmit+0x17/0x20 [ 53.358743] ip_finish_output2+0xece/0x1460 [ 53.363029] ip_finish_output+0x85e/0xd10 [ 53.367141] ip_output+0x1cc/0x860 [ 53.370649] ip_local_out+0x95/0x160 [ 53.374328] ip_queue_xmit+0x8c6/0x18e0 [ 53.378272] tcp_transmit_skb+0x1b12/0x38b0 [ 53.382559] tcp_write_xmit+0x680/0x5190 [ 53.386585] __tcp_push_pending_frames+0xa0/0x250 [ 53.391394] tcp_push+0x538/0x770 [ 53.394814] tcp_sendmsg_locked+0x2663/0x3b30 [ 53.399275] tcp_sendmsg+0x2f/0x50 [ 53.402783] inet_sendmsg+0x11f/0x5e0 [ 53.406552] sock_sendmsg+0xca/0x110 [ 53.410233] sock_write_iter+0x31a/0x5d0 [ 53.414261] __vfs_write+0x684/0x970 [ 53.417941] vfs_write+0x189/0x510 [ 53.421449] SyS_write+0xef/0x220 [ 53.424870] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.429588]