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-8,10.128.0.39' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz7.router_solicitations = 0 executing program executing program executing program 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: [ 422.459987] ================================================================== [ 422.461116] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 422.461971] Read of size 4 at addr ffff8801c72ab85c by task syzkaller661869/3434 [ 422.462955] [ 422.463188] CPU: 0 PID: 3434 Comm: syzkaller661869 Not tainted 4.15.0-rc1-mm1+ #29 [ 422.464196] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 422.465426] Call Trace: [ 422.465784] dump_stack+0x194/0x257 [ 422.466301] ? arch_local_irq_restore+0x53/0x53 [ 422.466926] ? show_regs_print_info+0x65/0x65 [ 422.467530] ? af_alg_make_sg+0x510/0x510 [ 422.468088] ? aead_recvmsg+0x1758/0x1bc0 [ 422.468648] print_address_description+0x73/0x250 [ 422.469294] ? aead_recvmsg+0x1758/0x1bc0 [ 422.469850] kasan_report+0x25b/0x340 [ 422.470400] __asan_report_load4_noabort+0x14/0x20 [ 422.471058] aead_recvmsg+0x1758/0x1bc0 [ 422.471611] ? aead_release+0x50/0x50 [ 422.472126] ? selinux_socket_recvmsg+0x36/0x40 [ 422.472750] ? security_socket_recvmsg+0x91/0xc0 [ 422.473387] ? aead_release+0x50/0x50 [ 422.473901] sock_recvmsg+0xc9/0x110 [ 422.474404] ? __sock_recv_wifi_status+0x210/0x210 [ 422.475063] ___sys_recvmsg+0x29b/0x630 [ 422.475606] ? ___sys_sendmsg+0x8a0/0x8a0 [ 422.476194] ? lock_downgrade+0x980/0x980 [ 422.476760] ? __fdget+0x18/0x20 [ 422.477239] __sys_recvmsg+0xe2/0x210 [ 422.477763] ? __sys_recvmsg+0xe2/0x210 [ 422.478313] ? SyS_sendmmsg+0x60/0x60 [ 422.478831] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 422.479501] ? lockdep_sys_exit+0x47/0xf0 [ 422.480077] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 422.484931] SyS_recvmsg+0x2d/0x50 [ 422.488443] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 422.493168] RIP: 0033:0x44b8b9 [ 422.496324] RSP: 002b:00007f4485195d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 422.504004] RAX: ffffffffffffffda RBX: 00007f4485196700 RCX: 000000000044b8b9 [ 422.511243] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000005 [ 422.518483] RBP: 00007ffd5665d760 R08: 00007f4485196700 R09: 00007f4485196700 [ 422.525721] R10: 00007f4485196700 R11: 0000000000000246 R12: 0000000000000000 [ 422.532959] R13: 00007ffd5665d75f R14: 00007f44851969c0 R15: 0000000000000000 [ 422.540214] [ 422.541809] Allocated by task 3284: [ 422.545407] save_stack+0x43/0xd0 [ 422.548824] kasan_kmalloc+0xad/0xe0 [ 422.552505] __kmalloc+0x162/0x760 [ 422.556011] crypto_create_tfm+0x82/0x2e0 [ 422.560123] crypto_alloc_tfm+0x10e/0x2f0 [ 422.564236] crypto_alloc_skcipher+0x2c/0x40 [ 422.568610] crypto_get_default_null_skcipher+0x5f/0x80 [ 422.573939] aead_bind+0x89/0x140 [ 422.577358] alg_bind+0x1ab/0x440 [ 422.580785] SYSC_bind+0x1b4/0x3f0 [ 422.584290] SyS_bind+0x24/0x30 [ 422.587539] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 422.592256] [ 422.593850] Freed by task 3328: [ 422.597093] save_stack+0x43/0xd0 [ 422.600510] kasan_slab_free+0x71/0xc0 [ 422.604362] kfree+0xca/0x250 [ 422.607435] kzfree+0x28/0x30 [ 422.610506] crypto_destroy_tfm+0x140/0x2e0 [ 422.614802] crypto_put_default_null_skcipher+0x35/0x60 [ 422.620132] aead_sock_destruct+0x13c/0x220 [ 422.624418] __sk_destruct+0xfd/0x910 [ 422.628182] sk_destruct+0x47/0x80 [ 422.631685] __sk_free+0x57/0x230 [ 422.635103] sk_free+0x2a/0x40 [ 422.638261] af_alg_release+0x5d/0x70 [ 422.642114] sock_release+0x8d/0x1e0 [ 422.645796] sock_close+0x16/0x20 [ 422.649214] __fput+0x333/0x7f0 [ 422.652460] ____fput+0x15/0x20 [ 422.655710] task_work_run+0x199/0x270 [ 422.659563] do_exit+0x9bb/0x1ae0 [ 422.662980] do_group_exit+0x149/0x400 [ 422.666833] SyS_exit_group+0x1d/0x20 [ 422.670599] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 422.675316] [ 422.676914] The buggy address belongs to the object at ffff8801c72ab840 [ 422.676914] which belongs to the cache kmalloc-128 of size 128 [ 422.689535] The buggy address is located 28 bytes inside of [ 422.689535] 128-byte region [ffff8801c72ab840, ffff8801c72ab8c0) [ 422.701294] The buggy address belongs to the page: [ 422.706193] page:00000000da783cec count:1 mapcount:0 mapping:00000000382225d2 index:0x0 [ 422.714301] flags: 0x2fffc0000000100(slab) [ 422.718503] raw: 02fffc0000000100 ffff8801c72ab000 0000000000000000 0000000100000015 [ 422.726350] raw: ffffea000720a660 ffffea00071b56a0 ffff8801db000640 0000000000000000 [ 422.734193] page dumped because: kasan: bad access detected [ 422.739867] [ 422.741461] Memory state around the buggy address: [ 422.746356] ffff8801c72ab700: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 422.753680] ffff8801c72ab780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 422.761004] >ffff8801c72ab800: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 422.768327] ^ [ 422.774523] ffff8801c72ab880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 422.781846] ffff8801c72ab900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 422.789167] ================================================================== [ 422.796492] Disabling lock debugging due to kernel taint [ 422.802192] Kernel panic - not syncing: panic_on_warn set ... [ 422.802192] [ 422.809526] CPU: 0 PID: 3434 Comm: syzkaller661869 Tainted: G B 4.15.0-rc1-mm1+ #29 [ 422.818498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 422.827814] Call Trace: [ 422.830370] dump_stack+0x194/0x257 [ 422.833970] ? arch_local_irq_restore+0x53/0x53 [ 422.838613] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 422.843335] ? vsnprintf+0x1ed/0x1900 [ 422.847101] ? aead_recvmsg+0x1710/0x1bc0 [ 422.851218] panic+0x1e4/0x41c [ 422.854480] ? refcount_error_report+0x214/0x214 [ 422.859202] ? add_taint+0x1c/0x50 [ 422.862708] ? add_taint+0x1c/0x50 [ 422.866213] ? aead_recvmsg+0x1758/0x1bc0 [ 422.870328] kasan_end_report+0x50/0x50 [ 422.874267] kasan_report+0x144/0x340 [ 422.878034] __asan_report_load4_noabort+0x14/0x20 [ 422.882930] aead_recvmsg+0x1758/0x1bc0 [ 422.886882] ? aead_release+0x50/0x50 [ 422.890650] ? selinux_socket_recvmsg+0x36/0x40 [ 422.895285] ? security_socket_recvmsg+0x91/0xc0 [ 422.900007] ? aead_release+0x50/0x50 [ 422.903775] sock_recvmsg+0xc9/0x110 [ 422.907455] ? __sock_recv_wifi_status+0x210/0x210 [ 422.912349] ___sys_recvmsg+0x29b/0x630 [ 422.916291] ? ___sys_sendmsg+0x8a0/0x8a0 [ 422.920420] ? lock_downgrade+0x980/0x980 [ 422.924535] ? __fdget+0x18/0x20 [ 422.927874] __sys_recvmsg+0xe2/0x210 [ 422.931639] ? __sys_recvmsg+0xe2/0x210 [ 422.935588] ? SyS_sendmmsg+0x60/0x60 [ 422.939355] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 422.944339] ? lockdep_sys_exit+0x47/0xf0 [ 422.948455] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 422.953437] SyS_recvmsg+0x2d/0x50 [ 422.956946] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 422.961668] RIP: 0033:0x44b8b9 [ 422.964826] RSP: 002b:00007f4485195d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 422.972497] RAX: ffffffffffffffda RBX: 00007f4485196700 RCX: 000000000044b8b9 [ 422.979731] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000005 [ 422.986967] RBP: 00007ffd5665d760 R08: 00007f4485196700 R09: 00007f4485196700 [ 422.994206] R10: 00007f4485196700 R11: 0000000000000246 R12: 0000000000000000 [ 423.001443] R13: 00007ffd5665d75f R14: 00007f44851969c0 R15: 0000000000000000 [ 423.008717] Dumping ftrace buffer: [ 423.012229] (ftrace buffer empty) [ 423.015906] Kernel Offset: disabled [ 423.019500] Rebooting in 86400 seconds..