[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.000228] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 23.333506] random: sshd: uninitialized urandom read (32 bytes read) [ 23.700497] random: sshd: uninitialized urandom read (32 bytes read) [ 24.500462] random: sshd: uninitialized urandom read (32 bytes read) [ 24.660484] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.54' (ECDSA) to the list of known hosts. [ 30.090504] random: sshd: uninitialized urandom read (32 bytes read) 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 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 [ 30.601151] ================================================================== [ 30.608690] BUG: KASAN: use-after-free in crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 30.616483] Read of size 4 at addr ffff8801c0fc6003 by task syz-executor042/4573 [ 30.624009] [ 30.625648] CPU: 1 PID: 4573 Comm: syz-executor042 Not tainted 4.17.0+ #84 [ 30.632759] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.642112] Call Trace: [ 30.644701] dump_stack+0x1b9/0x294 executing program executing program executing program [ 30.648337] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.653524] ? printk+0x9e/0xba [ 30.657449] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.662212] ? kasan_check_write+0x14/0x20 [ 30.666450] print_address_description+0x6c/0x20b [ 30.671304] ? crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 30.676757] kasan_report.cold.7+0x242/0x2fe [ 30.681435] __asan_report_load4_noabort+0x14/0x20 [ 30.686361] crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 30.691648] ? crypto_morus640_encrypt_chunk+0xdb0/0xdb0 executing program executing program [ 30.697116] ? scatterwalk_copychunks+0x424/0x500 [ 30.702584] ? skcipher_walk_done+0x4bc/0xc70 [ 30.707259] crypto_morus640_process_crypt.isra.12+0x153/0x230 [ 30.713226] ? crypto_morus640_decrypt_chunk+0xd20/0xd20 [ 30.718684] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.724233] ? crypto_morus640_process_ad+0xa10/0xa10 [ 30.729435] ? crypto_morus640_update+0xc7/0xe0 [ 30.734139] crypto_morus640_crypt+0x42e/0x9f0 [ 30.738729] ? crypto_morus640_load+0x170/0x170 [ 30.743404] ? scatterwalk_ffwd+0x3b0/0x3b0 executing program executing program [ 30.747750] ? rcu_read_lock_sched_held+0x108/0x120 [ 30.752771] crypto_morus640_decrypt+0x23e/0x3d0 [ 30.757525] ? af_alg_make_sg+0x4d0/0x4d0 [ 30.761671] ? crypto_morus640_crypt+0x9f0/0x9f0 [ 30.766423] ? __sk_mem_schedule+0xe0/0xe0 [ 30.770662] ? memset+0x31/0x40 [ 30.773965] aead_recvmsg+0x13cc/0x1ba0 [ 30.777951] ? aead_release+0x50/0x50 [ 30.781749] ? move_addr_to_kernel.part.20+0x100/0x100 [ 30.787290] ? security_socket_recvmsg+0x9b/0xc0 [ 30.792074] ? aead_release+0x50/0x50 [ 30.795872] sock_recvmsg+0xd0/0x110 executing program executing program executing program executing program executing program [ 30.799592] ? __sock_recv_ts_and_drops+0x420/0x420 [ 30.804617] ___sys_recvmsg+0x2b6/0x680 [ 30.808598] ? ___sys_sendmsg+0x940/0x940 [ 30.812746] ? rcu_is_watching+0x85/0x140 [ 30.816900] ? __sched_text_start+0x8/0x8 [ 30.821061] ? fget_raw+0x20/0x20 [ 30.824528] ? lock_downgrade+0x8e0/0x8e0 [ 30.828680] ? kasan_check_read+0x11/0x20 [ 30.832831] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.838364] ? sockfd_lookup_light+0xc5/0x160 [ 30.842869] __sys_recvmsg+0x112/0x260 [ 30.846755] ? __ia32_sys_sendmmsg+0x100/0x100 executing program executing program executing program executing program [ 30.851333] ? task_work_run+0x227/0x290 [ 30.855404] ? __x64_sys_futex+0x477/0x680 [ 30.859993] ? exit_to_usermode_loop+0x87/0x360 [ 30.864677] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 30.869523] __x64_sys_recvmsg+0x78/0xb0 [ 30.873582] do_syscall_64+0x1b1/0x800 [ 30.877475] ? finish_task_switch+0x1ca/0x840 [ 30.881978] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.886938] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.891869] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 30.897240] ? trace_hardirqs_off_thunk+0x1a/0x1c executing program executing program executing program [ 30.902095] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.907281] RIP: 0033:0x445b19 [ 30.910456] Code: e8 5c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db 51 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 30.929803] RSP: 002b:00007f0fc4fccda8 EFLAGS: 00000297 ORIG_RAX: 000000000000002f [ 30.937525] RAX: ffffffffffffffda RBX: 00000000006dac9c RCX: 0000000000445b19 [ 30.944799] RDX: 0000000000000000 RSI: 0000000020002840 RDI: 0000000000000011 [ 30.952065] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 30.959338] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac98 [ 30.966616] R13: 558bdd1ccff55d26 R14: f09319918a28f2b7 R15: 0000000000000001 [ 30.973892] [ 30.975508] The buggy address belongs to the page: [ 30.980440] page:ffffea000703f180 count:0 mapcount:0 mapping:0000000000000000 index:0x1 [ 30.988580] flags: 0x2fffc0000000000() [ 30.992478] raw: 02fffc0000000000 ffffea0007208788 ffffea0007026148 0000000000000000 [ 31.000371] raw: 0000000000000038 0000000000000000 0000000200000000 ffff8801d9a42c80 [ 31.008251] page dumped because: kasan: bad access detected [ 31.013957] [ 31.015579] Memory state around the buggy address: [ 31.020501] ffff8801c0fc5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.027887] ffff8801c0fc5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.035261] >ffff8801c0fc6000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.042618] ^ [ 31.045990] ffff8801c0fc6080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 executing program executing program executing program executing program executing program executing program [ 31.053353] ffff8801c0fc6100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.060797] ================================================================== [ 31.068152] Disabling lock debugging due to kernel taint [ 31.073713] Kernel panic - not syncing: panic_on_warn set ... [ 31.073713] [ 31.081087] CPU: 1 PID: 4573 Comm: syz-executor042 Tainted: G B 4.17.0+ #84 [ 31.089490] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.098843] Call Trace: [ 31.101432] dump_stack+0x1b9/0x294 [ 31.105057] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.110255] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.115033] ? crypto_morus640_decrypt_chunk+0xcf0/0xd20 [ 31.120482] panic+0x22f/0x4de [ 31.123668] ? add_taint.cold.5+0x16/0x16 [ 31.127816] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.132220] ? do_raw_spin_unlock+0x9e/0x2e0 [ 31.136621] ? crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 31.142099] kasan_end_report+0x47/0x4f [ 31.146104] kasan_report.cold.7+0x76/0x2fe [ 31.150429] __asan_report_load4_noabort+0x14/0x20 [ 31.155357] crypto_morus640_decrypt_chunk+0xcf8/0xd20 [ 31.160635] ? crypto_morus640_encrypt_chunk+0xdb0/0xdb0 [ 31.166088] ? scatterwalk_copychunks+0x424/0x500 [ 31.171021] ? skcipher_walk_done+0x4bc/0xc70 [ 31.175518] crypto_morus640_process_crypt.isra.12+0x153/0x230 [ 31.181493] ? crypto_morus640_decrypt_chunk+0xd20/0xd20 [ 31.186940] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.192563] ? crypto_morus640_process_ad+0xa10/0xa10 [ 31.197764] ? crypto_morus640_update+0xc7/0xe0 [ 31.202433] crypto_morus640_crypt+0x42e/0x9f0 [ 31.207013] ? crypto_morus640_load+0x170/0x170 [ 31.211681] ? scatterwalk_ffwd+0x3b0/0x3b0 [ 31.216018] ? rcu_read_lock_sched_held+0x108/0x120 [ 31.221034] crypto_morus640_decrypt+0x23e/0x3d0 [ 31.225798] ? af_alg_make_sg+0x4d0/0x4d0 [ 31.229946] ? crypto_morus640_crypt+0x9f0/0x9f0 [ 31.234710] ? __sk_mem_schedule+0xe0/0xe0 [ 31.238969] ? memset+0x31/0x40 [ 31.242309] aead_recvmsg+0x13cc/0x1ba0 [ 31.246287] ? aead_release+0x50/0x50 [ 31.250093] ? move_addr_to_kernel.part.20+0x100/0x100 [ 31.255371] ? security_socket_recvmsg+0x9b/0xc0 [ 31.260120] ? aead_release+0x50/0x50 [ 31.263920] sock_recvmsg+0xd0/0x110 [ 31.267634] ? __sock_recv_ts_and_drops+0x420/0x420 [ 31.272644] ___sys_recvmsg+0x2b6/0x680 [ 31.276619] ? ___sys_sendmsg+0x940/0x940 [ 31.280806] ? rcu_is_watching+0x85/0x140 [ 31.284955] ? __sched_text_start+0x8/0x8 [ 31.289105] ? fget_raw+0x20/0x20 [ 31.292580] ? lock_downgrade+0x8e0/0x8e0 [ 31.296730] ? kasan_check_read+0x11/0x20 [ 31.300878] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.306413] ? sockfd_lookup_light+0xc5/0x160 [ 31.310909] __sys_recvmsg+0x112/0x260 [ 31.314802] ? __ia32_sys_sendmmsg+0x100/0x100 [ 31.319387] ? task_work_run+0x227/0x290 [ 31.323455] ? __x64_sys_futex+0x477/0x680 [ 31.327689] ? exit_to_usermode_loop+0x87/0x360 [ 31.332367] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 31.337225] __x64_sys_recvmsg+0x78/0xb0 [ 31.341283] do_syscall_64+0x1b1/0x800 [ 31.345164] ? finish_task_switch+0x1ca/0x840 [ 31.349663] ? syscall_return_slowpath+0x5c0/0x5c0 [ 31.354593] ? syscall_return_slowpath+0x30f/0x5c0 [ 31.359521] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 31.364884] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.369729] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.374912] RIP: 0033:0x445b19 [ 31.378087] Code: e8 5c e7 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 db 51 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 31.397354] RSP: 002b:00007f0fc4fccda8 EFLAGS: 00000297 ORIG_RAX: 000000000000002f [ 31.405063] RAX: ffffffffffffffda RBX: 00000000006dac9c RCX: 0000000000445b19 [ 31.412340] RDX: 0000000000000000 RSI: 0000000020002840 RDI: 0000000000000011 [ 31.419693] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 31.426979] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac98 [ 31.434248] R13: 558bdd1ccff55d26 R14: f09319918a28f2b7 R15: 0000000000000001 [ 31.441976] Dumping ftrace buffer: [ 31.445506] (ftrace buffer empty) [ 31.449201] Kernel Offset: disabled [ 31.452812] Rebooting in 86400 seconds..