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-2,10.128.15.202' (ECDSA) to the list of known hosts. 2017/12/06 17:02:43 parsed 1 programs 2017/12/06 17:02:43 executed programs: 0 syzkaller login: [ 32.202247] ================================================================== [ 32.209686] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 32.216244] Read of size 4 at addr ffff8801cb5990dc by task syz-executor0/3151 [ 32.223572] [ 32.225179] CPU: 1 PID: 3151 Comm: syz-executor0 Not tainted 4.15.0-rc2+ #209 [ 32.232423] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.241749] Call Trace: [ 32.244317] dump_stack+0x194/0x257 [ 32.247926] ? arch_local_irq_restore+0x53/0x53 [ 32.252581] ? show_regs_print_info+0x18/0x18 [ 32.257053] ? af_alg_make_sg+0x510/0x510 [ 32.261172] ? aead_recvmsg+0x1758/0x1bc0 [ 32.265295] print_address_description+0x73/0x250 [ 32.270109] ? aead_recvmsg+0x1758/0x1bc0 [ 32.274230] kasan_report+0x25b/0x340 [ 32.278008] __asan_report_load4_noabort+0x14/0x20 [ 32.282908] aead_recvmsg+0x1758/0x1bc0 [ 32.286874] ? aead_release+0x50/0x50 [ 32.290649] ? selinux_socket_recvmsg+0x36/0x40 [ 32.295289] ? security_socket_recvmsg+0x91/0xc0 [ 32.300020] ? aead_release+0x50/0x50 [ 32.303794] sock_recvmsg+0xc9/0x110 [ 32.307481] ? __sock_recv_wifi_status+0x210/0x210 [ 32.312383] ___sys_recvmsg+0x29b/0x630 [ 32.316337] ? ___sys_sendmsg+0x8a0/0x8a0 [ 32.320467] ? lock_downgrade+0x980/0x980 [ 32.324608] ? __local_bh_enable_ip+0x121/0x230 [ 32.329252] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.334249] ? release_sock+0x1d4/0x2a0 [ 32.338197] ? trace_hardirqs_on+0xd/0x10 [ 32.342318] ? __local_bh_enable_ip+0x121/0x230 [ 32.346969] ? __fdget+0x18/0x20 [ 32.350318] __sys_recvmsg+0xe2/0x210 [ 32.354092] ? __sys_recvmsg+0xe2/0x210 [ 32.358038] ? SyS_sendmmsg+0x60/0x60 [ 32.361814] ? alg_setsockopt+0xef/0x350 [ 32.365856] ? SyS_futex+0x269/0x390 [ 32.369539] ? SyS_setsockopt+0x215/0x360 [ 32.373677] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.378673] SyS_recvmsg+0x2d/0x50 [ 32.382188] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.386915] RIP: 0033:0x452a39 [ 32.390079] RSP: 002b:00007f370d2cbc58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f [ 32.397756] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 32.404994] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000005 [ 32.412236] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 32.419476] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ed0b8 [ 32.426720] R13: 00000000ffffffff R14: 00007f370d2cc6d4 R15: 0000000000000000 [ 32.433981] [ 32.435585] Allocated by task 3151: [ 32.439189] save_stack+0x43/0xd0 [ 32.442614] kasan_kmalloc+0xad/0xe0 [ 32.446300] __kmalloc+0x162/0x760 [ 32.449813] crypto_create_tfm+0x82/0x2e0 [ 32.453931] crypto_alloc_tfm+0x10e/0x2f0 [ 32.458055] crypto_alloc_skcipher+0x2c/0x40 [ 32.462441] crypto_get_default_null_skcipher+0x5f/0x80 [ 32.467788] aead_bind+0x89/0x140 [ 32.471212] alg_bind+0x1ab/0x440 [ 32.474639] SYSC_bind+0x1b4/0x3f0 [ 32.478149] SyS_bind+0x24/0x30 [ 32.481399] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.486123] [ 32.487721] Freed by task 3151: [ 32.490973] save_stack+0x43/0xd0 [ 32.494396] kasan_slab_free+0x71/0xc0 [ 32.498281] kfree+0xca/0x250 [ 32.501373] kzfree+0x28/0x30 [ 32.504458] crypto_destroy_tfm+0x140/0x2e0 [ 32.508763] crypto_put_default_null_skcipher+0x35/0x60 [ 32.514103] aead_sock_destruct+0x13c/0x220 [ 32.518395] __sk_destruct+0xfd/0x910 [ 32.522167] sk_destruct+0x47/0x80 [ 32.525677] __sk_free+0x57/0x230 [ 32.529099] sk_free+0x2a/0x40 [ 32.532262] af_alg_release+0x5d/0x70 [ 32.536032] sock_release+0x8d/0x1e0 [ 32.539727] sock_close+0x16/0x20 [ 32.543151] __fput+0x333/0x7f0 [ 32.546410] ____fput+0x15/0x20 [ 32.549662] task_work_run+0x199/0x270 [ 32.553522] exit_to_usermode_loop+0x296/0x310 [ 32.558071] syscall_return_slowpath+0x490/0x550 [ 32.562802] entry_SYSCALL_64_fastpath+0x94/0x96 [ 32.567560] [ 32.569163] The buggy address belongs to the object at ffff8801cb5990c0 [ 32.569163] which belongs to the cache kmalloc-128 of size 128 [ 32.581792] The buggy address is located 28 bytes inside of [ 32.581792] 128-byte region [ffff8801cb5990c0, ffff8801cb599140) [ 32.593565] The buggy address belongs to the page: [ 32.598467] page:00000000f476ac02 count:1 mapcount:0 mapping:00000000ec4b8f4d index:0x0 [ 32.606587] flags: 0x2fffc0000000100(slab) [ 32.610794] raw: 02fffc0000000100 ffff8801cb599000 0000000000000000 0000000100000015 [ 32.618646] raw: ffffea00072ea620 ffffea00072dd260 ffff8801db000640 0000000000000000 [ 32.626495] page dumped because: kasan: bad access detected [ 32.632173] [ 32.633772] Memory state around the buggy address: [ 32.638671] ffff8801cb598f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.645998] ffff8801cb599000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.653325] >ffff8801cb599080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 32.660651] ^ [ 32.666849] ffff8801cb599100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 32.674191] ffff8801cb599180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.681517] ================================================================== [ 32.688845] Disabling lock debugging due to kernel taint [ 32.694336] Kernel panic - not syncing: panic_on_warn set ... [ 32.694336] [ 32.701676] CPU: 1 PID: 3151 Comm: syz-executor0 Tainted: G B 4.15.0-rc2+ #209 [ 32.710218] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.719546] Call Trace: [ 32.722110] dump_stack+0x194/0x257 [ 32.725706] ? arch_local_irq_restore+0x53/0x53 [ 32.730347] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 32.735080] ? vsnprintf+0x1ed/0x1900 [ 32.738860] ? aead_recvmsg+0x1720/0x1bc0 [ 32.742978] panic+0x1e4/0x41c [ 32.746152] ? refcount_error_report+0x214/0x214 [ 32.750876] ? add_taint+0x1c/0x50 [ 32.754383] ? add_taint+0x1c/0x50 [ 32.757895] ? aead_recvmsg+0x1758/0x1bc0 [ 32.762012] kasan_end_report+0x50/0x50 [ 32.765953] kasan_report+0x144/0x340 [ 32.769722] __asan_report_load4_noabort+0x14/0x20 [ 32.774619] aead_recvmsg+0x1758/0x1bc0 [ 32.778571] ? aead_release+0x50/0x50 [ 32.782344] ? selinux_socket_recvmsg+0x36/0x40 [ 32.786983] ? security_socket_recvmsg+0x91/0xc0 [ 32.791710] ? aead_release+0x50/0x50 [ 32.795479] sock_recvmsg+0xc9/0x110 [ 32.799164] ? __sock_recv_wifi_status+0x210/0x210 [ 32.804062] ___sys_recvmsg+0x29b/0x630 [ 32.808008] ? ___sys_sendmsg+0x8a0/0x8a0 [ 32.812128] ? lock_downgrade+0x980/0x980 [ 32.816254] ? __local_bh_enable_ip+0x121/0x230 [ 32.820891] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.825875] ? release_sock+0x1d4/0x2a0 [ 32.829814] ? trace_hardirqs_on+0xd/0x10 [ 32.833931] ? __local_bh_enable_ip+0x121/0x230 [ 32.838570] ? __fdget+0x18/0x20 [ 32.841928] __sys_recvmsg+0xe2/0x210 [ 32.845697] ? __sys_recvmsg+0xe2/0x210 [ 32.849640] ? SyS_sendmmsg+0x60/0x60 [ 32.853415] ? alg_setsockopt+0xef/0x350 [ 32.857446] ? SyS_futex+0x269/0x390 [ 32.861125] ? SyS_setsockopt+0x215/0x360 [ 32.865247] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 32.870231] SyS_recvmsg+0x2d/0x50 [ 32.873744] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 32.878473] RIP: 0033:0x452a39 [ 32.881632] RSP: 002b:00007f370d2cbc58 EFLAGS: 00000212 ORIG_RAX: 000000000000002f [ 32.889316] RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 0000000000452a39 [ 32.896553] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000005 [ 32.903790] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 32.911026] R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006ed0b8 [ 32.918274] R13: 00000000ffffffff R14: 00007f370d2cc6d4 R15: 0000000000000000 [ 32.925558] Dumping ftrace buffer: [ 32.929068] (ftrace buffer empty) [ 32.932747] Kernel Offset: disabled [ 32.936345] Rebooting in 86400 seconds..