[....] Starting enhanced syslogd: rsyslogd[ 13.815852] audit: type=1400 audit(1513321186.975:5): avc: denied { syslog } for pid=2996 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.960852] audit: type=1400 audit(1513321193.120:6): avc: denied { map } for pid=3135 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-net-kasan-gce-5,10.128.15.208' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program [ 26.290702] audit: type=1400 audit(1513321199.450:7): avc: denied { map } for pid=3149 comm="syzkaller810203" path="/root/syzkaller810203526" 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 [ 33.444947] ================================================================== [ 33.452378] BUG: KASAN: use-after-free in __list_del_entry_valid+0x11d/0x150 [ 33.459549] Read of size 8 at addr ffff8801c3a036c8 by task cryptomgr_probe/6766 [ 33.467056] [ 33.468673] CPU: 1 PID: 6766 Comm: cryptomgr_probe Not tainted 4.15.0-rc2+ #153 [ 33.476092] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.485417] Call Trace: [ 33.487983] dump_stack+0x194/0x257 [ 33.491591] ? arch_local_irq_restore+0x53/0x53 [ 33.496235] ? show_regs_print_info+0x18/0x18 [ 33.500710] ? rcu_note_context_switch+0x710/0x710 [ 33.505632] ? __list_del_entry_valid+0x11d/0x150 [ 33.510452] print_address_description+0x73/0x250 [ 33.515270] ? __list_del_entry_valid+0x11d/0x150 [ 33.520088] kasan_report+0x25b/0x340 [ 33.523871] __asan_report_load8_noabort+0x14/0x20 [ 33.528792] __list_del_entry_valid+0x11d/0x150 [ 33.533442] crypto_larval_kill+0x79/0x2e0 [ 33.537654] ? crypto_mod_put+0xa0/0xa0 [ 33.541614] crypto_wait_for_test+0x87/0xb0 [ 33.545910] crypto_register_instance+0x2bf/0x430 [ 33.550729] ? crypto_register_algs+0xc0/0xc0 [ 33.555202] ? crypto_mod_put+0x83/0xa0 [ 33.559154] aead_register_instance+0x161/0x1c0 [ 33.563801] crypto_gcm_create_common+0x921/0xb40 [ 33.568625] crypto_gcm_create+0x118/0x180 [ 33.572843] ? crypto_gcm_base_create+0x190/0x190 [ 33.577671] ? rcu_note_context_switch+0x6a0/0x710 [ 33.582576] ? module_unload_free+0x5b0/0x5b0 [ 33.587056] ? __might_sleep+0x95/0x190 [ 33.591020] ? down_read+0x96/0x150 [ 33.594625] ? __crypto_lookup_template+0x1d/0xc0 [ 33.599446] ? __down_interruptible+0x690/0x6b0 [ 33.604089] ? __schedule+0x2060/0x2060 [ 33.608038] ? do_wait_intr_irq+0x3e0/0x3e0 [ 33.612337] ? up_read+0x1a/0x40 [ 33.615678] ? __crypto_lookup_template+0xa4/0xc0 [ 33.620498] ? crypto_gcm_base_create+0x190/0x190 [ 33.625317] cryptomgr_probe+0x74/0x240 [ 33.629276] kthread+0x37a/0x440 [ 33.632616] ? crypto_alg_put+0x60/0x60 [ 33.636563] ? kthread_stop+0x7b0/0x7b0 [ 33.640527] ret_from_fork+0x24/0x30 [ 33.644227] [ 33.645829] Allocated by task 6766: [ 33.649437] save_stack+0x43/0xd0 [ 33.652860] kasan_kmalloc+0xad/0xe0 [ 33.656547] kmem_cache_alloc_trace+0x136/0x750 [ 33.661192] crypto_larval_alloc+0x51/0x1e0 [ 33.665495] __crypto_register_alg+0x325/0x7b0 [ 33.670053] crypto_register_instance+0x14a/0x430 [ 33.674873] aead_register_instance+0x161/0x1c0 [ 33.679517] crypto_gcm_create_common+0x921/0xb40 [ 33.684331] crypto_gcm_create+0x118/0x180 [ 33.688550] cryptomgr_probe+0x74/0x240 [ 33.692498] kthread+0x37a/0x440 [ 33.695849] ret_from_fork+0x24/0x30 [ 33.699532] [ 33.701131] Freed by task 3395: [ 33.704385] save_stack+0x43/0xd0 [ 33.707830] kasan_slab_free+0x71/0xc0 [ 33.711693] kfree+0xca/0x250 [ 33.714775] crypto_larval_destroy+0x110/0x150 [ 33.719328] crypto_larval_kill+0x1e8/0x2e0 [ 33.723621] crypto_alg_mod_lookup+0x178/0x1b0 [ 33.728175] crypto_alloc_tfm+0xf3/0x2f0 [ 33.732206] crypto_alloc_aead+0x2c/0x40 [ 33.736243] aead_bind+0x70/0x140 [ 33.739669] alg_bind+0x1ab/0x440 [ 33.743099] SYSC_bind+0x1b4/0x3f0 [ 33.746610] SyS_bind+0x24/0x30 [ 33.749863] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 33.754586] [ 33.756187] The buggy address belongs to the object at ffff8801c3a036c0 [ 33.756187] which belongs to the cache kmalloc-1024 of size 1024 [ 33.769000] The buggy address is located 8 bytes inside of [ 33.769000] 1024-byte region [ffff8801c3a036c0, ffff8801c3a03ac0) [ 33.780766] The buggy address belongs to the page: [ 33.785671] page:0000000025d567b3 count:1 mapcount:0 mapping:0000000007e5ac1e index:0x0 compound_mapcount: 0 [ 33.795632] flags: 0x2fffc0000008100(slab|head) [ 33.800279] raw: 02fffc0000008100 ffff8801c3a02040 0000000000000000 0000000100000007 [ 33.808135] raw: ffffea00070b3920 ffffea00070c9620 ffff8801db000ac0 0000000000000000 [ 33.815996] page dumped because: kasan: bad access detected [ 33.821695] [ 33.823304] Memory state around the buggy address: [ 33.828210] ffff8801c3a03580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.835542] ffff8801c3a03600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.842887] >ffff8801c3a03680: fb fb fb fb fb fb fb fb fb fb fb fb 00 00 00 00 [ 33.850221] ^ [ 33.855905] ffff8801c3a03700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.863235] ffff8801c3a03780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.870563] ================================================================== [ 33.877890] Disabling lock debugging due to kernel taint [ 33.883408] Kernel panic - not syncing: panic_on_warn set ... [ 33.883408] [ 33.890766] CPU: 1 PID: 6766 Comm: cryptomgr_probe Tainted: G B 4.15.0-rc2+ #153 [ 33.899497] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.908825] Call Trace: [ 33.911387] dump_stack+0x194/0x257 [ 33.914983] ? arch_local_irq_restore+0x53/0x53 [ 33.919623] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.924347] ? vsnprintf+0x1ed/0x1900 [ 33.928117] ? __list_del_entry_valid+0x100/0x150 [ 33.932927] panic+0x1e4/0x41c [ 33.936089] ? refcount_error_report+0x214/0x214 [ 33.940813] ? add_taint+0x1c/0x50 [ 33.944318] ? add_taint+0x1c/0x50 [ 33.947834] ? __list_del_entry_valid+0x11d/0x150 [ 33.952646] kasan_end_report+0x50/0x50 [ 33.956594] kasan_report+0x144/0x340 [ 33.960365] __asan_report_load8_noabort+0x14/0x20 [ 33.965263] __list_del_entry_valid+0x11d/0x150 [ 33.969906] crypto_larval_kill+0x79/0x2e0 [ 33.974110] ? crypto_mod_put+0xa0/0xa0 [ 33.978058] crypto_wait_for_test+0x87/0xb0 [ 33.982348] crypto_register_instance+0x2bf/0x430 [ 33.987161] ? crypto_register_algs+0xc0/0xc0 [ 33.991633] ? crypto_mod_put+0x83/0xa0 [ 33.995576] aead_register_instance+0x161/0x1c0 [ 34.000214] crypto_gcm_create_common+0x921/0xb40 [ 34.005037] crypto_gcm_create+0x118/0x180 [ 34.009263] ? crypto_gcm_base_create+0x190/0x190 [ 34.014086] ? rcu_note_context_switch+0x6a0/0x710 [ 34.018987] ? module_unload_free+0x5b0/0x5b0 [ 34.023451] ? __might_sleep+0x95/0x190 [ 34.027395] ? down_read+0x96/0x150 [ 34.030992] ? __crypto_lookup_template+0x1d/0xc0 [ 34.035805] ? __down_interruptible+0x690/0x6b0 [ 34.040442] ? __schedule+0x2060/0x2060 [ 34.044387] ? do_wait_intr_irq+0x3e0/0x3e0 [ 34.048688] ? up_read+0x1a/0x40 [ 34.052031] ? __crypto_lookup_template+0xa4/0xc0 [ 34.056845] ? crypto_gcm_base_create+0x190/0x190 [ 34.061657] cryptomgr_probe+0x74/0x240 [ 34.065619] kthread+0x37a/0x440 [ 34.068994] ? crypto_alg_put+0x60/0x60 [ 34.072950] ? kthread_stop+0x7b0/0x7b0 [ 34.076900] ret_from_fork+0x24/0x30 [ 34.081074] Dumping ftrace buffer: [ 34.084603] (ftrace buffer empty) [ 34.088283] Kernel Offset: disabled [ 34.091878] Rebooting in 86400 seconds..