[....] Starting OpenBSD Secure Shell server: sshd[ 24.828403] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.003420] random: sshd: uninitialized urandom read (32 bytes read) [ 28.346260] sshd (5314) used greatest stack depth: 16424 bytes left [ 28.369090] random: sshd: uninitialized urandom read (32 bytes read) [ 28.999051] random: sshd: uninitialized urandom read (32 bytes read) [ 39.102841] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.86' (ECDSA) to the list of known hosts. [ 44.678669] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 44.806951] audit: type=1400 audit(1537820101.065:2): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5333 comm="syz-executor967" [ 44.825625] audit: type=1400 audit(1537820101.085:3): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5334 comm="syz-executor967" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.844544] audit: type=1400 audit(1537820101.115:4): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5335 comm="syz-executor967" [ 44.863688] audit: type=1400 audit(1537820101.125:5): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5336 comm="syz-executor967" [ 44.881222] audit: type=1400 audit(1537820101.125:6): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5337 comm="syz-executor967" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.899025] audit: type=1400 audit(1537820101.125:7): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5338 comm="syz-executor967" [ 44.916802] audit: type=1400 audit(1537820101.125:8): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5339 comm="syz-executor967" [ 44.934802] audit: type=1400 audit(1537820101.125:9): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5340 comm="syz-executor967" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 44.952565] audit: type=1400 audit(1537820101.155:10): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor967" [ 44.971660] audit: type=1400 audit(1537820101.155:11): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5342 comm="syz-executor967" [ 45.033463] ================================================================== [ 45.040942] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 45.047083] Read of size 1 at addr ffff8801bb08f3b0 by task syz-executor967/5382 [ 45.054609] [ 45.056226] CPU: 1 PID: 5382 Comm: syz-executor967 Not tainted 4.19.0-rc5+ #155 [ 45.063652] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.073000] Call Trace: [ 45.075574] dump_stack+0x1c4/0x2b4 [ 45.079191] ? dump_stack_print_info.cold.2+0x52/0x52 [ 45.084368] ? printk+0xa7/0xcf [ 45.087635] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 45.092397] print_address_description.cold.8+0x9/0x1ff [ 45.097761] kasan_report.cold.9+0x242/0x309 [ 45.102159] ? memcmp+0xe3/0x160 [ 45.105516] __asan_report_load1_noabort+0x14/0x20 [ 45.110433] memcmp+0xe3/0x160 [ 45.113613] strnstr+0x4b/0x70 [ 45.116794] __aa_lookupn_ns+0xc1/0x570 [ 45.120781] ? aa_find_ns+0x30/0x30 [ 45.124401] ? lock_acquire+0x1ed/0x520 [ 45.128360] ? __aa_lookupn_ns+0x570/0x570 [ 45.132583] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.138106] ? check_preemption_disabled+0x48/0x200 [ 45.143110] ? kasan_check_read+0x11/0x20 [ 45.147249] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 45.152509] ? print_usage_bug+0xc0/0xc0 [ 45.156562] ? rcu_bh_qs+0xc0/0xc0 [ 45.160171] ? print_usage_bug+0xc0/0xc0 [ 45.164251] aa_lookupn_ns+0x88/0x1e0 [ 45.168055] aa_fqlookupn_profile+0x1b9/0x1010 [ 45.172626] ? aa_lookup_profile+0x30/0x30 [ 45.176846] ? __lock_acquire+0x7ec/0x4ec0 [ 45.181067] ? noop_count+0x40/0x40 [ 45.184684] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.190331] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 45.195772] ? refcount_add_not_zero_checked+0x330/0x330 [ 45.201216] ? mark_held_locks+0x130/0x130 [ 45.205437] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.211103] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.216660] fqlookupn_profile+0x80/0xc0 [ 45.220723] aa_label_strn_parse+0xa3a/0x1230 [ 45.225210] ? aa_label_printk+0x850/0x850 [ 45.229431] ? do_raw_spin_unlock+0xa7/0x2f0 [ 45.233822] ? graph_lock+0x170/0x170 [ 45.237625] ? lockdep_on+0x50/0x50 [ 45.241256] ? graph_lock+0x170/0x170 [ 45.245050] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.250574] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 45.256014] ? refcount_add_not_zero_checked+0x330/0x330 [ 45.261451] ? graph_lock+0x170/0x170 [ 45.265240] ? find_held_lock+0x36/0x1c0 [ 45.269292] aa_label_parse+0x42/0x50 [ 45.273082] aa_change_profile+0x513/0x3510 [ 45.277396] ? lock_acquire+0x1ed/0x520 [ 45.281374] ? aa_change_hat+0x1a20/0x1a20 [ 45.285612] ? is_bpf_text_address+0xd3/0x170 [ 45.290097] ? __mutex_lock+0x85e/0x1700 [ 45.294146] ? proc_pid_attr_write+0x28a/0x540 [ 45.298717] ? mutex_trylock+0x2b0/0x2b0 [ 45.302767] ? save_stack+0xa9/0xd0 [ 45.306377] ? save_stack+0x43/0xd0 [ 45.309987] ? kasan_kmalloc+0xc7/0xe0 [ 45.313860] ? __kmalloc_track_caller+0x14a/0x750 [ 45.318688] ? memdup_user+0x2c/0xa0 [ 45.322386] ? proc_pid_attr_write+0x198/0x540 [ 45.326963] ? graph_lock+0x170/0x170 [ 45.330764] ? __ia32_sys_write+0x71/0xb0 [ 45.334897] ? graph_lock+0x170/0x170 [ 45.338683] ? mark_held_locks+0x130/0x130 [ 45.342910] apparmor_setprocattr+0xa8b/0x1150 [ 45.347486] ? apparmor_task_kill+0xcb0/0xcb0 [ 45.351967] ? lock_downgrade+0x900/0x900 [ 45.356104] ? arch_local_save_flags+0x40/0x40 [ 45.360687] security_setprocattr+0x66/0xc0 [ 45.365002] proc_pid_attr_write+0x301/0x540 [ 45.369399] __vfs_write+0x119/0x9f0 [ 45.373099] ? check_preemption_disabled+0x48/0x200 [ 45.378105] ? proc_loginuid_write+0x4f0/0x4f0 [ 45.382679] ? kernel_read+0x120/0x120 [ 45.386559] ? __lock_is_held+0xb5/0x140 [ 45.390617] ? rcu_read_lock_sched_held+0x108/0x120 [ 45.396068] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.401797] ? __sb_start_write+0x1b2/0x370 [ 45.406129] vfs_write+0x1fc/0x560 [ 45.409671] ksys_write+0x101/0x260 [ 45.413288] ? __ia32_sys_read+0xb0/0xb0 [ 45.417347] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 45.422805] __ia32_sys_write+0x71/0xb0 [ 45.426790] do_fast_syscall_32+0x34d/0xfb2 [ 45.431104] ? do_int80_syscall_32+0x890/0x890 [ 45.435679] ? entry_SYSENTER_compat+0x68/0x7f [ 45.440359] ? trace_hardirqs_off_caller+0xbb/0x310 [ 45.445367] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.450195] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.455038] ? trace_hardirqs_on_caller+0x310/0x310 [ 45.460043] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 45.465044] ? prepare_exit_to_usermode+0x291/0x3b0 [ 45.470047] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.474880] entry_SYSENTER_compat+0x70/0x7f [ 45.479272] RIP: 0023:0xf7f69ca9 [ 45.482625] Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 [ 45.501510] RSP: 002b:00000000ffbd34ec EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 45.509206] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 [ 45.516460] RDX: 0000000000000008 RSI: 00000000ffbd3634 RDI: 00000000ffbd363c [ 45.523712] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 45.530965] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.538217] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.545477] [ 45.547085] The buggy address belongs to the page: [ 45.551997] page:ffffea0006ec23c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 45.560129] flags: 0x2fffc0000000000() [ 45.564033] raw: 02fffc0000000000 0000000000000000 ffffffff06ec0101 0000000000000000 [ 45.571899] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 45.579773] page dumped because: kasan: bad access detected [ 45.585483] [ 45.587089] Memory state around the buggy address: [ 45.592001] ffff8801bb08f280: f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00 00 00 00 [ 45.599351] ffff8801bb08f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 45.606692] >ffff8801bb08f380: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 [ 45.614033] ^ [ 45.619008] ffff8801bb08f400: f2 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 [ 45.626373] ffff8801bb08f480: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 45.633725] ================================================================== [ 45.641084] Disabling lock debugging due to kernel taint [ 45.646688] Kernel panic - not syncing: panic_on_warn set ... [ 45.646688] [ 45.654070] CPU: 1 PID: 5382 Comm: syz-executor967 Tainted: G B 4.19.0-rc5+ #155 [ 45.662897] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.672231] Call Trace: [ 45.674809] dump_stack+0x1c4/0x2b4 [ 45.678429] ? dump_stack_print_info.cold.2+0x52/0x52 [ 45.683612] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 45.688363] panic+0x238/0x4e7 [ 45.691656] ? add_taint.cold.5+0x16/0x16 [ 45.695806] ? preempt_schedule+0x4d/0x60 [ 45.699955] ? ___preempt_schedule+0x16/0x18 [ 45.704386] ? trace_hardirqs_on+0xb4/0x310 [ 45.708694] kasan_end_report+0x47/0x4f [ 45.712651] kasan_report.cold.9+0x76/0x309 [ 45.716965] ? memcmp+0xe3/0x160 [ 45.720351] __asan_report_load1_noabort+0x14/0x20 [ 45.725356] memcmp+0xe3/0x160 [ 45.728549] strnstr+0x4b/0x70 [ 45.731742] __aa_lookupn_ns+0xc1/0x570 [ 45.735709] ? aa_find_ns+0x30/0x30 [ 45.739319] ? lock_acquire+0x1ed/0x520 [ 45.743288] ? __aa_lookupn_ns+0x570/0x570 [ 45.747507] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.753028] ? check_preemption_disabled+0x48/0x200 [ 45.758026] ? kasan_check_read+0x11/0x20 [ 45.762212] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 45.767483] ? print_usage_bug+0xc0/0xc0 [ 45.771531] ? rcu_bh_qs+0xc0/0xc0 [ 45.775066] ? print_usage_bug+0xc0/0xc0 [ 45.779115] aa_lookupn_ns+0x88/0x1e0 [ 45.782901] aa_fqlookupn_profile+0x1b9/0x1010 [ 45.787597] ? aa_lookup_profile+0x30/0x30 [ 45.791831] ? __lock_acquire+0x7ec/0x4ec0 [ 45.796046] ? noop_count+0x40/0x40 [ 45.799669] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.805213] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 45.810663] ? refcount_add_not_zero_checked+0x330/0x330 [ 45.816110] ? mark_held_locks+0x130/0x130 [ 45.820342] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.825863] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.831386] fqlookupn_profile+0x80/0xc0 [ 45.835429] aa_label_strn_parse+0xa3a/0x1230 [ 45.839907] ? aa_label_printk+0x850/0x850 [ 45.844128] ? do_raw_spin_unlock+0xa7/0x2f0 [ 45.848518] ? graph_lock+0x170/0x170 [ 45.852310] ? lockdep_on+0x50/0x50 [ 45.855957] ? graph_lock+0x170/0x170 [ 45.859746] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.865268] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 45.870817] ? refcount_add_not_zero_checked+0x330/0x330 [ 45.876254] ? graph_lock+0x170/0x170 [ 45.880040] ? find_held_lock+0x36/0x1c0 [ 45.884088] aa_label_parse+0x42/0x50 [ 45.887874] aa_change_profile+0x513/0x3510 [ 45.892181] ? lock_acquire+0x1ed/0x520 [ 45.896138] ? aa_change_hat+0x1a20/0x1a20 [ 45.900361] ? is_bpf_text_address+0xd3/0x170 [ 45.904843] ? __mutex_lock+0x85e/0x1700 [ 45.908891] ? proc_pid_attr_write+0x28a/0x540 [ 45.913455] ? mutex_trylock+0x2b0/0x2b0 [ 45.917499] ? save_stack+0xa9/0xd0 [ 45.921106] ? save_stack+0x43/0xd0 [ 45.924719] ? kasan_kmalloc+0xc7/0xe0 [ 45.928591] ? __kmalloc_track_caller+0x14a/0x750 [ 45.933418] ? memdup_user+0x2c/0xa0 [ 45.937115] ? proc_pid_attr_write+0x198/0x540 [ 45.941680] ? graph_lock+0x170/0x170 [ 45.945466] ? __ia32_sys_write+0x71/0xb0 [ 45.949594] ? graph_lock+0x170/0x170 [ 45.953377] ? mark_held_locks+0x130/0x130 [ 45.957598] apparmor_setprocattr+0xa8b/0x1150 [ 45.962169] ? apparmor_task_kill+0xcb0/0xcb0 [ 45.966656] ? lock_downgrade+0x900/0x900 [ 45.970800] ? arch_local_save_flags+0x40/0x40 [ 45.975392] security_setprocattr+0x66/0xc0 [ 45.979731] proc_pid_attr_write+0x301/0x540 [ 45.984123] __vfs_write+0x119/0x9f0 [ 45.987822] ? check_preemption_disabled+0x48/0x200 [ 45.992819] ? proc_loginuid_write+0x4f0/0x4f0 [ 45.997389] ? kernel_read+0x120/0x120 [ 46.001273] ? __lock_is_held+0xb5/0x140 [ 46.005322] ? rcu_read_lock_sched_held+0x108/0x120 [ 46.010340] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.015862] ? __sb_start_write+0x1b2/0x370 [ 46.020169] vfs_write+0x1fc/0x560 [ 46.023692] ksys_write+0x101/0x260 [ 46.027310] ? __ia32_sys_read+0xb0/0xb0 [ 46.031366] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 46.036802] __ia32_sys_write+0x71/0xb0 [ 46.040762] do_fast_syscall_32+0x34d/0xfb2 [ 46.045068] ? do_int80_syscall_32+0x890/0x890 [ 46.049637] ? entry_SYSENTER_compat+0x68/0x7f [ 46.054203] ? trace_hardirqs_off_caller+0xbb/0x310 [ 46.059210] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.064041] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.068874] ? trace_hardirqs_on_caller+0x310/0x310 [ 46.073881] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.078882] ? prepare_exit_to_usermode+0x291/0x3b0 [ 46.083883] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.088721] entry_SYSENTER_compat+0x70/0x7f [ 46.093112] RIP: 0023:0xf7f69ca9 [ 46.096465] Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 [ 46.115353] RSP: 002b:00000000ffbd34ec EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 46.123053] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 [ 46.130318] RDX: 0000000000000008 RSI: 00000000ffbd3634 RDI: 00000000ffbd363c [ 46.137593] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 46.144845] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.152094] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.160480] Kernel Offset: disabled [ 46.164102] Rebooting in 86400 seconds..