[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 20.111959] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 22.151535] random: sshd: uninitialized urandom read (32 bytes read) [ 22.423710] random: sshd: uninitialized urandom read (32 bytes read) [ 23.262794] random: sshd: uninitialized urandom read (32 bytes read) [ 23.430383] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.45' (ECDSA) to the list of known hosts. [ 29.003402] random: sshd: uninitialized urandom read (32 bytes read) executing program [ 29.113278] FAULT_INJECTION: forcing a failure. [ 29.113278] name failslab, interval 1, probability 0, space 0, times 1 [ 29.124724] CPU: 1 PID: 4521 Comm: syz-executor416 Not tainted 4.17.0+ #101 [ 29.131816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.141164] Call Trace: [ 29.143760] dump_stack+0x1b9/0x294 [ 29.147384] ? dump_stack_print_info.cold.2+0x52/0x52 [ 29.152590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.158321] ? __do_page_fault+0x441/0xe40 [ 29.162555] should_fail.cold.4+0xa/0x1a [ 29.166612] ? fault_create_debugfs_attr+0x1f0/0x1f0 [ 29.171724] ? tcp_push+0x8a0/0x8a0 [ 29.175350] ? graph_lock+0x170/0x170 [ 29.179139] ? graph_lock+0x170/0x170 [ 29.182925] ? graph_lock+0x170/0x170 [ 29.186711] ? vmalloc_sync_all+0x30/0x30 [ 29.190845] ? sk_busy_loop_end+0x1b0/0x1b0 [ 29.195157] ? debug_check_no_locks_freed+0x310/0x310 [ 29.200349] ? find_held_lock+0x36/0x1c0 [ 29.204413] ? __lock_is_held+0xb5/0x140 [ 29.208469] ? check_same_owner+0x320/0x320 [ 29.212779] ? check_same_owner+0x320/0x320 [ 29.217113] ? rcu_note_context_switch+0x710/0x710 [ 29.222060] __should_failslab+0x124/0x180 [ 29.226289] should_failslab+0x9/0x14 [ 29.230092] __kmalloc+0x2c8/0x760 [ 29.233619] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 29.238619] ? _copy_from_iter+0x395/0x1080 [ 29.242927] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 29.247928] ? tls_push_record+0x637/0x13e0 [ 29.252236] tls_push_record+0x637/0x13e0 [ 29.256379] tls_sw_sendmsg+0x9de/0x12b0 [ 29.260444] ? lock_release+0xa10/0xa10 [ 29.264422] ? tls_sw_push_pending_record+0x30/0x30 [ 29.269443] ? lock_downgrade+0x8e0/0x8e0 [ 29.273584] ? __sanitizer_cov_trace_cmp1+0x17/0x20 [ 29.278592] ? lock_release+0xa10/0xa10 [ 29.282563] ? __check_object_size+0x95/0x5d9 [ 29.287056] inet_sendmsg+0x19f/0x690 [ 29.290854] ? __might_sleep+0x95/0x190 [ 29.294836] ? ipip_gro_receive+0x100/0x100 [ 29.299152] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 29.304699] ? security_socket_sendmsg+0x94/0xc0 [ 29.309463] ? ipip_gro_receive+0x100/0x100 [ 29.313785] sock_sendmsg+0xd5/0x120 [ 29.317502] __sys_sendto+0x3d7/0x670 [ 29.321301] ? __ia32_sys_getpeername+0xb0/0xb0 [ 29.326001] ? lock_downgrade+0x8e0/0x8e0 [ 29.331133] ? __lock_is_held+0xb5/0x140 [ 29.335199] ? __sb_end_write+0xac/0xe0 [ 29.339174] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.344713] ? ksys_write+0x1a6/0x250 [ 29.348512] ? __ia32_sys_read+0xb0/0xb0 [ 29.352577] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 29.357417] __x64_sys_sendto+0xe1/0x1a0 [ 29.361485] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.366500] do_syscall_64+0x1b1/0x800 [ 29.370394] ? syscall_return_slowpath+0x5c0/0x5c0 [ 29.375324] ? syscall_return_slowpath+0x30f/0x5c0 [ 29.380250] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 29.385609] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.390467] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 29.395655] RIP: 0033:0x440659 [ 29.398828] 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 [ 29.418078] RSP: 002b:00007ffd740200b8 EFLAGS: 00000212 ORIG_RAX: 000000000000002c [ 29.425793] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440659 [ 29.433064] RDX: 00000000fffffdef RSI: 00000000200005c0 RDI: 0000000000000003 [ 29.440330] RBP: 00000000006cb018 R08: 0000000020000000 R09: 000000000000001c [ 29.447590] R10: 0000000000000040 R11: 0000000000000212 R12: 0000000000000004 [ 29.454856] R13: ffffffffffffffff R14: 0000000000000000 R15: 0000000000000000 [ 29.463603] ================================================================== [ 29.471195] BUG: KASAN: use-after-free in tls_push_record+0x1023/0x13e0 [ 29.477941] Write of size 1 at addr ffff8801b1ae0000 by task syz-executor416/4521 [ 29.485643] [ 29.487268] CPU: 1 PID: 4521 Comm: syz-executor416 Not tainted 4.17.0+ #101 [ 29.494367] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.503714] Call Trace: [ 29.506304] dump_stack+0x1b9/0x294 [ 29.509937] ? dump_stack_print_info.cold.2+0x52/0x52 [ 29.515135] ? printk+0x9e/0xba [ 29.518406] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 29.523161] ? kasan_check_write+0x14/0x20 [ 29.527398] print_address_description+0x6c/0x20b [ 29.532232] ? tls_push_record+0x1023/0x13e0 [ 29.536720] kasan_report.cold.7+0x242/0x2fe [ 29.541123] __asan_report_store1_noabort+0x17/0x20 [ 29.546321] tls_push_record+0x1023/0x13e0 [ 29.550570] ? __local_bh_enable_ip+0x161/0x230 [ 29.555239] tls_sw_push_pending_record+0x22/0x30 [ 29.560102] tls_push_pending_closed_record+0x10c/0x150 [ 29.565464] ? lock_sock_nested+0xe7/0x120 [ 29.569698] tls_sk_proto_close+0x8f2/0xad0 [ 29.574035] ? lock_acquire+0x1dc/0x520 [ 29.578030] ? tcp_check_oom+0x520/0x520 [ 29.582107] ? tls_write_space+0x340/0x340 [ 29.586333] ? check_same_owner+0x320/0x320 [ 29.590655] ? kasan_check_read+0x11/0x20 [ 29.594805] ? rcu_note_context_switch+0x710/0x710 [ 29.599736] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.605266] ? ipv6_sock_ac_close+0x34e/0x480 [ 29.609752] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 29.615281] ? ipv6_sock_mc_close+0x161/0x1c0 [ 29.619759] ? ip_mc_drop_socket+0x20f/0x270 [ 29.624169] ? down_write+0x87/0x120 [ 29.627883] inet_release+0x104/0x1f0 [ 29.631683] inet6_release+0x50/0x70 [ 29.635391] __sock_release+0xd7/0x260 [ 29.639263] ? __sock_release+0x260/0x260 [ 29.643397] sock_close+0x19/0x20 [ 29.646834] __fput+0x353/0x890 [ 29.650116] ? fput+0x1a0/0x1a0 [ 29.653393] ? check_same_owner+0x320/0x320 [ 29.657905] ? _raw_spin_unlock_irq+0x27/0x70 [ 29.662411] ____fput+0x15/0x20 [ 29.665705] task_work_run+0x1e4/0x290 [ 29.669590] ? task_work_cancel+0x240/0x240 [ 29.673902] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 29.679451] ? switch_task_namespaces+0xa2/0xd0 [ 29.684128] do_exit+0x1aee/0x2730 [ 29.687927] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 29.692931] ? mm_update_next_owner+0x980/0x980 [ 29.697592] ? release_sock+0x1e2/0x2b0 [ 29.701557] ? __release_sock+0x3a0/0x3a0 [ 29.705708] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.711248] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 29.716788] ? tls_sw_sendmsg+0xa99/0x12b0 [ 29.721008] ? lock_release+0xa10/0xa10 [ 29.724984] ? tls_sw_push_pending_record+0x30/0x30 [ 29.729989] ? lock_downgrade+0x8e0/0x8e0 [ 29.734124] ? __sanitizer_cov_trace_cmp1+0x17/0x20 [ 29.739146] ? lock_release+0xa10/0xa10 [ 29.743214] ? __check_object_size+0x95/0x5d9 [ 29.747699] ? inet_sendmsg+0x1a7/0x690 [ 29.751660] ? __might_sleep+0x95/0x190 [ 29.755628] ? ipip_gro_receive+0x100/0x100 [ 29.759947] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 29.765482] ? security_socket_sendmsg+0x94/0xc0 [ 29.770233] ? ipip_gro_receive+0x100/0x100 [ 29.774558] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.780093] ? sock_sendmsg+0x5a/0x120 [ 29.783973] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 29.789496] ? __sys_sendto+0x475/0x670 [ 29.793464] ? __ia32_sys_getpeername+0xb0/0xb0 [ 29.798138] ? lock_downgrade+0x8e0/0x8e0 [ 29.802274] ? __lock_is_held+0xb5/0x140 [ 29.806588] ? __sb_end_write+0xac/0xe0 [ 29.810554] do_group_exit+0x16f/0x430 [ 29.814434] ? __ia32_sys_exit+0x50/0x50 [ 29.818478] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 29.823305] ? do_syscall_64+0x92/0x800 [ 29.827266] __x64_sys_exit_group+0x3e/0x50 [ 29.831572] do_syscall_64+0x1b1/0x800 [ 29.835446] ? syscall_return_slowpath+0x5c0/0x5c0 [ 29.840359] ? syscall_return_slowpath+0x30f/0x5c0 [ 29.845286] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 29.850640] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 29.855478] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 29.860667] RIP: 0033:0x43f318 [ 29.863844] Code: Bad RIP value. [ 29.867646] RSP: 002b:00007ffd740200f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 29.875358] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f318 [ 29.882615] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 29.889890] RBP: 00000000004bf408 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 29.897150] R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000001 [ 29.904425] R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 [ 29.911702] [ 29.913320] The buggy address belongs to the page: [ 29.918316] page:ffffea0006c6b800 count:0 mapcount:-128 mapping:0000000000000000 index:0x0 [ 29.926699] flags: 0x2fffc0000000000() [ 29.930579] raw: 02fffc0000000000 ffffea000764b808 ffff88021fffac18 0000000000000000 [ 29.938444] raw: 0000000000000000 0000000000000003 00000000ffffff7f 0000000000000000 [ 29.946651] page dumped because: kasan: bad access detected [ 29.952352] [ 29.953962] Memory state around the buggy address: [ 29.958889] ffff8801b1adff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.966235] ffff8801b1adff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.973584] >ffff8801b1ae0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.980942] ^ [ 29.984291] ffff8801b1ae0080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.991635] ffff8801b1ae0100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.998981] ================================================================== [ 30.006338] Disabling lock debugging due to kernel taint [ 30.011892] Kernel panic - not syncing: panic_on_warn set ... [ 30.011892] [ 30.019268] CPU: 1 PID: 4521 Comm: syz-executor416 Tainted: G B 4.17.0+ #101 [ 30.027751] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.037105] Call Trace: [ 30.039691] dump_stack+0x1b9/0x294 [ 30.043318] ? dump_stack_print_info.cold.2+0x52/0x52 [ 30.048513] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 30.053250] ? tls_push_record+0xf70/0x13e0 [ 30.057559] panic+0x22f/0x4de [ 30.060733] ? add_taint.cold.5+0x16/0x16 [ 30.064867] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.069256] ? do_raw_spin_unlock+0x9e/0x2e0 [ 30.073649] ? tls_push_record+0x1023/0x13e0 [ 30.078064] kasan_end_report+0x47/0x4f [ 30.082036] kasan_report.cold.7+0x76/0x2fe [ 30.086343] __asan_report_store1_noabort+0x17/0x20 [ 30.091347] tls_push_record+0x1023/0x13e0 [ 30.095582] ? __local_bh_enable_ip+0x161/0x230 [ 30.100264] tls_sw_push_pending_record+0x22/0x30 [ 30.105132] tls_push_pending_closed_record+0x10c/0x150 [ 30.110483] ? lock_sock_nested+0xe7/0x120 [ 30.114706] tls_sk_proto_close+0x8f2/0xad0 [ 30.119033] ? lock_acquire+0x1dc/0x520 [ 30.122992] ? tcp_check_oom+0x520/0x520 [ 30.127052] ? tls_write_space+0x340/0x340 [ 30.131280] ? check_same_owner+0x320/0x320 [ 30.135587] ? kasan_check_read+0x11/0x20 [ 30.139718] ? rcu_note_context_switch+0x710/0x710 [ 30.144633] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.150155] ? ipv6_sock_ac_close+0x34e/0x480 [ 30.154643] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.160183] ? ipv6_sock_mc_close+0x161/0x1c0 [ 30.164677] ? ip_mc_drop_socket+0x20f/0x270 [ 30.169093] ? down_write+0x87/0x120 [ 30.172802] inet_release+0x104/0x1f0 [ 30.176608] inet6_release+0x50/0x70 [ 30.180308] __sock_release+0xd7/0x260 [ 30.184175] ? __sock_release+0x260/0x260 [ 30.188301] sock_close+0x19/0x20 [ 30.191754] __fput+0x353/0x890 [ 30.195021] ? fput+0x1a0/0x1a0 [ 30.198291] ? check_same_owner+0x320/0x320 [ 30.202602] ? _raw_spin_unlock_irq+0x27/0x70 [ 30.207089] ____fput+0x15/0x20 [ 30.210364] task_work_run+0x1e4/0x290 [ 30.214275] ? task_work_cancel+0x240/0x240 [ 30.218583] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 30.224123] ? switch_task_namespaces+0xa2/0xd0 [ 30.228775] do_exit+0x1aee/0x2730 [ 30.232295] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 30.237322] ? mm_update_next_owner+0x980/0x980 [ 30.241974] ? release_sock+0x1e2/0x2b0 [ 30.245940] ? __release_sock+0x3a0/0x3a0 [ 30.250091] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.255804] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.261353] ? tls_sw_sendmsg+0xa99/0x12b0 [ 30.265588] ? lock_release+0xa10/0xa10 [ 30.269566] ? tls_sw_push_pending_record+0x30/0x30 [ 30.274631] ? lock_downgrade+0x8e0/0x8e0 [ 30.278771] ? __sanitizer_cov_trace_cmp1+0x17/0x20 [ 30.283782] ? lock_release+0xa10/0xa10 [ 30.287746] ? __check_object_size+0x95/0x5d9 [ 30.292230] ? inet_sendmsg+0x1a7/0x690 [ 30.296202] ? __might_sleep+0x95/0x190 [ 30.300159] ? ipip_gro_receive+0x100/0x100 [ 30.304468] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 30.309988] ? security_socket_sendmsg+0x94/0xc0 [ 30.314733] ? ipip_gro_receive+0x100/0x100 [ 30.319063] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.324606] ? sock_sendmsg+0x5a/0x120 [ 30.328483] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 30.334007] ? __sys_sendto+0x475/0x670 [ 30.337969] ? __ia32_sys_getpeername+0xb0/0xb0 [ 30.342629] ? lock_downgrade+0x8e0/0x8e0 [ 30.346790] ? __lock_is_held+0xb5/0x140 [ 30.350842] ? __sb_end_write+0xac/0xe0 [ 30.354806] do_group_exit+0x16f/0x430 [ 30.358693] ? __ia32_sys_exit+0x50/0x50 [ 30.362743] ? syscall_slow_exit_work+0x4f0/0x4f0 [ 30.367575] ? do_syscall_64+0x92/0x800 [ 30.371565] __x64_sys_exit_group+0x3e/0x50 [ 30.375885] do_syscall_64+0x1b1/0x800 [ 30.379766] ? syscall_return_slowpath+0x5c0/0x5c0 [ 30.384682] ? syscall_return_slowpath+0x30f/0x5c0 [ 30.389623] ? entry_SYSCALL_64_after_hwframe+0x59/0xbe [ 30.394990] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 30.399836] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 30.405017] RIP: 0033:0x43f318 [ 30.408197] Code: Bad RIP value. [ 30.411562] RSP: 002b:00007ffd740200f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 30.419269] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043f318 [ 30.426542] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 [ 30.433803] RBP: 00000000004bf408 R08: 00000000000000e7 R09: ffffffffffffffd0 [ 30.441072] R10: 0000000000000040 R11: 0000000000000246 R12: 0000000000000001 [ 30.448347] R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 [ 30.456156] Dumping ftrace buffer: [ 30.459770] (ftrace buffer empty) [ 30.463466] Kernel Offset: disabled [ 30.467082] Rebooting in 86400 seconds..