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-kasan-gce-0,10.128.0.62' (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 syzkaller login: [ 26.353024] ================================================================== [ 26.354182] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 26.355330] Read of size 4 at addr ffff8801cc3e9b5c by task syzkaller090995/3182 [ 26.356389] [ 26.356642] CPU: 0 PID: 3182 Comm: syzkaller090995 Not tainted 4.15.0-rc2+ #206 [ 26.357677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.358912] Call Trace: [ 26.359301] dump_stack+0x194/0x257 [ 26.359800] ? arch_local_irq_restore+0x53/0x53 [ 26.360489] ? show_regs_print_info+0x65/0x65 [ 26.361097] ? af_alg_make_sg+0x510/0x510 [ 26.361676] ? aead_recvmsg+0x1758/0x1bc0 [ 26.362295] print_address_description+0x73/0x250 [ 26.362944] ? aead_recvmsg+0x1758/0x1bc0 [ 26.363533] kasan_report+0x25b/0x340 [ 26.364054] __asan_report_load4_noabort+0x14/0x20 [ 26.364754] aead_recvmsg+0x1758/0x1bc0 [ 26.365328] ? aead_release+0x50/0x50 [ 26.365862] ? selinux_socket_recvmsg+0x36/0x40 [ 26.366525] ? security_socket_recvmsg+0x91/0xc0 [ 26.367181] ? aead_release+0x50/0x50 [ 26.367698] sock_recvmsg+0xc9/0x110 [ 26.368205] sock_read_iter+0x361/0x560 [ 26.368742] ? sock_recvmsg+0x110/0x110 [ 26.369276] ? selinux_file_permission+0x82/0x460 [ 26.369958] ? rw_verify_area+0xe5/0x2b0 [ 26.370514] aio_read+0x2b0/0x3a0 [ 26.370987] ? aio_write+0x5a0/0x5a0 [ 26.371493] ? lock_downgrade+0x980/0x980 [ 26.372086] ? lock_release+0xda0/0xda0 [ 26.372654] ? __might_sleep+0x95/0x190 [ 26.373203] do_io_submit+0xf99/0x14f0 [ 26.377063] ? do_io_submit+0xf99/0x14f0 [ 26.381107] ? aio_read+0x3a0/0x3a0 [ 26.384711] ? mm_fault_error+0x2c0/0x2c0 [ 26.389004] ? lock_downgrade+0x980/0x980 [ 26.393127] ? SyS_io_setup+0x10e/0x390 [ 26.397076] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.401805] ? do_page_fault+0xee/0x720 [ 26.405750] ? __do_page_fault+0xc90/0xc90 [ 26.409975] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.414970] SyS_io_submit+0x27/0x30 [ 26.418655] ? SyS_io_submit+0x27/0x30 [ 26.422517] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.427252] RIP: 0033:0x440c89 [ 26.430413] RSP: 002b:00007ffc92f45d38 EFLAGS: 00000213 ORIG_RAX: 00000000000000d1 [ 26.438093] RAX: ffffffffffffffda RBX: 00000000004a2529 RCX: 0000000000440c89 [ 26.445330] RDX: 0000000020642ff0 RSI: 0000000000000002 RDI: 00007fda7f6fc000 [ 26.452566] RBP: 0000000000006642 R08: 0000000000000000 R09: 0000000000000008 [ 26.459801] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 26.467039] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 26.474302] [ 26.475898] Allocated by task 3089: [ 26.479494] save_stack+0x43/0xd0 [ 26.482914] kasan_kmalloc+0xad/0xe0 [ 26.486596] __kmalloc+0x162/0x760 [ 26.490115] crypto_create_tfm+0x82/0x2e0 [ 26.494228] crypto_alloc_tfm+0x10e/0x2f0 [ 26.498344] crypto_alloc_skcipher+0x2c/0x40 [ 26.502738] crypto_get_default_null_skcipher+0x5f/0x80 [ 26.508071] aead_bind+0x89/0x140 [ 26.511494] alg_bind+0x1ab/0x440 [ 26.514933] SYSC_bind+0x1b4/0x3f0 [ 26.518453] SyS_bind+0x24/0x30 [ 26.521714] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.526433] [ 26.528028] Freed by task 3099: [ 26.531275] save_stack+0x43/0xd0 [ 26.534698] kasan_slab_free+0x71/0xc0 [ 26.538553] kfree+0xca/0x250 [ 26.541625] kzfree+0x28/0x30 [ 26.544699] crypto_destroy_tfm+0x140/0x2e0 [ 26.548996] crypto_put_default_null_skcipher+0x35/0x60 [ 26.554325] aead_sock_destruct+0x13c/0x220 [ 26.558614] __sk_destruct+0xfd/0x910 [ 26.562380] sk_destruct+0x47/0x80 [ 26.565899] __sk_free+0x57/0x230 [ 26.569319] sk_free+0x2a/0x40 [ 26.572477] af_alg_release+0x5d/0x70 [ 26.576244] sock_release+0x8d/0x1e0 [ 26.579923] sock_close+0x16/0x20 [ 26.583345] __fput+0x333/0x7f0 [ 26.586589] ____fput+0x15/0x20 [ 26.589837] task_work_run+0x199/0x270 [ 26.593691] do_exit+0x9bb/0x1ae0 [ 26.597109] do_group_exit+0x149/0x400 [ 26.600965] SyS_exit_group+0x1d/0x20 [ 26.604734] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.609452] [ 26.611047] The buggy address belongs to the object at ffff8801cc3e9b40 [ 26.611047] which belongs to the cache kmalloc-128 of size 128 [ 26.623670] The buggy address is located 28 bytes inside of [ 26.623670] 128-byte region [ffff8801cc3e9b40, ffff8801cc3e9bc0) [ 26.635423] The buggy address belongs to the page: [ 26.640322] page:0000000099669d0b count:1 mapcount:0 mapping:000000009e0389c5 index:0x0 [ 26.648435] flags: 0x2fffc0000000100(slab) [ 26.652643] raw: 02fffc0000000100 ffff8801cc3e9000 0000000000000000 0000000100000015 [ 26.660491] raw: ffffea0007300160 ffffea00072d06e0 ffff8801db000640 0000000000000000 [ 26.668338] page dumped because: kasan: bad access detected [ 26.674012] [ 26.675609] Memory state around the buggy address: [ 26.680504] ffff8801cc3e9a00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.687830] ffff8801cc3e9a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.695155] >ffff8801cc3e9b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 26.702477] ^ [ 26.708675] ffff8801cc3e9b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.716001] ffff8801cc3e9c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.723322] ================================================================== [ 26.730644] Disabling lock debugging due to kernel taint [ 26.736163] Kernel panic - not syncing: panic_on_warn set ... [ 26.736163] [ 26.743501] CPU: 0 PID: 3182 Comm: syzkaller090995 Tainted: G B 4.15.0-rc2+ #206 [ 26.752214] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 26.761534] Call Trace: [ 26.764098] dump_stack+0x194/0x257 [ 26.767693] ? arch_local_irq_restore+0x53/0x53 [ 26.772334] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.777057] ? vsnprintf+0x1ed/0x1900 [ 26.780830] ? aead_recvmsg+0x1740/0x1bc0 [ 26.784947] panic+0x1e4/0x41c [ 26.788106] ? refcount_error_report+0x214/0x214 [ 26.792831] ? add_taint+0x1c/0x50 [ 26.796337] ? add_taint+0x1c/0x50 [ 26.799843] ? aead_recvmsg+0x1758/0x1bc0 [ 26.803959] kasan_end_report+0x50/0x50 [ 26.807898] kasan_report+0x144/0x340 [ 26.811668] __asan_report_load4_noabort+0x14/0x20 [ 26.816561] aead_recvmsg+0x1758/0x1bc0 [ 26.820509] ? aead_release+0x50/0x50 [ 26.824277] ? selinux_socket_recvmsg+0x36/0x40 [ 26.828915] ? security_socket_recvmsg+0x91/0xc0 [ 26.833654] ? aead_release+0x50/0x50 [ 26.837422] sock_recvmsg+0xc9/0x110 [ 26.841103] sock_read_iter+0x361/0x560 [ 26.845045] ? sock_recvmsg+0x110/0x110 [ 26.848987] ? selinux_file_permission+0x82/0x460 [ 26.853803] ? rw_verify_area+0xe5/0x2b0 [ 26.857834] aio_read+0x2b0/0x3a0 [ 26.861255] ? aio_write+0x5a0/0x5a0 [ 26.864948] ? lock_downgrade+0x980/0x980 [ 26.869081] ? lock_release+0xda0/0xda0 [ 26.873028] ? __might_sleep+0x95/0x190 [ 26.876975] do_io_submit+0xf99/0x14f0 [ 26.880829] ? do_io_submit+0xf99/0x14f0 [ 26.884861] ? aio_read+0x3a0/0x3a0 [ 26.888463] ? mm_fault_error+0x2c0/0x2c0 [ 26.892582] ? lock_downgrade+0x980/0x980 [ 26.896696] ? SyS_io_setup+0x10e/0x390 [ 26.900638] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 26.905363] ? do_page_fault+0xee/0x720 [ 26.909304] ? __do_page_fault+0xc90/0xc90 [ 26.913513] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 26.918496] SyS_io_submit+0x27/0x30 [ 26.922178] ? SyS_io_submit+0x27/0x30 [ 26.926036] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 26.930758] RIP: 0033:0x440c89 [ 26.933917] RSP: 002b:00007ffc92f45d38 EFLAGS: 00000213 ORIG_RAX: 00000000000000d1 [ 26.941591] RAX: ffffffffffffffda RBX: 00000000004a2529 RCX: 0000000000440c89 [ 26.948837] RDX: 0000000020642ff0 RSI: 0000000000000002 RDI: 00007fda7f6fc000 [ 26.956074] RBP: 0000000000006642 R08: 0000000000000000 R09: 0000000000000008 [ 26.963319] R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000000 [ 26.970558] R13: 0000000000402110 R14: 0000000000000000 R15: 0000000000000000 [ 26.977844] Dumping ftrace buffer: [ 26.981352] (ftrace buffer empty) [ 26.985034] Kernel Offset: disabled [ 26.988630] Rebooting in 86400 seconds..