[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 18.953455] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 21.771830] random: sshd: uninitialized urandom read (32 bytes read) [ 22.071810] random: sshd: uninitialized urandom read (32 bytes read) [ 22.789271] random: sshd: uninitialized urandom read (32 bytes read) [ 27.113952] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.41' (ECDSA) to the list of known hosts. [ 32.637311] random: sshd: uninitialized urandom read (32 bytes read) 2018/04/25 05:06:48 parsed 1 programs 2018/04/25 05:06:48 executed programs: 0 [ 33.123334] IPVS: ftp: loaded support on port[0] = 21 [ 33.168536] ================================================================== [ 33.176020] BUG: KASAN: stack-out-of-bounds in compat_copy_entries+0x96c/0x14a0 [ 33.183448] Write of size 33 at addr ffff8801b0abf888 by task syz-executor0/4504 [ 33.190955] [ 33.192564] CPU: 0 PID: 4504 Comm: syz-executor0 Not tainted 4.17.0-rc2+ #40 [ 33.199817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.209169] Call Trace: [ 33.211742] dump_stack+0x1b9/0x294 [ 33.215358] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.220528] ? printk+0x9e/0xba [ 33.223790] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.228532] ? kasan_check_write+0x14/0x20 [ 33.232746] print_address_description+0x6c/0x20b [ 33.237567] ? compat_copy_entries+0x96c/0x14a0 [ 33.242214] kasan_report.cold.7+0x242/0x2fe [ 33.246609] check_memory_region+0x13e/0x1b0 [ 33.250995] memcpy+0x37/0x50 [ 33.254079] compat_copy_entries+0x96c/0x14a0 [ 33.258557] ? compat_table_info+0x660/0x660 [ 33.262949] ? xt_compat_init_offsets+0x26e/0x340 [ 33.267803] ? xt_compat_flush_offsets+0x270/0x270 [ 33.272716] compat_do_replace+0x483/0x900 [ 33.276934] ? compat_do_ebt_get_ctl+0x910/0x910 [ 33.281676] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.287194] ? cap_capable+0x1f9/0x260 [ 33.291156] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.296670] ? ns_capable_common+0x13f/0x170 [ 33.301062] compat_do_ebt_set_ctl+0x2ac/0x324 [ 33.305623] ? compat_do_replace+0x900/0x900 [ 33.310016] ? mutex_unlock+0xd/0x10 [ 33.313711] ? nf_sockopt_find.constprop.0+0x221/0x290 [ 33.318976] compat_nf_setsockopt+0x9b/0x140 [ 33.323365] ? compat_do_replace+0x900/0x900 [ 33.327756] compat_ip_setsockopt+0xff/0x140 [ 33.332150] inet_csk_compat_setsockopt+0x97/0x120 [ 33.337074] ? ip_setsockopt+0xf0/0xf0 [ 33.340944] compat_tcp_setsockopt+0x49/0x80 [ 33.345335] compat_sock_common_setsockopt+0xb4/0x150 [ 33.350503] ? tcp_setsockopt+0xe0/0xe0 [ 33.354457] ? sock_common_setsockopt+0xe0/0xe0 [ 33.359106] __compat_sys_setsockopt+0x1ab/0x7c0 [ 33.363844] ? __compat_sys_getsockopt+0x7f0/0x7f0 [ 33.368764] ? __x32_compat_sys_get_robust_list+0x430/0x430 [ 33.374470] ? mm_fault_error+0x380/0x380 [ 33.378624] __ia32_compat_sys_setsockopt+0xbd/0x150 [ 33.383709] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.388714] do_fast_syscall_32+0x345/0xf9b [ 33.393015] ? do_int80_syscall_32+0x880/0x880 [ 33.397578] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.402324] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.407857] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.412768] ? sysret32_from_system_call+0x5/0x46 [ 33.417592] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.422416] entry_SYSENTER_compat+0x70/0x7f [ 33.426806] RIP: 0023:0xf7fb3cb9 [ 33.430149] RSP: 002b:00000000fff0c26c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 33.437839] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 33.445095] RDX: 0000000000000080 RSI: 0000000020000300 RDI: 00000000000005f4 [ 33.452341] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 33.459591] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.466857] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.474122] [ 33.475745] The buggy address belongs to the page: [ 33.480665] page:ffffea0006c2afc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 33.488786] flags: 0x2fffc0000000000() [ 33.492665] raw: 02fffc0000000000 0000000000000000 0000000000000000 00000000ffffffff [ 33.500616] raw: 0000000000000000 ffffea0006c20101 0000000000000000 0000000000000000 [ 33.508482] page dumped because: kasan: bad access detected [ 33.514165] [ 33.515767] Memory state around the buggy address: [ 33.520675] ffff8801b0abf780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.528014] ffff8801b0abf800: 00 00 00 00 00 f1 f1 f1 f1 00 00 f2 f2 f2 f2 f2 [ 33.535353] >ffff8801b0abf880: f2 00 00 00 07 f3 f3 f3 f3 00 00 00 00 00 00 00 [ 33.542693] ^ [ 33.547084] ffff8801b0abf900: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 [ 33.554438] ffff8801b0abf980: 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 [ 33.561806] ================================================================== [ 33.569143] Disabling lock debugging due to kernel taint [ 33.574681] Kernel panic - not syncing: panic_on_warn set ... [ 33.574681] [ 33.582033] CPU: 0 PID: 4504 Comm: syz-executor0 Tainted: G B 4.17.0-rc2+ #40 [ 33.590580] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.599908] Call Trace: [ 33.602484] dump_stack+0x1b9/0x294 [ 33.606089] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.611256] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.615996] ? compat_copy_entries+0x920/0x14a0 [ 33.620639] panic+0x22f/0x4de [ 33.623806] ? add_taint.cold.5+0x16/0x16 [ 33.627933] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.632317] ? do_raw_spin_unlock+0x9e/0x2e0 [ 33.636701] ? compat_copy_entries+0x96c/0x14a0 [ 33.641350] kasan_end_report+0x47/0x4f [ 33.645301] kasan_report.cold.7+0x76/0x2fe [ 33.649601] check_memory_region+0x13e/0x1b0 [ 33.654352] memcpy+0x37/0x50 [ 33.657447] compat_copy_entries+0x96c/0x14a0 [ 33.661927] ? compat_table_info+0x660/0x660 [ 33.666320] ? xt_compat_init_offsets+0x26e/0x340 [ 33.671140] ? xt_compat_flush_offsets+0x270/0x270 [ 33.676049] compat_do_replace+0x483/0x900 [ 33.680264] ? compat_do_ebt_get_ctl+0x910/0x910 [ 33.685001] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.690516] ? cap_capable+0x1f9/0x260 [ 33.694384] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.699903] ? ns_capable_common+0x13f/0x170 [ 33.704291] compat_do_ebt_set_ctl+0x2ac/0x324 [ 33.708853] ? compat_do_replace+0x900/0x900 [ 33.713241] ? mutex_unlock+0xd/0x10 [ 33.716931] ? nf_sockopt_find.constprop.0+0x221/0x290 [ 33.722185] compat_nf_setsockopt+0x9b/0x140 [ 33.726569] ? compat_do_replace+0x900/0x900 [ 33.730954] compat_ip_setsockopt+0xff/0x140 [ 33.735339] inet_csk_compat_setsockopt+0x97/0x120 [ 33.740245] ? ip_setsockopt+0xf0/0xf0 [ 33.744111] compat_tcp_setsockopt+0x49/0x80 [ 33.748501] compat_sock_common_setsockopt+0xb4/0x150 [ 33.753666] ? tcp_setsockopt+0xe0/0xe0 [ 33.757618] ? sock_common_setsockopt+0xe0/0xe0 [ 33.762265] __compat_sys_setsockopt+0x1ab/0x7c0 [ 33.766997] ? __compat_sys_getsockopt+0x7f0/0x7f0 [ 33.771904] ? __x32_compat_sys_get_robust_list+0x430/0x430 [ 33.777592] ? mm_fault_error+0x380/0x380 [ 33.781717] __ia32_compat_sys_setsockopt+0xbd/0x150 [ 33.786799] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 33.791791] do_fast_syscall_32+0x345/0xf9b [ 33.796091] ? do_int80_syscall_32+0x880/0x880 [ 33.800657] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.805393] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.810907] ? syscall_return_slowpath+0x30f/0x5c0 [ 33.815814] ? sysret32_from_system_call+0x5/0x46 [ 33.820639] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.825466] entry_SYSENTER_compat+0x70/0x7f [ 33.829849] RIP: 0023:0xf7fb3cb9 [ 33.833187] RSP: 002b:00000000fff0c26c EFLAGS: 00000282 ORIG_RAX: 000000000000016e [ 33.840873] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000000000 [ 33.848138] RDX: 0000000000000080 RSI: 0000000020000300 RDI: 00000000000005f4 [ 33.855387] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 33.862639] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.869886] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.877630] Dumping ftrace buffer: [ 33.881146] (ftrace buffer empty) [ 33.884832] Kernel Offset: disabled [ 33.888436] Rebooting in 86400 seconds..