[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 19.144111] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 23.797097] random: sshd: uninitialized urandom read (32 bytes read) [ 24.016102] random: sshd: uninitialized urandom read (32 bytes read) [ 24.825431] random: sshd: uninitialized urandom read (32 bytes read) [ 35.250845] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.10' (ECDSA) to the list of known hosts. [ 40.825615] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 40.945815] ================================================================== [ 40.953323] BUG: KASAN: slab-out-of-bounds in sha512_final+0x34a/0x3e0 [ 40.960009] Write of size 8 at addr ffff8801d973a8c0 by task syz-executor526/4577 [ 40.967612] [ 40.969242] CPU: 1 PID: 4577 Comm: syz-executor526 Not tainted 4.18.0-rc2+ #116 [ 40.976680] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.986014] Call Trace: [ 40.988598] dump_stack+0x1c9/0x2b4 [ 40.992230] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.997504] ? printk+0xa7/0xcf [ 41.000779] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.005526] ? sha512_final+0x34a/0x3e0 [ 41.009496] print_address_description+0x6c/0x20b [ 41.014325] ? sha512_final+0x34a/0x3e0 [ 41.018290] kasan_report.cold.7+0x242/0x2fe [ 41.022707] __asan_report_store8_noabort+0x17/0x20 [ 41.027733] sha512_final+0x34a/0x3e0 [ 41.031527] crypto_shash_final+0x104/0x260 [ 41.035860] ? sha512_generic_block_fn+0x70/0x70 [ 41.040626] __keyctl_dh_compute+0x1198/0x1be0 [ 41.045220] ? copy_overflow+0x30/0x30 [ 41.049101] ? save_stack+0x43/0xd0 [ 41.052719] ? __kasan_slab_free+0x11a/0x170 [ 41.057113] ? kasan_slab_free+0xe/0x10 [ 41.061102] ? kfree+0xd9/0x260 [ 41.064390] ? __x64_sys_add_key+0x2b7/0x4e0 [ 41.068977] ? do_syscall_64+0x1b9/0x820 [ 41.073052] ? lock_release+0xa30/0xa30 [ 41.077022] ? check_same_owner+0x340/0x340 [ 41.081353] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.086882] ? _copy_from_user+0xdf/0x150 [ 41.091023] keyctl_dh_compute+0xc5/0x11f [ 41.095180] ? __keyctl_dh_compute+0x1be0/0x1be0 [ 41.099959] ? __x64_sys_add_key+0x2bc/0x4e0 [ 41.104393] __x64_sys_keyctl+0x12a/0x3b0 [ 41.108646] do_syscall_64+0x1b9/0x820 [ 41.112536] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.117455] ? syscall_return_slowpath+0x31d/0x5e0 [ 41.122392] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 41.127753] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.132585] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.137757] RIP: 0033:0x43fff9 [ 41.140948] 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 [ 41.160127] RSP: 002b:00007ffcf2a3d658 EFLAGS: 00000217 ORIG_RAX: 00000000000000fa [ 41.167821] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fff9 [ 41.175076] RDX: 0000000020a53ffb RSI: 0000000020000100 RDI: 0000000000000017 [ 41.182329] RBP: 00000000006ca018 R08: 0000000020000140 R09: 00000000004002c8 [ 41.189594] R10: 0000000000000018 R11: 0000000000000217 R12: 0000000000401920 [ 41.196861] R13: 00000000004019b0 R14: 0000000000000000 R15: 0000000000000000 [ 41.204214] [ 41.205828] Allocated by task 4577: [ 41.209446] save_stack+0x43/0xd0 [ 41.212893] kasan_kmalloc+0xc4/0xe0 [ 41.216589] __kmalloc+0x14e/0x760 [ 41.220113] __keyctl_dh_compute+0x1000/0x1be0 [ 41.224683] keyctl_dh_compute+0xc5/0x11f [ 41.228832] __x64_sys_keyctl+0x12a/0x3b0 [ 41.232977] do_syscall_64+0x1b9/0x820 [ 41.236855] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.242025] [ 41.243636] Freed by task 1: [ 41.246663] save_stack+0x43/0xd0 [ 41.250119] __kasan_slab_free+0x11a/0x170 [ 41.254356] kasan_slab_free+0xe/0x10 [ 41.258167] kfree+0xd9/0x260 [ 41.261281] krealloc+0x7a/0xb0 [ 41.264566] add_sysfs_param.isra.7+0xcc/0x980 [ 41.269149] param_sysfs_init+0x393/0x486 [ 41.273298] do_one_initcall+0x127/0x913 [ 41.277369] kernel_init_freeable+0x49b/0x58e [ 41.281946] kernel_init+0x11/0x1b3 [ 41.285614] ret_from_fork+0x3a/0x50 [ 41.289316] [ 41.290940] The buggy address belongs to the object at ffff8801d973a880 [ 41.290940] which belongs to the cache kmalloc-64 of size 64 [ 41.303598] The buggy address is located 0 bytes to the right of [ 41.303598] 64-byte region [ffff8801d973a880, ffff8801d973a8c0) [ 41.315736] The buggy address belongs to the page: [ 41.320675] page:ffffea000765ce80 count:1 mapcount:0 mapping:ffff8801da800340 index:0xffff8801d973af80 [ 41.330140] flags: 0x2fffc0000000100(slab) [ 41.334392] raw: 02fffc0000000100 ffffea00073c4ac8 ffff8801da801338 ffff8801da800340 [ 41.342282] raw: ffff8801d973af80 ffff8801d973a000 000000010000001a 0000000000000000 [ 41.350171] page dumped because: kasan: bad access detected [ 41.355888] [ 41.357516] Memory state around the buggy address: [ 41.362439] ffff8801d973a780: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.369805] ffff8801d973a800: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.377208] >ffff8801d973a880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 41.384568] ^ [ 41.390029] ffff8801d973a900: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.397428] ffff8801d973a980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.404787] ================================================================== [ 41.412155] Disabling lock debugging due to kernel taint [ 41.417721] Kernel panic - not syncing: panic_on_warn set ... [ 41.417721] [ 41.425099] CPU: 1 PID: 4577 Comm: syz-executor526 Tainted: G B 4.18.0-rc2+ #116 [ 41.433929] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.443301] Call Trace: [ 41.445901] dump_stack+0x1c9/0x2b4 [ 41.449537] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.455084] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.459876] panic+0x238/0x4e7 [ 41.463070] ? add_taint.cold.5+0x16/0x16 [ 41.467221] ? do_raw_spin_unlock+0xa7/0x2f0 [ 41.471639] ? do_raw_spin_unlock+0xa7/0x2f0 [ 41.476037] ? sha512_final+0x34a/0x3e0 [ 41.480000] kasan_end_report+0x47/0x4f [ 41.483962] kasan_report.cold.7+0x76/0x2fe [ 41.488367] __asan_report_store8_noabort+0x17/0x20 [ 41.493377] sha512_final+0x34a/0x3e0 [ 41.497176] crypto_shash_final+0x104/0x260 [ 41.501485] ? sha512_generic_block_fn+0x70/0x70 [ 41.506231] __keyctl_dh_compute+0x1198/0x1be0 [ 41.510809] ? copy_overflow+0x30/0x30 [ 41.514696] ? save_stack+0x43/0xd0 [ 41.518322] ? __kasan_slab_free+0x11a/0x170 [ 41.522729] ? kasan_slab_free+0xe/0x10 [ 41.526702] ? kfree+0xd9/0x260 [ 41.529976] ? __x64_sys_add_key+0x2b7/0x4e0 [ 41.534375] ? do_syscall_64+0x1b9/0x820 [ 41.538432] ? lock_release+0xa30/0xa30 [ 41.542395] ? check_same_owner+0x340/0x340 [ 41.546718] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.552254] ? _copy_from_user+0xdf/0x150 [ 41.556390] keyctl_dh_compute+0xc5/0x11f [ 41.560528] ? __keyctl_dh_compute+0x1be0/0x1be0 [ 41.565276] ? __x64_sys_add_key+0x2bc/0x4e0 [ 41.569700] __x64_sys_keyctl+0x12a/0x3b0 [ 41.573860] do_syscall_64+0x1b9/0x820 [ 41.577742] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.582664] ? syscall_return_slowpath+0x31d/0x5e0 [ 41.587590] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 41.592948] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.597787] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.602968] RIP: 0033:0x43fff9 [ 41.606168] 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 [ 41.625355] RSP: 002b:00007ffcf2a3d658 EFLAGS: 00000217 ORIG_RAX: 00000000000000fa [ 41.633066] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fff9 [ 41.640333] RDX: 0000000020a53ffb RSI: 0000000020000100 RDI: 0000000000000017 [ 41.647595] RBP: 00000000006ca018 R08: 0000000020000140 R09: 00000000004002c8 [ 41.654859] R10: 0000000000000018 R11: 0000000000000217 R12: 0000000000401920 [ 41.662171] R13: 00000000004019b0 R14: 0000000000000000 R15: 0000000000000000 [ 41.670054] Dumping ftrace buffer: [ 41.673597] (ftrace buffer empty) [ 41.677297] Kernel Offset: disabled [ 41.680913] Rebooting in 86400 seconds..