[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 18.579391] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 23.392839] random: sshd: uninitialized urandom read (32 bytes read) [ 23.692742] random: sshd: uninitialized urandom read (32 bytes read) [ 24.496200] random: sshd: uninitialized urandom read (32 bytes read) [ 29.958712] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.61' (ECDSA) to the list of known hosts. [ 35.451488] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 35.628820] ================================================================== [ 35.636281] BUG: KASAN: slab-out-of-bounds in rmd320_final+0x201/0x240 [ 35.642928] Write of size 4 at addr ffff8801babaa0b0 by task syz-executor890/4483 [ 35.650519] [ 35.652128] CPU: 0 PID: 4483 Comm: syz-executor890 Not tainted 4.17.0+ #92 [ 35.659116] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.668450] Call Trace: [ 35.671019] dump_stack+0x1b9/0x294 [ 35.674629] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.679797] ? printk+0x9e/0xba [ 35.683056] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 35.687793] ? kasan_check_write+0x14/0x20 [ 35.692011] print_address_description+0x6c/0x20b [ 35.696834] ? rmd320_final+0x201/0x240 [ 35.700790] kasan_report.cold.7+0x242/0x2fe [ 35.705176] __asan_report_store4_noabort+0x17/0x20 [ 35.710180] rmd320_final+0x201/0x240 [ 35.714055] ? rmd320_update+0x170/0x170 [ 35.718103] ? rmd320_update+0x13b/0x170 [ 35.722151] ? kasan_unpoison_shadow+0x35/0x50 [ 35.726713] crypto_shash_final+0x104/0x260 [ 35.731032] ? rmd320_update+0x170/0x170 [ 35.735077] __keyctl_dh_compute+0x1184/0x1bc0 [ 35.739645] ? copy_overflow+0x30/0x30 [ 35.743522] ? __kasan_slab_free+0x11a/0x170 [ 35.747911] ? kfree+0xd9/0x260 [ 35.751176] ? __x64_sys_add_key+0x2b7/0x4e0 [ 35.755565] ? do_syscall_64+0x1b1/0x800 [ 35.759603] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.764946] ? find_held_lock+0x36/0x1c0 [ 35.768991] ? lock_downgrade+0x8e0/0x8e0 [ 35.773119] ? check_same_owner+0x320/0x320 [ 35.777426] ? debug_check_no_obj_freed+0x2ff/0x584 [ 35.782427] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.787939] ? _copy_from_user+0xdf/0x150 [ 35.792080] keyctl_dh_compute+0xb9/0x100 [ 35.796206] ? __keyctl_dh_compute+0x1bc0/0x1bc0 [ 35.800942] ? __x64_sys_add_key+0x2bc/0x4e0 [ 35.805336] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 35.810507] __x64_sys_keyctl+0x12a/0x3b0 [ 35.814637] do_syscall_64+0x1b1/0x800 [ 35.818505] ? syscall_return_slowpath+0x5c0/0x5c0 [ 35.823414] ? syscall_return_slowpath+0x30f/0x5c0 [ 35.828325] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 35.833672] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.838497] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.843665] RIP: 0033:0x440009 [ 35.846828] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 6b 45 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 35.866174] RSP: 002b:00007fff72f71088 EFLAGS: 00000217 ORIG_RAX: 00000000000000fa [ 35.873861] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440009 [ 35.881107] RDX: 0000000020000780 RSI: 0000000020000740 RDI: 0000000000000017 [ 35.888356] RBP: 00000000006ca018 R08: 0000000020000880 R09: 00000000004002c8 [ 35.895605] R10: 000000000000002d R11: 0000000000000217 R12: 0000000000401930 [ 35.902851] R13: 00000000004019c0 R14: 0000000000000000 R15: 0000000000000000 [ 35.910105] [ 35.911712] Allocated by task 4483: [ 35.915340] save_stack+0x43/0xd0 [ 35.918771] kasan_kmalloc+0xc4/0xe0 [ 35.922460] __kmalloc+0x14e/0x760 [ 35.925987] __keyctl_dh_compute+0xfe9/0x1bc0 [ 35.930462] keyctl_dh_compute+0xb9/0x100 [ 35.934589] __x64_sys_keyctl+0x12a/0x3b0 [ 35.938714] do_syscall_64+0x1b1/0x800 [ 35.942580] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.947740] [ 35.949342] Freed by task 0: [ 35.952330] (stack is not available) [ 35.956016] [ 35.957620] The buggy address belongs to the object at ffff8801babaa080 [ 35.957620] which belongs to the cache kmalloc-64 of size 64 [ 35.970079] The buggy address is located 48 bytes inside of [ 35.970079] 64-byte region [ffff8801babaa080, ffff8801babaa0c0) [ 35.981751] The buggy address belongs to the page: [ 35.986657] page:ffffea0006eaea80 count:1 mapcount:0 mapping:ffff8801da800340 index:0x0 [ 35.994786] flags: 0x2fffc0000000100(slab) [ 35.999001] raw: 02fffc0000000100 ffffea00073deac8 ffff8801da801348 ffff8801da800340 [ 36.006864] raw: 0000000000000000 ffff8801babaa000 0000000100000020 0000000000000000 [ 36.014719] page dumped because: kasan: bad access detected [ 36.020399] [ 36.022000] Memory state around the buggy address: [ 36.026905] ffff8801baba9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.034241] ffff8801babaa000: 00 00 00 00 00 00 03 fc fc fc fc fc fc fc fc fc [ 36.041584] >ffff8801babaa080: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc [ 36.048925] ^ [ 36.053827] ffff8801babaa100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.061163] ffff8801babaa180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.068504] ================================================================== [ 36.075844] Disabling lock debugging due to kernel taint [ 36.081345] Kernel panic - not syncing: panic_on_warn set ... [ 36.081345] [ 36.088695] CPU: 0 PID: 4483 Comm: syz-executor890 Tainted: G B 4.17.0+ #92 [ 36.097080] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.106409] Call Trace: [ 36.108980] dump_stack+0x1b9/0x294 [ 36.112586] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.117767] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.122501] ? rmd320_final+0x170/0x240 [ 36.126455] panic+0x22f/0x4de [ 36.129631] ? add_taint.cold.5+0x16/0x16 [ 36.133756] ? do_raw_spin_unlock+0x9e/0x2e0 [ 36.138149] ? do_raw_spin_unlock+0x9e/0x2e0 [ 36.142536] ? rmd320_final+0x201/0x240 [ 36.146487] kasan_end_report+0x47/0x4f [ 36.150440] kasan_report.cold.7+0x76/0x2fe [ 36.154738] __asan_report_store4_noabort+0x17/0x20 [ 36.159732] rmd320_final+0x201/0x240 [ 36.163509] ? rmd320_update+0x170/0x170 [ 36.167552] ? rmd320_update+0x13b/0x170 [ 36.171590] ? kasan_unpoison_shadow+0x35/0x50 [ 36.176150] crypto_shash_final+0x104/0x260 [ 36.180449] ? rmd320_update+0x170/0x170 [ 36.184495] __keyctl_dh_compute+0x1184/0x1bc0 [ 36.189062] ? copy_overflow+0x30/0x30 [ 36.192924] ? __kasan_slab_free+0x11a/0x170 [ 36.197304] ? kfree+0xd9/0x260 [ 36.200558] ? __x64_sys_add_key+0x2b7/0x4e0 [ 36.204940] ? do_syscall_64+0x1b1/0x800 [ 36.208978] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.214320] ? find_held_lock+0x36/0x1c0 [ 36.218362] ? lock_downgrade+0x8e0/0x8e0 [ 36.222486] ? check_same_owner+0x320/0x320 [ 36.226786] ? debug_check_no_obj_freed+0x2ff/0x584 [ 36.231781] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.237295] ? _copy_from_user+0xdf/0x150 [ 36.241422] keyctl_dh_compute+0xb9/0x100 [ 36.245557] ? __keyctl_dh_compute+0x1bc0/0x1bc0 [ 36.250291] ? __x64_sys_add_key+0x2bc/0x4e0 [ 36.254690] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 36.259855] __x64_sys_keyctl+0x12a/0x3b0 [ 36.263980] do_syscall_64+0x1b1/0x800 [ 36.267843] ? syscall_return_slowpath+0x5c0/0x5c0 [ 36.272748] ? syscall_return_slowpath+0x30f/0x5c0 [ 36.277656] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 36.282998] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.287821] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.292987] RIP: 0033:0x440009 [ 36.296151] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 6b 45 00 00 c3 66 2e 0f 1f 84 00 00 00 00 [ 36.315268] RSP: 002b:00007fff72f71088 EFLAGS: 00000217 ORIG_RAX: 00000000000000fa [ 36.323038] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440009 [ 36.330283] RDX: 0000000020000780 RSI: 0000000020000740 RDI: 0000000000000017 [ 36.337527] RBP: 00000000006ca018 R08: 0000000020000880 R09: 00000000004002c8 [ 36.344771] R10: 000000000000002d R11: 0000000000000217 R12: 0000000000401930 [ 36.352015] R13: 00000000004019c0 R14: 0000000000000000 R15: 0000000000000000 [ 36.359725] Dumping ftrace buffer: [ 36.363241] (ftrace buffer empty) [ 36.366937] Kernel Offset: disabled [ 36.370542] Rebooting in 86400 seconds..