INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-mmots-kasan-gce-6,10.128.0.36' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 49.517439] ================================================================== [ 49.518585] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 49.519441] Read of size 4 at addr ffff8801cb44ccdc by task syzkaller121378/3187 [ 49.520427] [ 49.520663] CPU: 1 PID: 3187 Comm: syzkaller121378 Not tainted 4.15.0-rc1-mm1+ #29 [ 49.521688] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.522907] Call Trace: [ 49.523266] dump_stack+0x194/0x257 [ 49.523758] ? arch_local_irq_restore+0x53/0x53 [ 49.524382] ? show_regs_print_info+0x65/0x65 [ 49.524986] ? af_alg_make_sg+0x510/0x510 [ 49.525542] ? aead_recvmsg+0x1758/0x1bc0 [ 49.526102] print_address_description+0x73/0x250 [ 49.526748] ? aead_recvmsg+0x1758/0x1bc0 [ 49.527305] kasan_report+0x25b/0x340 [ 49.527822] __asan_report_load4_noabort+0x14/0x20 [ 49.528478] aead_recvmsg+0x1758/0x1bc0 [ 49.529031] ? aead_release+0x50/0x50 [ 49.529543] ? selinux_socket_recvmsg+0x36/0x40 [ 49.530213] ? security_socket_recvmsg+0x91/0xc0 [ 49.530862] ? aead_release+0x50/0x50 [ 49.531376] sock_recvmsg+0xc9/0x110 [ 49.531883] sock_read_iter+0x361/0x560 [ 49.532422] ? sock_recvmsg+0x110/0x110 [ 49.532966] ? selinux_file_permission+0x82/0x460 [ 49.533624] ? rw_verify_area+0xe5/0x2b0 [ 49.534175] aio_read+0x2b0/0x3a0 [ 49.534645] ? aio_write+0x5a0/0x5a0 [ 49.535152] ? lock_downgrade+0x980/0x980 [ 49.535719] ? lock_release+0xda0/0xda0 [ 49.536265] ? __might_sleep+0x95/0x190 [ 49.536807] do_io_submit+0xf99/0x14f0 [ 49.537331] ? do_io_submit+0xf99/0x14f0 [ 49.539883] ? aio_read+0x3a0/0x3a0 [ 49.543479] ? mm_fault_error+0x2c0/0x2c0 [ 49.547592] ? lock_downgrade+0x980/0x980 [ 49.551708] ? SyS_io_setup+0x10e/0x390 [ 49.555658] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.560384] ? do_page_fault+0xee/0x720 [ 49.564326] ? __do_page_fault+0xc90/0xc90 [ 49.568546] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 49.573533] SyS_io_submit+0x27/0x30 [ 49.577215] ? SyS_io_submit+0x27/0x30 [ 49.581076] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.585806] RIP: 0033:0x440c89 [ 49.588967] RSP: 002b:00007ffff77f41c8 EFLAGS: 00000213 ORIG_RAX: 00000000000000d1 [ 49.596653] RAX: ffffffffffffffda RBX: 00000000004a2529 RCX: 0000000000440c89 [ 49.603894] RDX: 0000000020642ff0 RSI: 0000000000000002 RDI: 00007fc05ade7000 [ 49.611133] RBP: 000000000000c14e R08: 0000000000000000 R09: 0000000000000002 [ 49.618371] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 49.625605] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 49.632859] [ 49.634451] Allocated by task 3177: [ 49.638043] save_stack+0x43/0xd0 [ 49.641462] kasan_kmalloc+0xad/0xe0 [ 49.645141] __kmalloc+0x162/0x760 [ 49.648650] crypto_create_tfm+0x82/0x2e0 [ 49.652760] crypto_alloc_tfm+0x10e/0x2f0 [ 49.656872] crypto_alloc_skcipher+0x2c/0x40 [ 49.661247] crypto_get_default_null_skcipher+0x5f/0x80 [ 49.666573] aead_bind+0x89/0x140 [ 49.669989] alg_bind+0x1ab/0x440 [ 49.673406] SYSC_bind+0x1b4/0x3f0 [ 49.676910] SyS_bind+0x24/0x30 [ 49.680154] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.684872] [ 49.686463] Freed by task 3180: [ 49.689706] save_stack+0x43/0xd0 [ 49.693122] kasan_slab_free+0x71/0xc0 [ 49.696975] kfree+0xca/0x250 [ 49.700046] kzfree+0x28/0x30 [ 49.703119] crypto_destroy_tfm+0x140/0x2e0 [ 49.707407] crypto_put_default_null_skcipher+0x35/0x60 [ 49.712741] aead_sock_destruct+0x13c/0x220 [ 49.717031] __sk_destruct+0xfd/0x910 [ 49.720802] sk_destruct+0x47/0x80 [ 49.724312] __sk_free+0x57/0x230 [ 49.727732] sk_free+0x2a/0x40 [ 49.730896] af_alg_release+0x5d/0x70 [ 49.734662] sock_release+0x8d/0x1e0 [ 49.738346] sock_close+0x16/0x20 [ 49.741769] __fput+0x333/0x7f0 [ 49.745020] ____fput+0x15/0x20 [ 49.748266] task_work_run+0x199/0x270 [ 49.752124] do_exit+0x9bb/0x1ae0 [ 49.755547] do_group_exit+0x149/0x400 [ 49.759411] SyS_exit_group+0x1d/0x20 [ 49.763184] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 49.767911] [ 49.769509] The buggy address belongs to the object at ffff8801cb44ccc0 [ 49.769509] which belongs to the cache kmalloc-128 of size 128 [ 49.782133] The buggy address is located 28 bytes inside of [ 49.782133] 128-byte region [ffff8801cb44ccc0, ffff8801cb44cd40) [ 49.793895] The buggy address belongs to the page: [ 49.798800] page:0000000045234b4c count:1 mapcount:0 mapping:0000000051938756 index:0x0 [ 49.806914] flags: 0x2fffc0000000100(slab) [ 49.811122] raw: 02fffc0000000100 ffff8801cb44c000 0000000000000000 0000000100000015 [ 49.818977] raw: ffffea00072f1ae0 ffffea00072b9560 ffff8801db000640 0000000000000000 [ 49.826824] page dumped because: kasan: bad access detected [ 49.832507] [ 49.834104] Memory state around the buggy address: [ 49.839004] ffff8801cb44cb80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.846334] ffff8801cb44cc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.853659] >ffff8801cb44cc80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 49.860992] ^ [ 49.867192] ffff8801cb44cd00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.874524] ffff8801cb44cd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.881853] ================================================================== [ 49.889179] Disabling lock debugging due to kernel taint [ 49.894696] Kernel panic - not syncing: panic_on_warn set ... [ 49.894696] [ 49.902035] CPU: 1 PID: 3187 Comm: syzkaller121378 Tainted: G B 4.15.0-rc1-mm1+ #29 [ 49.911005] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.920321] Call Trace: [ 49.922873] dump_stack+0x194/0x257 [ 49.926464] ? arch_local_irq_restore+0x53/0x53 [ 49.931101] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 49.935824] ? vsnprintf+0x1ed/0x1900 [ 49.939590] ? aead_recvmsg+0x1710/0x1bc0 [ 49.943704] panic+0x1e4/0x41c [ 49.946860] ? refcount_error_report+0x214/0x214 [ 49.951584] ? add_taint+0x1c/0x50 [ 49.955089] ? add_taint+0x1c/0x50 [ 49.958595] ? aead_recvmsg+0x1758/0x1bc0 [ 49.962721] kasan_end_report+0x50/0x50 [ 49.966663] kasan_report+0x144/0x340 [ 49.970432] __asan_report_load4_noabort+0x14/0x20 [ 49.975325] aead_recvmsg+0x1758/0x1bc0 [ 49.979273] ? aead_release+0x50/0x50 [ 49.983038] ? selinux_socket_recvmsg+0x36/0x40 [ 49.987683] ? security_socket_recvmsg+0x91/0xc0 [ 49.992403] ? aead_release+0x50/0x50 [ 49.996178] sock_recvmsg+0xc9/0x110 [ 49.999861] sock_read_iter+0x361/0x560 [ 50.003802] ? sock_recvmsg+0x110/0x110 [ 50.007752] ? selinux_file_permission+0x82/0x460 [ 50.012571] ? rw_verify_area+0xe5/0x2b0 [ 50.016603] aio_read+0x2b0/0x3a0 [ 50.020031] ? aio_write+0x5a0/0x5a0 [ 50.023717] ? lock_downgrade+0x980/0x980 [ 50.027844] ? lock_release+0xda0/0xda0 [ 50.031793] ? __might_sleep+0x95/0x190 [ 50.035747] do_io_submit+0xf99/0x14f0 [ 50.039603] ? do_io_submit+0xf99/0x14f0 [ 50.043636] ? aio_read+0x3a0/0x3a0 [ 50.047232] ? mm_fault_error+0x2c0/0x2c0 [ 50.051347] ? lock_downgrade+0x980/0x980 [ 50.055464] ? SyS_io_setup+0x10e/0x390 [ 50.059408] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 50.064133] ? do_page_fault+0xee/0x720 [ 50.068084] ? __do_page_fault+0xc90/0xc90 [ 50.072295] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 50.077280] SyS_io_submit+0x27/0x30 [ 50.080962] ? SyS_io_submit+0x27/0x30 [ 50.084824] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 50.089556] RIP: 0033:0x440c89 [ 50.092713] RSP: 002b:00007ffff77f41c8 EFLAGS: 00000213 ORIG_RAX: 00000000000000d1 [ 50.100386] RAX: ffffffffffffffda RBX: 00000000004a2529 RCX: 0000000000440c89 [ 50.107625] RDX: 0000000020642ff0 RSI: 0000000000000002 RDI: 00007fc05ade7000 [ 50.114871] RBP: 000000000000c14e R08: 0000000000000000 R09: 0000000000000002 [ 50.122113] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 50.129362] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 50.136648] Dumping ftrace buffer: [ 50.140157] (ftrace buffer empty) [ 50.143842] Kernel Offset: disabled [ 50.147438] Rebooting in 86400 seconds..