[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.064675] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.251548] random: sshd: uninitialized urandom read (32 bytes read) [ 29.662235] random: sshd: uninitialized urandom read (32 bytes read) [ 30.282773] random: sshd: uninitialized urandom read (32 bytes read) [ 30.490049] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.41' (ECDSA) to the list of known hosts. [ 36.075459] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program executing program executing program executing program [ 36.195873] audit: type=1400 audit(1537817969.089:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor371" [ 36.215171] audit: type=1400 audit(1537817969.109:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5342 comm="syz-executor371" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.234330] audit: type=1400 audit(1537817969.129:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5343 comm="syz-executor371" [ 36.251630] audit: type=1400 audit(1537817969.129:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5344 comm="syz-executor371" [ 36.269520] audit: type=1400 audit(1537817969.129:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5345 comm="syz-executor371" 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 [ 36.287260] audit: type=1400 audit(1537817969.129:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5346 comm="syz-executor371" [ 36.304585] audit: type=1400 audit(1537817969.129:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5347 comm="syz-executor371" [ 36.322541] audit: type=1400 audit(1537817969.149:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5348 comm="syz-executor371" 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 executing program executing program [ 36.340503] audit: type=1400 audit(1537817969.149:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5349 comm="syz-executor371" [ 36.357905] audit: type=1400 audit(1537817969.149:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5350 comm="syz-executor371" 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 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 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 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 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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.783272] ================================================================== [ 36.790778] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 36.796914] Read of size 1 at addr ffff8801bad6f3b0 by task syz-executor371/5522 [ 36.804434] [ 36.806055] CPU: 1 PID: 5522 Comm: syz-executor371 Not tainted 4.19.0-rc5+ #155 [ 36.813494] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.822834] Call Trace: [ 36.825417] dump_stack+0x1c4/0x2b4 [ 36.829046] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.834233] ? printk+0xa7/0xcf [ 36.837505] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.842291] print_address_description.cold.8+0x9/0x1ff [ 36.847655] kasan_report.cold.9+0x242/0x309 [ 36.852061] ? memcmp+0xe3/0x160 [ 36.855424] __asan_report_load1_noabort+0x14/0x20 [ 36.860347] memcmp+0xe3/0x160 [ 36.863546] strnstr+0x4b/0x70 [ 36.866741] __aa_lookupn_ns+0xc1/0x570 [ 36.870712] ? aa_find_ns+0x30/0x30 [ 36.874349] ? lock_acquire+0x1ed/0x520 [ 36.878330] ? __aa_lookupn_ns+0x570/0x570 [ 36.882561] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.888094] ? check_preemption_disabled+0x48/0x200 [ 36.893175] ? kasan_check_read+0x11/0x20 [ 36.897326] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.902599] ? print_usage_bug+0xc0/0xc0 [ 36.906672] ? rcu_bh_qs+0xc0/0xc0 [ 36.910211] ? print_usage_bug+0xc0/0xc0 [ 36.914273] aa_lookupn_ns+0x88/0x1e0 [ 36.918073] aa_fqlookupn_profile+0x1b9/0x1010 [ 36.922677] ? aa_lookup_profile+0x30/0x30 [ 36.926909] ? __lock_acquire+0x7ec/0x4ec0 [ 36.931170] ? noop_count+0x40/0x40 [ 36.934849] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.940388] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.945853] ? refcount_add_not_zero_checked+0x330/0x330 [ 36.951321] ? mark_held_locks+0x130/0x130 [ 36.955556] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.961159] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.966698] fqlookupn_profile+0x80/0xc0 [ 36.970900] aa_label_strn_parse+0xa3a/0x1230 [ 36.975545] ? aa_label_printk+0x850/0x850 [ 36.979779] ? do_raw_spin_unlock+0xa7/0x2f0 [ 36.984187] ? graph_lock+0x170/0x170 [ 36.987998] ? lockdep_on+0x50/0x50 [ 36.991653] ? graph_lock+0x170/0x170 [ 36.995468] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.001006] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.006456] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.011914] ? graph_lock+0x170/0x170 [ 37.015724] ? find_held_lock+0x36/0x1c0 [ 37.019791] aa_label_parse+0x42/0x50 [ 37.023603] aa_change_profile+0x513/0x3510 [ 37.027925] ? lock_acquire+0x1ed/0x520 [ 37.031899] ? aa_change_hat+0x1a20/0x1a20 [ 37.036157] ? is_bpf_text_address+0xd3/0x170 [ 37.040658] ? __mutex_lock+0x85e/0x1700 [ 37.044719] ? proc_pid_attr_write+0x28a/0x540 [ 37.049303] ? mutex_trylock+0x2b0/0x2b0 [ 37.053362] ? save_stack+0xa9/0xd0 [ 37.056988] ? save_stack+0x43/0xd0 [ 37.060612] ? kasan_kmalloc+0xc7/0xe0 [ 37.064504] ? __kmalloc_track_caller+0x14a/0x750 [ 37.069346] ? memdup_user+0x2c/0xa0 [ 37.073055] ? proc_pid_attr_write+0x198/0x540 [ 37.077766] ? graph_lock+0x170/0x170 [ 37.081566] ? __ia32_sys_write+0x71/0xb0 [ 37.085710] ? graph_lock+0x170/0x170 [ 37.089599] ? mark_held_locks+0x130/0x130 [ 37.093863] apparmor_setprocattr+0xaa4/0x1150 [ 37.098468] ? apparmor_task_kill+0xcb0/0xcb0 [ 37.103023] ? lock_downgrade+0x900/0x900 [ 37.107176] ? arch_local_save_flags+0x40/0x40 [ 37.111783] security_setprocattr+0x66/0xc0 [ 37.116126] proc_pid_attr_write+0x301/0x540 [ 37.120538] __vfs_write+0x119/0x9f0 [ 37.124252] ? check_preemption_disabled+0x48/0x200 [ 37.129268] ? proc_loginuid_write+0x4f0/0x4f0 [ 37.133852] ? kernel_read+0x120/0x120 [ 37.137739] ? __lock_is_held+0xb5/0x140 [ 37.141809] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.146832] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.152370] ? __sb_start_write+0x1b2/0x370 [ 37.156693] vfs_write+0x1fc/0x560 [ 37.160236] ksys_write+0x101/0x260 [ 37.163867] ? __ia32_sys_read+0xb0/0xb0 [ 37.167931] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.173449] __ia32_sys_write+0x71/0xb0 [ 37.177444] do_fast_syscall_32+0x34d/0xfb2 [ 37.181812] ? do_int80_syscall_32+0x890/0x890 [ 37.186399] ? entry_SYSENTER_compat+0x68/0x7f [ 37.190982] ? trace_hardirqs_off_caller+0xbb/0x310 [ 37.195999] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.200853] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.205748] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.210764] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.215865] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.220887] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.225731] entry_SYSENTER_compat+0x70/0x7f [ 37.230151] RIP: 0023:0xf7f56ca9 [ 37.233517] 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 [ 37.252460] RSP: 002b:00000000ff94257c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 37.260363] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000180 [ 37.267642] RDX: 0000000000000009 RSI: 00000000ff9426c4 RDI: 00000000ff9426cc [ 37.274909] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 37.282218] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 37.289496] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 37.296772] [ 37.298437] The buggy address belongs to the page: [ 37.303474] page:ffffea0006eb5bc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 37.311732] flags: 0x2fffc0000000000() [ 37.315652] raw: 02fffc0000000000 0000000000000000 ffffffff06eb0101 0000000000000000 [ 37.323549] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 37.331434] page dumped because: kasan: bad access detected [ 37.337175] [ 37.338802] Memory state around the buggy address: [ 37.343727] ffff8801bad6f280: f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00 00 00 00 [ 37.351081] ffff8801bad6f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 37.358458] >ffff8801bad6f380: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 [ 37.365811] ^ [ 37.370735] ffff8801bad6f400: f2 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 [ 37.378116] ffff8801bad6f480: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 37.385481] ================================================================== [ 37.392830] Disabling lock debugging due to kernel taint [ 37.399834] Kernel panic - not syncing: panic_on_warn set ... [ 37.399834] [ 37.407236] CPU: 1 PID: 5522 Comm: syz-executor371 Tainted: G B 4.19.0-rc5+ #155 [ 37.416082] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.425517] Call Trace: [ 37.428159] dump_stack+0x1c4/0x2b4 [ 37.431799] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.437178] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.441940] panic+0x238/0x4e7 [ 37.445153] ? add_taint.cold.5+0x16/0x16 [ 37.449301] ? preempt_schedule+0x4d/0x60 [ 37.453444] ? ___preempt_schedule+0x16/0x18 [ 37.457852] ? trace_hardirqs_on+0xb4/0x310 [ 37.462185] kasan_end_report+0x47/0x4f [ 37.466162] kasan_report.cold.9+0x76/0x309 [ 37.470479] ? memcmp+0xe3/0x160 [ 37.473949] __asan_report_load1_noabort+0x14/0x20 [ 37.478878] memcmp+0xe3/0x160 [ 37.482079] strnstr+0x4b/0x70 [ 37.485293] __aa_lookupn_ns+0xc1/0x570 [ 37.489272] ? aa_find_ns+0x30/0x30 [ 37.492895] ? lock_acquire+0x1ed/0x520 [ 37.496924] ? __aa_lookupn_ns+0x570/0x570 [ 37.501162] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.506729] ? check_preemption_disabled+0x48/0x200 [ 37.511750] ? kasan_check_read+0x11/0x20 [ 37.515950] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 37.521238] ? print_usage_bug+0xc0/0xc0 [ 37.525296] ? rcu_bh_qs+0xc0/0xc0 [ 37.528875] ? print_usage_bug+0xc0/0xc0 [ 37.532933] aa_lookupn_ns+0x88/0x1e0 [ 37.536732] aa_fqlookupn_profile+0x1b9/0x1010 [ 37.541314] ? aa_lookup_profile+0x30/0x30 [ 37.545545] ? __lock_acquire+0x7ec/0x4ec0 [ 37.549775] ? noop_count+0x40/0x40 [ 37.553401] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.558937] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.564385] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.569840] ? mark_held_locks+0x130/0x130 [ 37.574083] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.579645] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.585226] fqlookupn_profile+0x80/0xc0 [ 37.589330] aa_label_strn_parse+0xa3a/0x1230 [ 37.593949] ? aa_label_printk+0x850/0x850 [ 37.598223] ? do_raw_spin_unlock+0xa7/0x2f0 [ 37.602627] ? graph_lock+0x170/0x170 [ 37.606432] ? lockdep_on+0x50/0x50 [ 37.610056] ? graph_lock+0x170/0x170 [ 37.613900] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.619438] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.624896] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.630357] ? graph_lock+0x170/0x170 [ 37.634156] ? find_held_lock+0x36/0x1c0 [ 37.638215] aa_label_parse+0x42/0x50 [ 37.642015] aa_change_profile+0x513/0x3510 [ 37.646343] ? lock_acquire+0x1ed/0x520 [ 37.650319] ? aa_change_hat+0x1a20/0x1a20 [ 37.654552] ? is_bpf_text_address+0xd3/0x170 [ 37.659046] ? __mutex_lock+0x85e/0x1700 [ 37.663137] ? proc_pid_attr_write+0x28a/0x540 [ 37.667730] ? mutex_trylock+0x2b0/0x2b0 [ 37.671830] ? save_stack+0xa9/0xd0 [ 37.675460] ? save_stack+0x43/0xd0 [ 37.679116] ? kasan_kmalloc+0xc7/0xe0 [ 37.683005] ? __kmalloc_track_caller+0x14a/0x750 [ 37.687853] ? memdup_user+0x2c/0xa0 [ 37.691573] ? proc_pid_attr_write+0x198/0x540 [ 37.696152] ? graph_lock+0x170/0x170 [ 37.699951] ? __ia32_sys_write+0x71/0xb0 [ 37.704093] ? graph_lock+0x170/0x170 [ 37.707915] ? mark_held_locks+0x130/0x130 [ 37.712194] apparmor_setprocattr+0xaa4/0x1150 [ 37.716819] ? apparmor_task_kill+0xcb0/0xcb0 [ 37.721442] ? lock_downgrade+0x900/0x900 [ 37.725593] ? arch_local_save_flags+0x40/0x40 [ 37.730182] security_setprocattr+0x66/0xc0 [ 37.734503] proc_pid_attr_write+0x301/0x540 [ 37.738912] __vfs_write+0x119/0x9f0 [ 37.742625] ? check_preemption_disabled+0x48/0x200 [ 37.747648] ? proc_loginuid_write+0x4f0/0x4f0 [ 37.752226] ? kernel_read+0x120/0x120 [ 37.756129] ? __lock_is_held+0xb5/0x140 [ 37.760195] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.765354] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.770901] ? __sb_start_write+0x1b2/0x370 [ 37.775226] vfs_write+0x1fc/0x560 [ 37.778765] ksys_write+0x101/0x260 [ 37.782438] ? __ia32_sys_read+0xb0/0xb0 [ 37.786498] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.791949] __ia32_sys_write+0x71/0xb0 [ 37.795923] do_fast_syscall_32+0x34d/0xfb2 [ 37.800242] ? do_int80_syscall_32+0x890/0x890 [ 37.804822] ? entry_SYSENTER_compat+0x68/0x7f [ 37.809400] ? trace_hardirqs_off_caller+0xbb/0x310 [ 37.814413] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.819260] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.824132] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.829234] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.834246] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.839347] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.844191] entry_SYSENTER_compat+0x70/0x7f [ 37.848593] RIP: 0023:0xf7f56ca9 [ 37.852044] 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 [ 37.870941] RSP: 002b:00000000ff94257c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 37.878654] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000180 [ 37.886017] RDX: 0000000000000009 RSI: 00000000ff9426c4 RDI: 00000000ff9426cc [ 37.893285] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 37.900556] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 37.907879] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 37.916265] Kernel Offset: disabled [ 37.919929] Rebooting in 86400 seconds..