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-next-kasan-gce-9,10.128.0.12' (ECDSA) to the list of known hosts. net.ipv6.conf.syz0.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz3.accept_dad = 0 net.ipv6.conf.syz1.accept_dad = 0 net.ipv6.conf.syz4.accept_dad = 0 net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz5.router_solicitations = 0 net.ipv6.conf.syz2.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz4.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 executing program executing program 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: [ 27.127391] ================================================================== [ 27.128516] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 27.129378] Read of size 4 at addr ffff8801c4c7de5c by task syzkaller784823/3616 [ 27.130374] [ 27.130622] CPU: 0 PID: 3616 Comm: syzkaller784823 Not tainted 4.15.0-rc1-next-20171128+ #54 [ 27.131787] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.133040] Call Trace: [ 27.133398] dump_stack+0x194/0x257 [ 27.133892] ? arch_local_irq_restore+0x53/0x53 [ 27.134515] ? show_regs_print_info+0x65/0x65 [ 27.135122] ? af_alg_make_sg+0x510/0x510 [ 27.135677] ? aead_recvmsg+0x1758/0x1bc0 [ 27.136235] print_address_description+0x73/0x250 [ 27.136894] ? aead_recvmsg+0x1758/0x1bc0 [ 27.137452] kasan_report+0x25b/0x340 [ 27.137965] __asan_report_load4_noabort+0x14/0x20 [ 27.138623] aead_recvmsg+0x1758/0x1bc0 [ 27.139186] ? aead_release+0x50/0x50 [ 27.139699] ? selinux_socket_recvmsg+0x36/0x40 [ 27.140325] ? security_socket_recvmsg+0x91/0xc0 [ 27.140959] ? aead_release+0x50/0x50 [ 27.141473] sock_recvmsg+0xc9/0x110 [ 27.141971] ? __sock_recv_wifi_status+0x210/0x210 [ 27.142629] ___sys_recvmsg+0x29b/0x630 [ 27.143168] ? ___sys_sendmsg+0x8a0/0x8a0 [ 27.143739] ? fget_raw+0x20/0x20 [ 27.144205] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 27.144826] ? vmacache_find+0x5f/0x280 [ 27.145381] ? up_read+0x1a/0x40 [ 27.145837] ? __do_page_fault+0x3d6/0xc90 [ 27.146400] ? lock_downgrade+0x980/0x980 [ 27.146978] ? __fdget+0x18/0x20 [ 27.147437] __sys_recvmsg+0xe2/0x210 [ 27.147953] ? __sys_recvmsg+0xe2/0x210 [ 27.151903] ? SyS_sendmmsg+0x60/0x60 [ 27.155681] ? __do_page_fault+0xc90/0xc90 [ 27.159886] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.164883] ? lockdep_sys_exit+0x47/0xf0 [ 27.169008] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.173999] SyS_recvmsg+0x2d/0x50 [ 27.177512] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.182238] RIP: 0033:0x44a769 [ 27.185396] RSP: 002b:00007ff7df21cdc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 27.193071] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a769 [ 27.200306] RDX: 0000000000000040 RSI: 00000000207e0000 RDI: 0000000000000005 [ 27.207544] RBP: 0000000000000000 R08: 00007ff7df21d700 R09: 00007ff7df21d700 [ 27.214797] R10: 00007ff7df21d700 R11: 0000000000000202 R12: 0000000000000000 [ 27.222119] R13: 00007ffd96c1b8cf R14: 00007ff7df21d9c0 R15: 0000000000000000 [ 27.229370] [ 27.230965] Allocated by task 3417: [ 27.234578] save_stack+0x43/0xd0 [ 27.237997] kasan_kmalloc+0xad/0xe0 [ 27.241684] __kmalloc+0x162/0x760 [ 27.245190] crypto_create_tfm+0x82/0x2e0 [ 27.249302] crypto_alloc_tfm+0x10e/0x2f0 [ 27.253424] crypto_alloc_skcipher+0x2c/0x40 [ 27.257806] crypto_get_default_null_skcipher+0x5f/0x80 [ 27.263136] aead_bind+0x89/0x140 [ 27.266554] alg_bind+0x1ab/0x440 [ 27.269976] SYSC_bind+0x1b4/0x3f0 [ 27.273480] SyS_bind+0x24/0x30 [ 27.276727] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.281447] [ 27.283044] Freed by task 3520: [ 27.286289] save_stack+0x43/0xd0 [ 27.289707] kasan_slab_free+0x71/0xc0 [ 27.293568] kfree+0xca/0x250 [ 27.296644] kzfree+0x28/0x30 [ 27.299727] crypto_destroy_tfm+0x140/0x2e0 [ 27.304015] crypto_put_default_null_skcipher+0x35/0x60 [ 27.309343] aead_sock_destruct+0x13c/0x220 [ 27.313639] __sk_destruct+0xfd/0x910 [ 27.317404] sk_destruct+0x47/0x80 [ 27.320907] __sk_free+0x57/0x230 [ 27.324324] sk_free+0x2a/0x40 [ 27.327479] af_alg_release+0x5d/0x70 [ 27.331245] sock_release+0x8d/0x1e0 [ 27.334922] sock_close+0x16/0x20 [ 27.338341] __fput+0x333/0x7f0 [ 27.341587] ____fput+0x15/0x20 [ 27.344832] task_work_run+0x199/0x270 [ 27.348685] do_exit+0x9bb/0x1ae0 [ 27.352099] do_group_exit+0x149/0x400 [ 27.355952] SyS_exit_group+0x1d/0x20 [ 27.359718] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.364436] [ 27.366031] The buggy address belongs to the object at ffff8801c4c7de40 [ 27.366031] which belongs to the cache kmalloc-128 of size 128 [ 27.378653] The buggy address is located 28 bytes inside of [ 27.378653] 128-byte region [ffff8801c4c7de40, ffff8801c4c7dec0) [ 27.390407] The buggy address belongs to the page: [ 27.395301] page:ffffea0007131f40 count:1 mapcount:0 mapping:ffff8801c4c7d000 index:0x0 [ 27.403412] flags: 0x2fffc0000000100(slab) [ 27.407614] raw: 02fffc0000000100 ffff8801c4c7d000 0000000000000000 0000000100000015 [ 27.415462] raw: ffffea0007147420 ffffea000713e8e0 ffff8801db000640 0000000000000000 [ 27.423307] page dumped because: kasan: bad access detected [ 27.428982] [ 27.430575] Memory state around the buggy address: [ 27.435468] ffff8801c4c7dd00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.442789] ffff8801c4c7dd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 27.450112] >ffff8801c4c7de00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.457434] ^ [ 27.463629] ffff8801c4c7de80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.470952] ffff8801c4c7df00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 27.478273] ================================================================== [ 27.485597] Disabling lock debugging due to kernel taint [ 27.491291] Kernel panic - not syncing: panic_on_warn set ... [ 27.491291] [ 27.498626] CPU: 0 PID: 3616 Comm: syzkaller784823 Tainted: G B 4.15.0-rc1-next-20171128+ #54 [ 27.508464] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.517783] Call Trace: [ 27.520339] dump_stack+0x194/0x257 [ 27.523931] ? arch_local_irq_restore+0x53/0x53 [ 27.528567] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 27.533288] ? vsnprintf+0x1ed/0x1900 [ 27.537055] ? aead_recvmsg+0x1680/0x1bc0 [ 27.541176] panic+0x1e4/0x41c [ 27.544335] ? refcount_error_report+0x214/0x214 [ 27.549055] ? add_taint+0x1c/0x50 [ 27.552558] ? add_taint+0x1c/0x50 [ 27.556061] ? aead_recvmsg+0x1758/0x1bc0 [ 27.560173] kasan_end_report+0x50/0x50 [ 27.564109] kasan_report+0x144/0x340 [ 27.567876] __asan_report_load4_noabort+0x14/0x20 [ 27.572771] aead_recvmsg+0x1758/0x1bc0 [ 27.576725] ? aead_release+0x50/0x50 [ 27.580491] ? selinux_socket_recvmsg+0x36/0x40 [ 27.585124] ? security_socket_recvmsg+0x91/0xc0 [ 27.589842] ? aead_release+0x50/0x50 [ 27.593606] sock_recvmsg+0xc9/0x110 [ 27.597282] ? __sock_recv_wifi_status+0x210/0x210 [ 27.602176] ___sys_recvmsg+0x29b/0x630 [ 27.606118] ? ___sys_sendmsg+0x8a0/0x8a0 [ 27.610236] ? fget_raw+0x20/0x20 [ 27.613652] ? __handle_mm_fault+0x3dd0/0x3dd0 [ 27.618199] ? vmacache_find+0x5f/0x280 [ 27.622139] ? up_read+0x1a/0x40 [ 27.625471] ? __do_page_fault+0x3d6/0xc90 [ 27.629671] ? lock_downgrade+0x980/0x980 [ 27.633788] ? __fdget+0x18/0x20 [ 27.637119] __sys_recvmsg+0xe2/0x210 [ 27.640880] ? __sys_recvmsg+0xe2/0x210 [ 27.644817] ? SyS_sendmmsg+0x60/0x60 [ 27.648583] ? __do_page_fault+0xc90/0xc90 [ 27.652783] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.657766] ? lockdep_sys_exit+0x47/0xf0 [ 27.661885] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 27.666880] SyS_recvmsg+0x2d/0x50 [ 27.670387] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 27.675112] RIP: 0033:0x44a769 [ 27.678265] RSP: 002b:00007ff7df21cdc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 27.685937] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a769 [ 27.693169] RDX: 0000000000000040 RSI: 00000000207e0000 RDI: 0000000000000005 [ 27.700404] RBP: 0000000000000000 R08: 00007ff7df21d700 R09: 00007ff7df21d700 [ 27.707638] R10: 00007ff7df21d700 R11: 0000000000000202 R12: 0000000000000000 [ 27.714874] R13: 00007ffd96c1b8cf R14: 00007ff7df21d9c0 R15: 0000000000000000 [ 27.722146] Dumping ftrace buffer: [ 27.725654] (ftrace buffer empty) [ 27.729328] Kernel Offset: disabled [ 27.732919] Rebooting in 86400 seconds..