[....] Starting OpenBSD Secure Shell server: sshd[ 22.857882] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 23.450510] random: sshd: uninitialized urandom read (32 bytes read) [ 23.693788] sshd (4576) used greatest stack depth: 17032 bytes left [ 23.724317] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 24.652149] random: sshd: uninitialized urandom read (32 bytes read) [ 24.855469] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.31' (ECDSA) to the list of known hosts. [ 30.370733] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 30.495695] FAULT_INJECTION: forcing a failure. [ 30.495695] name failslab, interval 1, probability 0, space 0, times 1 [ 30.507168] CPU: 1 PID: 4592 Comm: syz-executor199 Not tainted 4.18.0-rc3+ #2 [ 30.514444] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.523813] Call Trace: [ 30.526427] dump_stack+0x1c9/0x2b4 [ 30.530079] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.535272] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.540820] ? __do_page_fault+0x449/0xe50 [ 30.545069] should_fail.cold.4+0xa/0x1a [ 30.549133] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 30.554251] ? graph_lock+0x170/0x170 [ 30.558046] ? graph_lock+0x170/0x170 [ 30.561850] ? graph_lock+0x170/0x170 [ 30.565641] ? vmalloc_sync_all+0x30/0x30 [ 30.569776] ? sk_busy_loop_end+0x1c0/0x1c0 [ 30.574082] ? trace_hardirqs_on+0x10/0x10 [ 30.578327] ? find_held_lock+0x36/0x1c0 [ 30.582384] ? __lock_is_held+0xb5/0x140 [ 30.586449] ? check_same_owner+0x340/0x340 [ 30.591039] ? check_same_owner+0x340/0x340 [ 30.595385] ? rcu_note_context_switch+0x730/0x730 [ 30.600342] __should_failslab+0x124/0x180 [ 30.604578] should_failslab+0x9/0x14 [ 30.608371] __kmalloc+0x2c8/0x760 [ 30.611922] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 30.616945] ? _copy_from_iter+0x39d/0x1090 [ 30.621291] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 30.626354] ? tls_push_record+0x10d/0x1400 [ 30.630672] ? __check_object_size+0x9d/0x5f2 [ 30.635190] tls_push_record+0x10d/0x1400 [ 30.639342] ? _copy_from_iter_nocache+0x1050/0x1050 [ 30.644465] ? __local_bh_enable_ip+0x161/0x230 [ 30.649147] tls_sw_sendmsg+0x9e6/0x12c0 [ 30.653222] ? lock_release+0xa30/0xa30 [ 30.657213] ? tls_sw_push_pending_record+0x30/0x30 [ 30.662228] ? lock_downgrade+0x8f0/0x8f0 [ 30.666364] ? __sanitizer_cov_trace_pc+0x47/0x50 [ 30.671224] ? lock_release+0xa30/0xa30 [ 30.675212] ? __check_object_size+0x9d/0x5f2 [ 30.679723] inet_sendmsg+0x1a1/0x690 [ 30.683562] ? ipip_gro_receive+0x100/0x100 [ 30.687879] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.693419] ? security_socket_sendmsg+0x94/0xc0 [ 30.698164] ? ipip_gro_receive+0x100/0x100 [ 30.702491] sock_sendmsg+0xd5/0x120 [ 30.706218] __sys_sendto+0x3d7/0x670 [ 30.710036] ? __ia32_sys_getpeername+0xb0/0xb0 [ 30.714704] ? lock_downgrade+0x8f0/0x8f0 [ 30.718856] ? __lock_is_held+0xb5/0x140 [ 30.722914] ? __sb_end_write+0xac/0xe0 [ 30.726885] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.732427] ? ksys_write+0x1ae/0x260 [ 30.736224] ? __ia32_sys_read+0xb0/0xb0 [ 30.740309] ? syscall_slow_exit_work+0x500/0x500 [ 30.745177] __x64_sys_sendto+0xe1/0x1a0 [ 30.749244] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.754263] do_syscall_64+0x1b9/0x820 [ 30.758164] ? syscall_slow_exit_work+0x500/0x500 [ 30.762997] ? syscall_return_slowpath+0x5e0/0x5e0 [ 30.767927] ? syscall_return_slowpath+0x31d/0x5e0 [ 30.772870] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 30.778222] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.783070] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.788248] RIP: 0033:0x440699 [ 30.791416] 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 5b 14 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 30.810623] RSP: 002b:00007ffebe0d0a38 EFLAGS: 00000216 ORIG_RAX: 000000000000002c [ 30.818338] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440699 [ 30.825637] RDX: 00000000fffffdef RSI: 00000000200005c0 RDI: 0000000000000004 [ 30.832926] RBP: 00000000006cb018 R08: 0000000020000000 R09: 000000000000001c [ 30.840209] R10: 0000000000000040 R11: 0000000000000216 R12: 0000000000000005 [ 30.847490] R13: ffffffffffffffff R14: 0000000000000000 R15: 0000000000000000 [ 30.858405] ================================================================== [ 30.865959] BUG: KASAN: use-after-free in tls_push_record+0x1091/0x1400 [ 30.872753] Write of size 1 at addr ffff8801d8c60000 by task syz-executor199/4592 [ 30.880370] [ 30.882004] CPU: 1 PID: 4592 Comm: syz-executor199 Not tainted 4.18.0-rc3+ #2 [ 30.889487] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.898944] Call Trace: [ 30.901557] dump_stack+0x1c9/0x2b4 [ 30.905169] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.910377] ? printk+0xa7/0xcf [ 30.913661] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 30.918427] ? tls_push_record+0x1091/0x1400 [ 30.922841] print_address_description+0x6c/0x20b [ 30.927681] ? tls_push_record+0x1091/0x1400 [ 30.932128] kasan_report.cold.7+0x242/0x2fe [ 30.936563] __asan_report_store1_noabort+0x17/0x20 [ 30.941612] tls_push_record+0x1091/0x1400 [ 30.945840] ? lock_sock_nested+0x9f/0x120 [ 30.950065] tls_sw_push_pending_record+0x22/0x30 [ 30.954911] tls_sk_proto_close+0x74c/0xae0 [ 30.959223] ? lock_acquire+0x1e4/0x540 [ 30.963194] ? tcp_check_oom+0x530/0x530 [ 30.967240] ? tls_write_space+0x360/0x360 [ 30.971522] ? kasan_check_read+0x11/0x20 [ 30.975671] ? rcu_note_context_switch+0x730/0x730 [ 30.980636] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.986224] ? ipv6_sock_ac_close+0x356/0x490 [ 30.990782] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.996347] ? ipv6_sock_mc_close+0x162/0x1d0 [ 31.000871] ? ip_mc_drop_socket+0x20f/0x270 [ 31.005302] ? down_write+0x8f/0x130 [ 31.009053] inet_release+0x104/0x1f0 [ 31.012868] inet6_release+0x50/0x70 [ 31.016592] __sock_release+0xd7/0x260 [ 31.020481] ? __sock_release+0x260/0x260 [ 31.024635] sock_close+0x19/0x20 [ 31.028095] __fput+0x355/0x8b0 [ 31.031406] ? fput+0x1a0/0x1a0 [ 31.034694] ? check_same_owner+0x340/0x340 [ 31.039052] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.043557] ____fput+0x15/0x20 [ 31.046840] task_work_run+0x1ec/0x2a0 [ 31.050731] ? task_work_cancel+0x250/0x250 [ 31.055056] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.060599] ? switch_task_namespaces+0xa2/0xd0 [ 31.065295] do_exit+0x1b08/0x2750 [ 31.068857] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.073557] ? lock_downgrade+0x8f0/0x8f0 [ 31.077718] ? finish_task_switch+0x18a/0x890 [ 31.082240] ? kasan_check_read+0x11/0x20 [ 31.086413] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.090824] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.095415] ? compat_start_thread+0x80/0x80 [ 31.099841] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.104342] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.109352] ? kasan_check_write+0x14/0x20 [ 31.113578] ? finish_task_switch+0x2ca/0x890 [ 31.118065] ? preempt_notifier_register+0x200/0x200 [ 31.123193] ? lock_repin_lock+0x430/0x430 [ 31.127466] ? __sched_text_start+0x8/0x8 [ 31.131639] ? security_socket_sendmsg+0x94/0xc0 [ 31.136401] ? ipip_gro_receive+0x100/0x100 [ 31.140734] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.146295] ? sock_sendmsg+0x5a/0x120 [ 31.150201] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.155758] ? __sys_sendto+0x475/0x670 [ 31.159759] ? __ia32_sys_getpeername+0xb0/0xb0 [ 31.164456] ? lock_downgrade+0x8f0/0x8f0 [ 31.168624] ? schedule+0xfb/0x450 [ 31.172165] ? __schedule+0x1ed0/0x1ed0 [ 31.176142] ? __sb_end_write+0xac/0xe0 [ 31.180124] do_group_exit+0x177/0x440 [ 31.184038] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.189588] ? __ia32_sys_exit+0x50/0x50 [ 31.193636] ? syscall_slow_exit_work+0x500/0x500 [ 31.198468] ? do_syscall_64+0x9a/0x820 [ 31.202434] __x64_sys_exit_group+0x3e/0x50 [ 31.206753] do_syscall_64+0x1b9/0x820 [ 31.210629] ? syscall_slow_exit_work+0x500/0x500 [ 31.215456] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.220412] ? syscall_return_slowpath+0x31d/0x5e0 [ 31.225367] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 31.230769] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.235628] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.240804] RIP: 0033:0x43f358 [ 31.243975] Code: Bad RIP value. [ 31.247369] RSP: 002b:00007ffebe0d0a78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.255086] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f358 [ 31.262383] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.269671] RBP: 00000000004bf448 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.276949] R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000001 [ 31.284254] R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 [ 31.291589] [ 31.293327] The buggy address belongs to the page: [ 31.298290] page:ffffea0007631800 count:0 mapcount:-128 mapping:0000000000000000 index:0x0 [ 31.306728] flags: 0x2fffc0000000000() [ 31.310622] raw: 02fffc0000000000 ffffea0007657408 ffff88021fffac18 0000000000000000 [ 31.318509] raw: 0000000000000000 0000000000000003 00000000ffffff7f 0000000000000000 [ 31.326403] page dumped because: kasan: bad access detected [ 31.332102] [ 31.333708] Memory state around the buggy address: [ 31.338625] ffff8801d8c5ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.345997] ffff8801d8c5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.353380] >ffff8801d8c60000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.360782] ^ [ 31.364155] ffff8801d8c60080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.371527] ffff8801d8c60100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.378877] ================================================================== [ 31.386292] Disabling lock debugging due to kernel taint [ 31.391990] Kernel panic - not syncing: panic_on_warn set ... [ 31.391990] [ 31.399384] CPU: 1 PID: 4592 Comm: syz-executor199 Tainted: G B 4.18.0-rc3+ #2 [ 31.408055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.417423] Call Trace: [ 31.420021] dump_stack+0x1c9/0x2b4 [ 31.423647] ? dump_stack_print_info.cold.2+0x52/0x52 [ 31.428842] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 31.433593] panic+0x238/0x4e7 [ 31.436813] ? add_taint.cold.5+0x16/0x16 [ 31.440972] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.445396] ? tls_push_record+0x1091/0x1400 [ 31.449812] kasan_end_report+0x47/0x4f [ 31.453792] kasan_report.cold.7+0x76/0x2fe [ 31.458099] __asan_report_store1_noabort+0x17/0x20 [ 31.463143] tls_push_record+0x1091/0x1400 [ 31.467383] ? lock_sock_nested+0x9f/0x120 [ 31.471632] tls_sw_push_pending_record+0x22/0x30 [ 31.476466] tls_sk_proto_close+0x74c/0xae0 [ 31.480802] ? lock_acquire+0x1e4/0x540 [ 31.484777] ? tcp_check_oom+0x530/0x530 [ 31.488866] ? tls_write_space+0x360/0x360 [ 31.493482] ? kasan_check_read+0x11/0x20 [ 31.497652] ? rcu_note_context_switch+0x730/0x730 [ 31.502612] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.508150] ? ipv6_sock_ac_close+0x356/0x490 [ 31.512636] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 31.518183] ? ipv6_sock_mc_close+0x162/0x1d0 [ 31.522710] ? ip_mc_drop_socket+0x20f/0x270 [ 31.527116] ? down_write+0x8f/0x130 [ 31.530821] inet_release+0x104/0x1f0 [ 31.534611] inet6_release+0x50/0x70 [ 31.538330] __sock_release+0xd7/0x260 [ 31.542208] ? __sock_release+0x260/0x260 [ 31.546364] sock_close+0x19/0x20 [ 31.549822] __fput+0x355/0x8b0 [ 31.553091] ? fput+0x1a0/0x1a0 [ 31.556363] ? check_same_owner+0x340/0x340 [ 31.560699] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.565180] ____fput+0x15/0x20 [ 31.568458] task_work_run+0x1ec/0x2a0 [ 31.572333] ? task_work_cancel+0x250/0x250 [ 31.576641] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 31.582171] ? switch_task_namespaces+0xa2/0xd0 [ 31.586831] do_exit+0x1b08/0x2750 [ 31.590358] ? mm_update_next_owner+0x9a0/0x9a0 [ 31.595022] ? lock_downgrade+0x8f0/0x8f0 [ 31.599166] ? finish_task_switch+0x18a/0x890 [ 31.603948] ? kasan_check_read+0x11/0x20 [ 31.608107] ? do_raw_spin_unlock+0xa7/0x2f0 [ 31.612525] ? do_raw_spin_trylock+0x1c0/0x1c0 [ 31.617215] ? compat_start_thread+0x80/0x80 [ 31.621647] ? _raw_spin_unlock_irq+0x27/0x70 [ 31.626178] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 31.631258] ? kasan_check_write+0x14/0x20 [ 31.635509] ? finish_task_switch+0x2ca/0x890 [ 31.640013] ? preempt_notifier_register+0x200/0x200 [ 31.645122] ? lock_repin_lock+0x430/0x430 [ 31.649379] ? __sched_text_start+0x8/0x8 [ 31.653537] ? security_socket_sendmsg+0x94/0xc0 [ 31.658293] ? ipip_gro_receive+0x100/0x100 [ 31.662629] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.668181] ? sock_sendmsg+0x5a/0x120 [ 31.672074] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.677632] ? __sys_sendto+0x475/0x670 [ 31.681643] ? __ia32_sys_getpeername+0xb0/0xb0 [ 31.686323] ? lock_downgrade+0x8f0/0x8f0 [ 31.690475] ? schedule+0xfb/0x450 [ 31.694017] ? __schedule+0x1ed0/0x1ed0 [ 31.698024] ? __sb_end_write+0xac/0xe0 [ 31.702007] do_group_exit+0x177/0x440 [ 31.705902] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 31.711433] ? __ia32_sys_exit+0x50/0x50 [ 31.715478] ? syscall_slow_exit_work+0x500/0x500 [ 31.720321] ? do_syscall_64+0x9a/0x820 [ 31.724293] __x64_sys_exit_group+0x3e/0x50 [ 31.728599] do_syscall_64+0x1b9/0x820 [ 31.732478] ? syscall_slow_exit_work+0x500/0x500 [ 31.737318] ? syscall_return_slowpath+0x5e0/0x5e0 [ 31.742260] ? syscall_return_slowpath+0x31d/0x5e0 [ 31.747185] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 31.752543] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 31.757389] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 31.762590] RIP: 0033:0x43f358 [ 31.765785] Code: Bad RIP value. [ 31.769178] RSP: 002b:00007ffebe0d0a78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 31.776917] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f358 [ 31.784199] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 31.791489] RBP: 00000000004bf448 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 31.798933] R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000001 [ 31.806241] R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 [ 31.814193] Dumping ftrace buffer: [ 31.817760] (ftrace buffer empty) [ 31.821453] Kernel Offset: disabled [ 31.825094] Rebooting in 86400 seconds..