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-5,10.128.0.14' (ECDSA) to the list of known hosts. net.ipv6.conf.syz7.accept_dad = 0 net.ipv6.conf.syz6.accept_dad = 0 net.ipv6.conf.syz5.accept_dad = 0 net.ipv6.conf.syz0.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.syz5.router_solicitations = 0 net.ipv6.conf.syz2.accept_dad = 0 net.ipv6.conf.syz0.router_solicitations = 0 net.ipv6.conf.syz7.router_solicitations = 0 net.ipv6.conf.syz6.router_solicitations = 0 net.ipv6.conf.syz1.router_solicitations = 0 net.ipv6.conf.syz3.router_solicitations = 0 net.ipv6.conf.syz4.router_solicitations = 0 net.ipv6.conf.syz2.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 syzkaller login: [ 53.729230] ================================================================== [ 53.730288] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 53.731212] Read of size 4 at addr ffff8801c67ef55c by task syzkaller324552/3413 [ 53.732198] [ 53.732430] CPU: 1 PID: 3413 Comm: syzkaller324552 Not tainted 4.15.0-rc2+ #209 [ 53.733420] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.734643] Call Trace: [ 53.735009] dump_stack+0x194/0x257 [ 53.735500] ? arch_local_irq_restore+0x53/0x53 [ 53.736151] ? show_regs_print_info+0x18/0x18 [ 53.736754] ? af_alg_make_sg+0x510/0x510 [ 53.737309] ? aead_recvmsg+0x1758/0x1bc0 [ 53.738042] print_address_description+0x73/0x250 [ 53.738686] ? aead_recvmsg+0x1758/0x1bc0 [ 53.739241] kasan_report+0x25b/0x340 [ 53.739755] __asan_report_load4_noabort+0x14/0x20 [ 53.740408] aead_recvmsg+0x1758/0x1bc0 [ 53.740960] ? aead_release+0x50/0x50 [ 53.741475] ? selinux_socket_recvmsg+0x36/0x40 [ 53.742096] ? security_socket_recvmsg+0x91/0xc0 [ 53.742731] ? aead_release+0x50/0x50 [ 53.743244] sock_recvmsg+0xc9/0x110 [ 53.743760] ? __sock_recv_wifi_status+0x210/0x210 [ 53.744417] ___sys_recvmsg+0x29b/0x630 [ 53.744960] ? ___sys_sendmsg+0x8a0/0x8a0 [ 53.745530] ? fget_raw+0x20/0x20 [ 53.746000] ? __handle_mm_fault+0x3e20/0x3e20 [ 53.746623] ? vmacache_find+0x5f/0x280 [ 53.747166] ? up_read+0x1a/0x40 [ 53.747621] ? __do_page_fault+0x3d6/0xc90 [ 53.748194] ? __fdget+0x18/0x20 [ 53.748675] __sys_recvmsg+0xe2/0x210 [ 53.749183] ? __sys_recvmsg+0xe2/0x210 [ 53.752099] ? SyS_sendmmsg+0x60/0x60 [ 53.755877] ? __do_page_fault+0xc90/0xc90 [ 53.760091] ? lockdep_sys_exit+0x47/0xf0 [ 53.764219] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 53.769208] SyS_recvmsg+0x2d/0x50 [ 53.772720] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.777442] RIP: 0033:0x44a669 [ 53.780598] RSP: 002b:00007fa198be3dc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 53.788273] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a669 [ 53.795510] RDX: 0000000000000040 RSI: 00000000206b0fc8 RDI: 0000000000000005 [ 53.802746] RBP: 0000000000000000 R08: 00007fa198be4700 R09: 00007fa198be4700 [ 53.810069] R10: 00007fa198be4700 R11: 0000000000000202 R12: 0000000000000000 [ 53.817306] R13: 00007ffe1eb7d09f R14: 00007fa198be49c0 R15: 0000000000000000 [ 53.824564] [ 53.826159] Allocated by task 3293: [ 53.829758] save_stack+0x43/0xd0 [ 53.833175] kasan_kmalloc+0xad/0xe0 [ 53.836856] __kmalloc+0x162/0x760 [ 53.840363] crypto_create_tfm+0x82/0x2e0 [ 53.844478] crypto_alloc_tfm+0x10e/0x2f0 [ 53.848592] crypto_alloc_skcipher+0x2c/0x40 [ 53.852970] crypto_get_default_null_skcipher+0x5f/0x80 [ 53.858298] aead_bind+0x89/0x140 [ 53.861714] alg_bind+0x1ab/0x440 [ 53.865132] SYSC_bind+0x1b4/0x3f0 [ 53.868638] SyS_bind+0x24/0x30 [ 53.871885] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.876602] [ 53.878196] Freed by task 3297: [ 53.881439] save_stack+0x43/0xd0 [ 53.884857] kasan_slab_free+0x71/0xc0 [ 53.888725] kfree+0xca/0x250 [ 53.891797] kzfree+0x28/0x30 [ 53.894867] crypto_destroy_tfm+0x140/0x2e0 [ 53.899152] crypto_put_default_null_skcipher+0x35/0x60 [ 53.904479] aead_sock_destruct+0x13c/0x220 [ 53.908766] __sk_destruct+0xfd/0x910 [ 53.912532] sk_destruct+0x47/0x80 [ 53.916036] __sk_free+0x57/0x230 [ 53.919455] sk_free+0x2a/0x40 [ 53.922612] af_alg_release+0x5d/0x70 [ 53.926382] sock_release+0x8d/0x1e0 [ 53.930062] sock_close+0x16/0x20 [ 53.933483] __fput+0x333/0x7f0 [ 53.936730] ____fput+0x15/0x20 [ 53.939976] task_work_run+0x199/0x270 [ 53.943828] do_exit+0x9bb/0x1ae0 [ 53.947245] do_group_exit+0x149/0x400 [ 53.951098] SyS_exit_group+0x1d/0x20 [ 53.954861] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 53.959581] [ 53.961174] The buggy address belongs to the object at ffff8801c67ef540 [ 53.961174] which belongs to the cache kmalloc-128 of size 128 [ 53.973793] The buggy address is located 28 bytes inside of [ 53.973793] 128-byte region [ffff8801c67ef540, ffff8801c67ef5c0) [ 53.985547] The buggy address belongs to the page: [ 53.990445] page:00000000b37f70ec count:1 mapcount:0 mapping:00000000fd21d6d8 index:0x0 [ 53.998555] flags: 0x2fffc0000000100(slab) [ 54.002758] raw: 02fffc0000000100 ffff8801c67ef000 0000000000000000 0000000100000015 [ 54.010608] raw: ffffea00071a70a0 ffffea0007184060 ffff8801db000640 0000000000000000 [ 54.018462] page dumped because: kasan: bad access detected [ 54.024140] [ 54.025737] Memory state around the buggy address: [ 54.030632] ffff8801c67ef400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.037955] ffff8801c67ef480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.045278] >ffff8801c67ef500: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 54.052599] ^ [ 54.058794] ffff8801c67ef580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.066116] ffff8801c67ef600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.073438] ================================================================== [ 54.080760] Disabling lock debugging due to kernel taint [ 54.086402] Kernel panic - not syncing: panic_on_warn set ... [ 54.086402] [ 54.093737] CPU: 1 PID: 3413 Comm: syzkaller324552 Tainted: G B 4.15.0-rc2+ #209 [ 54.102449] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.111768] Call Trace: [ 54.114325] dump_stack+0x194/0x257 [ 54.117920] ? arch_local_irq_restore+0x53/0x53 [ 54.122557] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 54.127277] ? vsnprintf+0x1ed/0x1900 [ 54.131045] ? aead_recvmsg+0x1720/0x1bc0 [ 54.135159] panic+0x1e4/0x41c [ 54.138316] ? refcount_error_report+0x214/0x214 [ 54.143044] ? add_taint+0x1c/0x50 [ 54.146548] ? add_taint+0x1c/0x50 [ 54.150053] ? aead_recvmsg+0x1758/0x1bc0 [ 54.154167] kasan_end_report+0x50/0x50 [ 54.158111] kasan_report+0x144/0x340 [ 54.161876] __asan_report_load4_noabort+0x14/0x20 [ 54.166774] aead_recvmsg+0x1758/0x1bc0 [ 54.170724] ? aead_release+0x50/0x50 [ 54.174490] ? selinux_socket_recvmsg+0x36/0x40 [ 54.179124] ? security_socket_recvmsg+0x91/0xc0 [ 54.183844] ? aead_release+0x50/0x50 [ 54.187612] sock_recvmsg+0xc9/0x110 [ 54.191290] ? __sock_recv_wifi_status+0x210/0x210 [ 54.196183] ___sys_recvmsg+0x29b/0x630 [ 54.200126] ? ___sys_sendmsg+0x8a0/0x8a0 [ 54.204253] ? fget_raw+0x20/0x20 [ 54.207673] ? __handle_mm_fault+0x3e20/0x3e20 [ 54.212218] ? vmacache_find+0x5f/0x280 [ 54.216167] ? up_read+0x1a/0x40 [ 54.219513] ? __do_page_fault+0x3d6/0xc90 [ 54.223715] ? __fdget+0x18/0x20 [ 54.227050] __sys_recvmsg+0xe2/0x210 [ 54.230815] ? __sys_recvmsg+0xe2/0x210 [ 54.234753] ? SyS_sendmmsg+0x60/0x60 [ 54.238521] ? __do_page_fault+0xc90/0xc90 [ 54.242725] ? lockdep_sys_exit+0x47/0xf0 [ 54.246843] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 54.251826] SyS_recvmsg+0x2d/0x50 [ 54.255334] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 54.260054] RIP: 0033:0x44a669 [ 54.263207] RSP: 002b:00007fa198be3dc8 EFLAGS: 00000202 ORIG_RAX: 000000000000002f [ 54.270879] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000044a669 [ 54.278112] RDX: 0000000000000040 RSI: 00000000206b0fc8 RDI: 0000000000000005 [ 54.285348] RBP: 0000000000000000 R08: 00007fa198be4700 R09: 00007fa198be4700 [ 54.292583] R10: 00007fa198be4700 R11: 0000000000000202 R12: 0000000000000000 [ 54.299817] R13: 00007ffe1eb7d09f R14: 00007fa198be49c0 R15: 0000000000000000 [ 54.307088] Dumping ftrace buffer: [ 54.310594] (ftrace buffer empty) [ 54.314272] Kernel Offset: disabled [ 54.317866] Rebooting in 86400 seconds..