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-6,10.128.15.204' (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 executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 40.466919] ================================================================== [ 40.467977] BUG: KASAN: use-after-free in aead_recvmsg+0x1758/0x1bc0 [ 40.468833] Read of size 4 at addr ffff8801cbc560dc by task syzkaller204863/3441 [ 40.469816] [ 40.470047] CPU: 1 PID: 3441 Comm: syzkaller204863 Not tainted 4.15.0-rc1+ #205 [ 40.471024] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.472241] Call Trace: [ 40.472595] dump_stack+0x194/0x257 [ 40.473086] ? arch_local_irq_restore+0x53/0x53 [ 40.473721] ? show_regs_print_info+0x65/0x65 [ 40.474322] ? af_alg_make_sg+0x510/0x510 [ 40.474876] ? aead_recvmsg+0x1758/0x1bc0 [ 40.475435] print_address_description+0x73/0x250 [ 40.476093] ? aead_recvmsg+0x1758/0x1bc0 [ 40.476651] kasan_report+0x25b/0x340 [ 40.477198] __asan_report_load4_noabort+0x14/0x20 [ 40.477852] aead_recvmsg+0x1758/0x1bc0 [ 40.478404] ? aead_release+0x50/0x50 [ 40.478928] ? selinux_socket_recvmsg+0x36/0x40 [ 40.479550] ? security_socket_recvmsg+0x91/0xc0 [ 40.480253] ? aead_release+0x50/0x50 [ 40.480784] sock_recvmsg+0xc9/0x110 [ 40.481286] ? __sock_recv_wifi_status+0x210/0x210 [ 40.481943] ___sys_recvmsg+0x29b/0x630 [ 40.482488] ? ___sys_sendmsg+0x8a0/0x8a0 [ 40.483082] ? lock_downgrade+0x980/0x980 [ 40.483648] ? __fdget+0x18/0x20 [ 40.484113] __sys_recvmsg+0xe2/0x210 [ 40.484624] ? __sys_recvmsg+0xe2/0x210 [ 40.485163] ? SyS_sendmmsg+0x60/0x60 [ 40.485681] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.486369] ? lockdep_sys_exit+0x47/0xf0 [ 40.486946] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.487617] SyS_recvmsg+0x2d/0x50 [ 40.491127] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.495850] RIP: 0033:0x4478c9 [ 40.499007] RSP: 002b:00007ff033ac4d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 40.506681] RAX: ffffffffffffffda RBX: 00007ff033ac5700 RCX: 00000000004478c9 executing program [ 40.513916] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 40.521151] RBP: 00007ffd88d5b4b0 R08: 00007ff033ac5700 R09: 00007ff033ac5700 [ 40.528389] R10: 00007ff033ac5700 R11: 0000000000000246 R12: 0000000000000000 [ 40.535628] R13: 00007ffd88d5b4af R14: 00007ff033ac59c0 R15: 0000000000000000 [ 40.542882] [ 40.544477] Allocated by task 3113: [ 40.548073] save_stack+0x43/0xd0 [ 40.551508] kasan_kmalloc+0xad/0xe0 [ 40.555188] __kmalloc+0x162/0x760 [ 40.558693] crypto_create_tfm+0x82/0x2e0 [ 40.562807] crypto_alloc_tfm+0x10e/0x2f0 [ 40.566920] crypto_alloc_skcipher+0x2c/0x40 [ 40.571294] crypto_get_default_null_skcipher+0x5f/0x80 [ 40.576636] aead_bind+0x89/0x140 [ 40.580063] alg_bind+0x1ab/0x440 [ 40.583483] SYSC_bind+0x1b4/0x3f0 [ 40.586987] SyS_bind+0x24/0x30 [ 40.590231] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.594948] [ 40.596545] Freed by task 3269: [ 40.599790] save_stack+0x43/0xd0 [ 40.603206] kasan_slab_free+0x71/0xc0 [ 40.607057] kfree+0xca/0x250 [ 40.610127] kzfree+0x28/0x30 [ 40.613199] crypto_destroy_tfm+0x140/0x2e0 [ 40.617487] crypto_put_default_null_skcipher+0x35/0x60 [ 40.622815] aead_sock_destruct+0x13c/0x220 [ 40.627101] __sk_destruct+0xfd/0x910 [ 40.630866] sk_destruct+0x47/0x80 [ 40.634393] __sk_free+0x57/0x230 [ 40.637810] sk_free+0x2a/0x40 [ 40.640965] af_alg_release+0x5d/0x70 [ 40.644729] sock_release+0x8d/0x1e0 [ 40.648409] sock_close+0x16/0x20 [ 40.651830] __fput+0x333/0x7f0 [ 40.655075] ____fput+0x15/0x20 [ 40.658327] task_work_run+0x199/0x270 [ 40.662180] do_exit+0x9bb/0x1ae0 executing program [ 40.665599] do_group_exit+0x149/0x400 [ 40.669450] SyS_exit_group+0x1d/0x20 [ 40.673218] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.677935] [ 40.679530] The buggy address belongs to the object at ffff8801cbc560c0 [ 40.679530] which belongs to the cache kmalloc-128 of size 128 [ 40.692154] The buggy address is located 28 bytes inside of [ 40.692154] 128-byte region [ffff8801cbc560c0, ffff8801cbc56140) [ 40.703906] The buggy address belongs to the page: [ 40.708800] page:000000005603fc76 count:1 mapcount:0 mapping:00000000c911b285 index:0x0 [ 40.716907] flags: 0x2fffc0000000100(slab) [ 40.721107] raw: 02fffc0000000100 ffff8801cbc56000 0000000000000000 0000000100000015 [ 40.728952] raw: ffffea00072f2460 ffffea00072eb520 ffff8801db000640 0000000000000000 [ 40.736796] page dumped because: kasan: bad access detected [ 40.742468] [ 40.744059] Memory state around the buggy address: [ 40.748955] ffff8801cbc55f80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc [ 40.756282] ffff8801cbc56000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 40.763621] >ffff8801cbc56080: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.770944] ^ [ 40.777141] ffff8801cbc56100: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 40.784470] ffff8801cbc56180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.791790] ================================================================== [ 40.799110] Disabling lock debugging due to kernel taint [ 40.804610] Kernel panic - not syncing: panic_on_warn set ... [ 40.804610] [ 40.811937] CPU: 1 PID: 3441 Comm: syzkaller204863 Tainted: G B 4.15.0-rc1+ #205 [ 40.820650] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.829968] Call Trace: [ 40.832524] dump_stack+0x194/0x257 [ 40.836120] ? arch_local_irq_restore+0x53/0x53 [ 40.840758] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.845477] ? vsnprintf+0x1ed/0x1900 [ 40.849243] ? aead_recvmsg+0x1740/0x1bc0 [ 40.853357] panic+0x1e4/0x41c [ 40.856514] ? refcount_error_report+0x214/0x214 [ 40.861236] ? add_taint+0x1c/0x50 [ 40.864744] ? add_taint+0x1c/0x50 [ 40.868250] ? aead_recvmsg+0x1758/0x1bc0 [ 40.872361] kasan_end_report+0x50/0x50 [ 40.876297] kasan_report+0x144/0x340 [ 40.880063] __asan_report_load4_noabort+0x14/0x20 [ 40.884955] aead_recvmsg+0x1758/0x1bc0 [ 40.888902] ? aead_release+0x50/0x50 [ 40.892669] ? selinux_socket_recvmsg+0x36/0x40 [ 40.897303] ? security_socket_recvmsg+0x91/0xc0 [ 40.902023] ? aead_release+0x50/0x50 [ 40.905789] sock_recvmsg+0xc9/0x110 [ 40.909469] ? __sock_recv_wifi_status+0x210/0x210 [ 40.914366] ___sys_recvmsg+0x29b/0x630 [ 40.918308] ? ___sys_sendmsg+0x8a0/0x8a0 [ 40.922438] ? lock_downgrade+0x980/0x980 [ 40.926557] ? __fdget+0x18/0x20 [ 40.929889] __sys_recvmsg+0xe2/0x210 [ 40.933651] ? __sys_recvmsg+0xe2/0x210 [ 40.937594] ? SyS_sendmmsg+0x60/0x60 [ 40.941372] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.946378] ? lockdep_sys_exit+0x47/0xf0 [ 40.950515] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 40.955500] SyS_recvmsg+0x2d/0x50 [ 40.959015] entry_SYSCALL_64_fastpath+0x1f/0x96 [ 40.963743] RIP: 0033:0x4478c9 [ 40.966897] RSP: 002b:00007ff033ac4d08 EFLAGS: 00000246 ORIG_RAX: 000000000000002f [ 40.974568] RAX: ffffffffffffffda RBX: 00007ff033ac5700 RCX: 00000000004478c9 [ 40.981802] RDX: 0000000000000003 RSI: 000000002094ffc8 RDI: 0000000000000006 [ 40.989042] RBP: 00007ffd88d5b4b0 R08: 00007ff033ac5700 R09: 00007ff033ac5700 [ 40.996280] R10: 00007ff033ac5700 R11: 0000000000000246 R12: 0000000000000000 [ 41.003519] R13: 00007ffd88d5b4af R14: 00007ff033ac59c0 R15: 0000000000000000 [ 41.010792] Dumping ftrace buffer: [ 41.014298] (ftrace buffer empty) [ 41.017974] Kernel Offset: disabled [ 41.021568] Rebooting in 86400 seconds..