[....] Starting enhanced syslogd: rsyslogd[ 12.108342] audit: type=1400 audit(1513321665.113:5): avc: denied { syslog } for pid=2992 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 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.339541] audit: type=1400 audit(1513321672.344:6): avc: denied { map } for pid=3132 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-9,10.128.15.223' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program [ 36.497480] audit: type=1400 audit(1513321689.502:7): avc: denied { map } for pid=3149 comm="syzkaller035672" path="/root/syzkaller035672679" 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 [ 42.530698] ================================================================== [ 42.538095] BUG: KASAN: use-after-free in __list_del_entry_valid+0x11d/0x150 [ 42.545254] Read of size 8 at addr ffff8801c3ba5b48 by task cryptomgr_probe/6708 [ 42.552755] [ 42.554356] CPU: 0 PID: 6708 Comm: cryptomgr_probe Not tainted 4.15.0-rc3+ #221 [ 42.561771] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.571097] Call Trace: [ 42.573661] dump_stack+0x194/0x257 [ 42.577271] ? arch_local_irq_restore+0x53/0x53 [ 42.581912] ? show_regs_print_info+0x18/0x18 [ 42.586378] ? rcu_note_context_switch+0x710/0x710 [ 42.591286] ? __list_del_entry_valid+0x11d/0x150 [ 42.596115] print_address_description+0x73/0x250 [ 42.600940] ? __list_del_entry_valid+0x11d/0x150 [ 42.605763] kasan_report+0x25b/0x340 [ 42.609539] __asan_report_load8_noabort+0x14/0x20 [ 42.614439] __list_del_entry_valid+0x11d/0x150 [ 42.619092] crypto_larval_kill+0x79/0x2e0 [ 42.623304] ? crypto_mod_put+0xa0/0xa0 [ 42.627263] crypto_wait_for_test+0x87/0xb0 [ 42.631558] crypto_register_instance+0x2bf/0x430 [ 42.636375] ? crypto_register_algs+0xc0/0xc0 [ 42.640847] ? crypto_mod_put+0x83/0xa0 [ 42.644801] aead_register_instance+0x161/0x1c0 [ 42.649445] crypto_gcm_create_common+0x921/0xb40 [ 42.654266] crypto_gcm_create+0x118/0x180 [ 42.658475] ? crypto_gcm_base_create+0x190/0x190 [ 42.663290] ? rcu_note_context_switch+0x6a0/0x710 [ 42.668193] ? module_unload_free+0x5b0/0x5b0 [ 42.672662] ? __might_sleep+0x95/0x190 [ 42.676616] ? down_read+0x96/0x150 [ 42.680216] ? __crypto_lookup_template+0x1d/0xc0 [ 42.685042] ? __down_interruptible+0x660/0x6b0 [ 42.689684] ? __schedule+0x2060/0x2060 [ 42.693632] ? do_wait_intr_irq+0x3e0/0x3e0 [ 42.697931] ? up_read+0x1a/0x40 [ 42.701269] ? __crypto_lookup_template+0xa4/0xc0 [ 42.706095] ? crypto_gcm_base_create+0x190/0x190 [ 42.710910] cryptomgr_probe+0x74/0x240 [ 42.714863] kthread+0x37a/0x440 [ 42.718200] ? crypto_alg_put+0x60/0x60 [ 42.722150] ? kthread_stop+0x7b0/0x7b0 [ 42.726100] ret_from_fork+0x24/0x30 [ 42.729799] [ 42.731396] Allocated by task 6708: [ 42.734995] save_stack+0x43/0xd0 [ 42.738422] kasan_kmalloc+0xad/0xe0 [ 42.742107] kmem_cache_alloc_trace+0x136/0x750 [ 42.746746] crypto_larval_alloc+0x51/0x1e0 [ 42.751043] __crypto_register_alg+0x325/0x7b0 [ 42.755598] crypto_register_instance+0x14a/0x430 [ 42.760412] aead_register_instance+0x161/0x1c0 [ 42.765054] crypto_gcm_create_common+0x921/0xb40 [ 42.769867] crypto_gcm_create+0x118/0x180 [ 42.774070] cryptomgr_probe+0x74/0x240 [ 42.778031] kthread+0x37a/0x440 [ 42.781377] ret_from_fork+0x24/0x30 [ 42.785058] [ 42.786658] Freed by task 3339: [ 42.789908] save_stack+0x43/0xd0 [ 42.793330] kasan_slab_free+0x71/0xc0 [ 42.797191] kfree+0xca/0x250 [ 42.800269] crypto_larval_destroy+0x110/0x150 [ 42.804822] crypto_larval_kill+0x1e8/0x2e0 [ 42.809114] crypto_alg_mod_lookup+0x178/0x1b0 [ 42.813668] crypto_alloc_tfm+0xf3/0x2f0 [ 42.817700] crypto_alloc_aead+0x2c/0x40 [ 42.821732] aead_bind+0x70/0x140 [ 42.825157] alg_bind+0x1ab/0x440 [ 42.828583] SYSC_bind+0x1b4/0x3f0 [ 42.832095] SyS_bind+0x24/0x30 [ 42.835346] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 42.840070] [ 42.841671] The buggy address belongs to the object at ffff8801c3ba5b40 [ 42.841671] which belongs to the cache kmalloc-1024 of size 1024 [ 42.854471] The buggy address is located 8 bytes inside of [ 42.854471] 1024-byte region [ffff8801c3ba5b40, ffff8801c3ba5f40) [ 42.866225] The buggy address belongs to the page: [ 42.871125] page:00000000a79907d2 count:1 mapcount:0 mapping:000000000869ca0a index:0x0 compound_mapcount: 0 [ 42.881071] flags: 0x2fffc0000008100(slab|head) [ 42.885712] raw: 02fffc0000008100 ffff8801c3ba4040 0000000000000000 0000000100000007 [ 42.893563] raw: ffffea00070ecda0 ffffea00070c9a20 ffff8801db000ac0 0000000000000000 [ 42.901409] page dumped because: kasan: bad access detected [ 42.907085] [ 42.908685] Memory state around the buggy address: [ 42.913584] ffff8801c3ba5a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.920923] ffff8801c3ba5a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.928254] >ffff8801c3ba5b00: fb fb fb fb fb fb fb fb fb fb fb fb 00 00 00 00 [ 42.935583] ^ [ 42.941264] ffff8801c3ba5b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.948592] ffff8801c3ba5c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 42.955920] ================================================================== [ 42.963246] Disabling lock debugging due to kernel taint [ 42.968726] Kernel panic - not syncing: panic_on_warn set ... [ 42.968726] [ 42.976064] CPU: 0 PID: 6708 Comm: cryptomgr_probe Tainted: G B 4.15.0-rc3+ #221 [ 42.985144] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.994462] Call Trace: [ 42.997023] dump_stack+0x194/0x257 [ 43.000620] ? arch_local_irq_restore+0x53/0x53 [ 43.005259] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 43.009982] ? vsnprintf+0x1ed/0x1900 [ 43.013755] ? __list_del_entry_valid+0x50/0x150 [ 43.018478] panic+0x1e4/0x41c [ 43.021637] ? refcount_error_report+0x214/0x214 [ 43.026358] ? add_taint+0x1c/0x50 [ 43.029865] ? add_taint+0x1c/0x50 [ 43.033373] ? __list_del_entry_valid+0x11d/0x150 [ 43.038180] kasan_end_report+0x50/0x50 [ 43.042120] kasan_report+0x144/0x340 [ 43.045889] __asan_report_load8_noabort+0x14/0x20 [ 43.050782] __list_del_entry_valid+0x11d/0x150 [ 43.055417] crypto_larval_kill+0x79/0x2e0 [ 43.059617] ? crypto_mod_put+0xa0/0xa0 [ 43.063560] crypto_wait_for_test+0x87/0xb0 [ 43.067846] crypto_register_instance+0x2bf/0x430 [ 43.072654] ? crypto_register_algs+0xc0/0xc0 [ 43.077116] ? crypto_mod_put+0x83/0xa0 [ 43.081059] aead_register_instance+0x161/0x1c0 [ 43.085694] crypto_gcm_create_common+0x921/0xb40 [ 43.090513] crypto_gcm_create+0x118/0x180 [ 43.094716] ? crypto_gcm_base_create+0x190/0x190 [ 43.099523] ? rcu_note_context_switch+0x6a0/0x710 [ 43.104419] ? module_unload_free+0x5b0/0x5b0 [ 43.108879] ? __might_sleep+0x95/0x190 [ 43.112823] ? down_read+0x96/0x150 [ 43.116414] ? __crypto_lookup_template+0x1d/0xc0 [ 43.121221] ? __down_interruptible+0x660/0x6b0 [ 43.125854] ? __schedule+0x2060/0x2060 [ 43.129792] ? do_wait_intr_irq+0x3e0/0x3e0 [ 43.134080] ? up_read+0x1a/0x40 [ 43.137413] ? __crypto_lookup_template+0xa4/0xc0 [ 43.142234] ? crypto_gcm_base_create+0x190/0x190 [ 43.147046] cryptomgr_probe+0x74/0x240 [ 43.150989] kthread+0x37a/0x440 [ 43.154323] ? crypto_alg_put+0x60/0x60 [ 43.158266] ? kthread_stop+0x7b0/0x7b0 [ 43.162208] ret_from_fork+0x24/0x30 [ 43.166273] Dumping ftrace buffer: [ 43.169782] (ftrace buffer empty) [ 43.173456] Kernel Offset: disabled [ 43.177048] Rebooting in 86400 seconds..