[....] Starting enhanced syslogd: rsyslogd[ 12.590137] audit: type=1400 audit(1513708246.593:5): avc: denied { syslog } for pid=2994 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 mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 19.262798] audit: type=1400 audit(1513708253.266:6): avc: denied { map } for pid=3134 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-mmots-kasan-gce-0,10.128.15.207' (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 [ 35.127925] audit: type=1400 audit(1513708269.131:7): avc: denied { map } for pid=3151 comm="syzkaller578854" path="/root/syzkaller578854775" 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 40.807824] ================================================================== [ 40.815269] BUG: KASAN: use-after-free in __list_del_entry_valid+0x11d/0x150 [ 40.822429] Read of size 8 at addr ffff8801c4bcf688 by task cryptomgr_probe/6842 [ 40.829929] [ 40.831533] CPU: 0 PID: 6842 Comm: cryptomgr_probe Not tainted 4.15.0-rc2-mm1+ #39 [ 40.839307] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.848636] Call Trace: [ 40.851199] dump_stack+0x194/0x257 [ 40.854801] ? arch_local_irq_restore+0x53/0x53 [ 40.859442] ? show_regs_print_info+0x18/0x18 [ 40.863910] ? rcu_note_context_switch+0x710/0x710 [ 40.868815] ? __list_del_entry_valid+0x11d/0x150 [ 40.873629] print_address_description+0x73/0x250 [ 40.878444] ? __list_del_entry_valid+0x11d/0x150 [ 40.883260] kasan_report+0x25b/0x340 [ 40.887045] __asan_report_load8_noabort+0x14/0x20 [ 40.891944] __list_del_entry_valid+0x11d/0x150 [ 40.896586] crypto_larval_kill+0x79/0x2e0 [ 40.902538] ? crypto_mod_put+0xa0/0xa0 [ 40.907795] crypto_wait_for_test+0x87/0xb0 [ 40.913392] crypto_register_instance+0x2bf/0x430 [ 40.918210] ? crypto_register_algs+0xc0/0xc0 [ 40.922681] ? crypto_mod_put+0x83/0xa0 [ 40.926633] aead_register_instance+0x161/0x1c0 [ 40.931279] pcrypt_create+0x542/0x6c0 [ 40.935140] ? pcrypt_cpumask_change_notify+0x270/0x270 [ 40.940476] cryptomgr_probe+0x74/0x240 [ 40.944428] kthread+0x37a/0x440 [ 40.947764] ? crypto_alg_put+0x60/0x60 [ 40.951706] ? kthread_stop+0x7b0/0x7b0 [ 40.955655] ret_from_fork+0x24/0x30 [ 40.959353] [ 40.960954] Allocated by task 6842: [ 40.964552] save_stack+0x43/0xd0 [ 40.967974] kasan_kmalloc+0xad/0xe0 [ 40.971657] kmem_cache_alloc_trace+0x136/0x750 [ 40.976298] crypto_larval_alloc+0x51/0x1e0 [ 40.980591] __crypto_register_alg+0x325/0x7b0 [ 40.985142] crypto_register_instance+0x14a/0x430 [ 40.989956] aead_register_instance+0x161/0x1c0 [ 40.994595] pcrypt_create+0x542/0x6c0 [ 40.998454] cryptomgr_probe+0x74/0x240 [ 41.002404] kthread+0x37a/0x440 [ 41.005741] ret_from_fork+0x24/0x30 [ 41.009420] [ 41.011024] Freed by task 3149: [ 41.014280] save_stack+0x43/0xd0 [ 41.017702] kasan_slab_free+0x71/0xc0 [ 41.021560] kfree+0xca/0x250 [ 41.024638] skb_free_head+0x74/0xb0 [ 41.028321] skb_release_data+0x58c/0x790 [ 41.032439] skb_release_all+0x4a/0x60 [ 41.036296] consume_skb+0x153/0x490 [ 41.039980] __dev_kfree_skb_any+0x85/0xa0 [ 41.044184] free_old_xmit_skbs.isra.28+0x15a/0x2c0 [ 41.049169] start_xmit+0x1b9/0x1650 [ 41.052851] dev_hard_start_xmit+0x248/0xac0 [ 41.057229] sch_direct_xmit+0x31d/0x6d0 [ 41.061258] __dev_queue_xmit+0x16eb/0x2070 [ 41.065549] dev_queue_xmit+0x17/0x20 [ 41.069320] ip_finish_output2+0xec8/0x1460 [ 41.073612] ip_finish_output+0x85e/0xd10 [ 41.077729] ip_output+0x1cc/0x860 [ 41.081239] ip_local_out+0x95/0x160 [ 41.084922] ip_queue_xmit+0x8c0/0x18e0 [ 41.088866] tcp_transmit_skb+0x1b12/0x38b0 [ 41.093158] tcp_write_xmit+0x680/0x5190 [ 41.097187] __tcp_push_pending_frames+0xa0/0x250 [ 41.102003] tcp_push+0x538/0x770 [ 41.105436] tcp_sendmsg_locked+0x2663/0x3b30 [ 41.109900] tcp_sendmsg+0x2f/0x50 [ 41.113410] inet_sendmsg+0x11f/0x5e0 [ 41.117182] sock_sendmsg+0xca/0x110 [ 41.120864] sock_write_iter+0x320/0x5e0 [ 41.124894] __vfs_write+0x68a/0x970 [ 41.128576] vfs_write+0x18f/0x510 [ 41.132093] SyS_write+0xef/0x220 [ 41.135516] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 41.140238] [ 41.141837] The buggy address belongs to the object at ffff8801c4bcf680 [ 41.141837] which belongs to the cache kmalloc-1024 of size 1024 [ 41.154638] The buggy address is located 8 bytes inside of [ 41.154638] 1024-byte region [ffff8801c4bcf680, ffff8801c4bcfa80) [ 41.166394] The buggy address belongs to the page: [ 41.171294] page:00000000ef810759 count:1 mapcount:0 mapping:0000000013a9f44c index:0x0 compound_mapcount: 0 [ 41.181237] flags: 0x2fffc0000008100(slab|head) [ 41.185877] raw: 02fffc0000008100 ffff8801c4bce000 0000000000000000 0000000100000007 [ 41.193727] raw: ffffea0006f27b20 ffffea00070e7da0 ffff8801dac00ac0 0000000000000000 [ 41.201574] page dumped because: kasan: bad access detected [ 41.207251] [ 41.208847] Memory state around the buggy address: [ 41.213755] ffff8801c4bcf580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.221086] ffff8801c4bcf600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.228417] >ffff8801c4bcf680: fb fb fb fb 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.235744] ^ [ 41.239338] ffff8801c4bcf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.246667] ffff8801c4bcf780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.253991] ================================================================== [ 41.261321] Disabling lock debugging due to kernel taint [ 41.266805] Kernel panic - not syncing: panic_on_warn set ... [ 41.266805] [ 41.274143] CPU: 0 PID: 6842 Comm: cryptomgr_probe Tainted: G B 4.15.0-rc2-mm1+ #39 [ 41.283114] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.292433] Call Trace: [ 41.294990] dump_stack+0x194/0x257 [ 41.298585] ? arch_local_irq_restore+0x53/0x53 [ 41.303222] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.307945] ? vsnprintf+0x1ed/0x1900 [ 41.311714] ? __list_del_entry_valid+0xb0/0x150 [ 41.316436] panic+0x1e4/0x41c [ 41.319594] ? refcount_error_report+0x214/0x214 [ 41.324315] ? add_taint+0x1c/0x50 [ 41.327818] ? add_taint+0x1c/0x50 [ 41.331324] ? __list_del_entry_valid+0x11d/0x150 [ 41.336133] kasan_end_report+0x50/0x50 [ 41.340072] kasan_report+0x144/0x340 [ 41.343839] __asan_report_load8_noabort+0x14/0x20 [ 41.348739] __list_del_entry_valid+0x11d/0x150 [ 41.353375] crypto_larval_kill+0x79/0x2e0 [ 41.357577] ? crypto_mod_put+0xa0/0xa0 [ 41.361521] crypto_wait_for_test+0x87/0xb0 [ 41.365808] crypto_register_instance+0x2bf/0x430 [ 41.370619] ? crypto_register_algs+0xc0/0xc0 [ 41.375085] ? crypto_mod_put+0x83/0xa0 [ 41.379031] aead_register_instance+0x161/0x1c0 [ 41.383670] pcrypt_create+0x542/0x6c0 [ 41.387526] ? pcrypt_cpumask_change_notify+0x270/0x270 [ 41.392856] cryptomgr_probe+0x74/0x240 [ 41.396800] kthread+0x37a/0x440 [ 41.400130] ? crypto_alg_put+0x60/0x60 [ 41.404067] ? kthread_stop+0x7b0/0x7b0 [ 41.408012] ret_from_fork+0x24/0x30 [ 41.412474] Dumping ftrace buffer: [ 41.415985] (ftrace buffer empty) [ 41.419662] Kernel Offset: disabled [ 41.423254] Rebooting in 86400 seconds..