[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.913488] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 26.932093] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 [ 27.244888] random: sshd: uninitialized urandom read (32 bytes read) syzkaller login: [ 27.855933] random: sshd: uninitialized urandom read (32 bytes read) [ 28.071600] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.14' (ECDSA) to the list of known hosts. [ 33.636602] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 33.766675] audit: type=1400 audit(1537754938.468:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5373 comm="syz-executor093" [ 33.786579] audit: type=1400 audit(1537754938.488:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5374 comm="syz-executor093" executing program executing program executing program executing program executing program executing program executing program executing program [ 33.806565] audit: type=1400 audit(1537754938.508:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5376 comm="syz-executor093" [ 33.825905] audit: type=1400 audit(1537754938.528:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5377 comm="syz-executor093" [ 33.844878] audit: type=1400 audit(1537754938.548:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5378 comm="syz-executor093" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 33.862944] audit: type=1400 audit(1537754938.548:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5379 comm="syz-executor093" [ 33.881015] audit: type=1400 audit(1537754938.558:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5380 comm="syz-executor093" [ 33.898751] audit: type=1400 audit(1537754938.558:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5381 comm="syz-executor093" 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 [ 33.916336] audit: type=1400 audit(1537754938.568:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5382 comm="syz-executor093" [ 33.934187] audit: type=1400 audit(1537754938.568:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5383 comm="syz-executor093" 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 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 [ 34.451503] ================================================================== [ 34.458990] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 34.465154] Read of size 1 at addr ffff8801d86373b0 by task syz-executor093/5583 [ 34.472673] [ 34.474293] CPU: 0 PID: 5583 Comm: syz-executor093 Not tainted 4.19.0-rc5+ #154 [ 34.481762] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.491119] Call Trace: [ 34.493695] dump_stack+0x1c4/0x2b4 [ 34.497321] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.502510] ? printk+0xa7/0xcf [ 34.505778] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 34.510527] print_address_description.cold.8+0x9/0x1ff [ 34.515879] kasan_report.cold.9+0x242/0x309 [ 34.520308] ? memcmp+0xe3/0x160 [ 34.523683] __asan_report_load1_noabort+0x14/0x20 [ 34.528603] memcmp+0xe3/0x160 [ 34.531797] strnstr+0x4b/0x70 [ 34.534982] __aa_lookupn_ns+0xc1/0x570 [ 34.538984] ? aa_find_ns+0x30/0x30 [ 34.542601] ? lock_acquire+0x1ed/0x520 [ 34.546575] ? __aa_lookupn_ns+0x570/0x570 [ 34.550811] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.556354] ? check_preemption_disabled+0x48/0x200 [ 34.561377] ? kasan_check_read+0x11/0x20 [ 34.565527] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 34.570807] ? print_usage_bug+0xc0/0xc0 [ 34.574855] ? rcu_bh_qs+0xc0/0xc0 [ 34.578385] ? print_usage_bug+0xc0/0xc0 [ 34.582449] aa_lookupn_ns+0x88/0x1e0 [ 34.586241] aa_fqlookupn_profile+0x1b9/0x1010 [ 34.590817] ? aa_lookup_profile+0x30/0x30 [ 34.595058] ? __lock_acquire+0x7ec/0x4ec0 [ 34.599298] ? noop_count+0x40/0x40 [ 34.602920] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.608447] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 34.613886] ? refcount_add_not_zero_checked+0x330/0x330 [ 34.619333] ? mark_held_locks+0x130/0x130 [ 34.623572] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.629113] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.634643] fqlookupn_profile+0x80/0xc0 [ 34.638701] aa_label_strn_parse+0xa3a/0x1230 [ 34.643200] ? aa_label_printk+0x850/0x850 [ 34.647424] ? do_raw_spin_unlock+0xa7/0x2f0 [ 34.651832] ? graph_lock+0x170/0x170 [ 34.655628] ? lockdep_on+0x50/0x50 [ 34.659243] ? graph_lock+0x170/0x170 [ 34.663039] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.668577] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 34.674031] ? refcount_add_not_zero_checked+0x330/0x330 [ 34.679471] ? graph_lock+0x170/0x170 [ 34.683258] ? find_held_lock+0x36/0x1c0 [ 34.687310] aa_label_parse+0x42/0x50 [ 34.691100] aa_change_profile+0x513/0x3510 [ 34.695435] ? lock_acquire+0x1ed/0x520 [ 34.699416] ? aa_change_hat+0x1a20/0x1a20 [ 34.703643] ? is_bpf_text_address+0xd3/0x170 [ 34.708134] ? __mutex_lock+0x85e/0x1700 [ 34.712198] ? proc_pid_attr_write+0x28a/0x540 [ 34.716794] ? mutex_trylock+0x2b0/0x2b0 [ 34.720850] ? save_stack+0xa9/0xd0 [ 34.724485] ? save_stack+0x43/0xd0 [ 34.728110] ? kasan_kmalloc+0xc7/0xe0 [ 34.732016] ? __kmalloc_track_caller+0x14a/0x750 [ 34.736883] ? memdup_user+0x2c/0xa0 [ 34.740612] ? proc_pid_attr_write+0x198/0x540 [ 34.745194] ? graph_lock+0x170/0x170 [ 34.748995] ? __ia32_sys_write+0x71/0xb0 [ 34.753148] ? graph_lock+0x170/0x170 [ 34.756943] ? mark_held_locks+0x130/0x130 [ 34.761173] apparmor_setprocattr+0xaa4/0x1150 [ 34.765748] ? apparmor_task_kill+0xcb0/0xcb0 [ 34.770230] ? lock_downgrade+0x900/0x900 [ 34.774371] ? arch_local_save_flags+0x40/0x40 [ 34.778965] security_setprocattr+0x66/0xc0 [ 34.783277] proc_pid_attr_write+0x301/0x540 [ 34.787696] __vfs_write+0x119/0x9f0 [ 34.791406] ? check_preemption_disabled+0x48/0x200 [ 34.796419] ? proc_loginuid_write+0x4f0/0x4f0 [ 34.800988] ? kernel_read+0x120/0x120 [ 34.804885] ? __lock_is_held+0xb5/0x140 [ 34.808941] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.813946] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.819470] ? __sb_start_write+0x1b2/0x370 [ 34.823792] vfs_write+0x1fc/0x560 [ 34.827327] ksys_write+0x101/0x260 [ 34.830951] ? __ia32_sys_read+0xb0/0xb0 [ 34.835018] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 34.840461] __ia32_sys_write+0x71/0xb0 [ 34.844445] do_fast_syscall_32+0x34d/0xfb2 [ 34.848763] ? do_int80_syscall_32+0x890/0x890 [ 34.853346] ? entry_SYSENTER_compat+0x68/0x7f [ 34.857950] ? trace_hardirqs_off_caller+0xbb/0x310 [ 34.862954] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.867782] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.872611] ? trace_hardirqs_on_caller+0x310/0x310 [ 34.877616] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.882621] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.887628] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.892488] entry_SYSENTER_compat+0x70/0x7f [ 34.896912] RIP: 0023:0xf7fdeca9 [ 34.900268] 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 [ 34.919170] RSP: 002b:00000000ff8f204c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 34.926888] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000040 [ 34.934144] RDX: 0000000000000009 RSI: 00000000ff8f2194 RDI: 00000000ff8f219c [ 34.941418] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 34.948698] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 34.955955] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 34.963218] [ 34.964831] The buggy address belongs to the page: [ 34.969768] page:ffffea0007618dc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 34.977914] flags: 0x2fffc0000000000() [ 34.981791] raw: 02fffc0000000000 0000000000000000 ffffffff07610101 0000000000000000 [ 34.989662] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 34.997529] page dumped because: kasan: bad access detected [ 35.003238] [ 35.004849] Memory state around the buggy address: [ 35.009773] ffff8801d8637280: f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00 00 00 00 [ 35.017145] ffff8801d8637300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 35.024489] >ffff8801d8637380: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 [ 35.031831] ^ [ 35.036761] ffff8801d8637400: f2 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 [ 35.044106] ffff8801d8637480: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 35.051448] ================================================================== [ 35.058807] Disabling lock debugging due to kernel taint [ 35.065726] Kernel panic - not syncing: panic_on_warn set ... [ 35.065726] [ 35.073112] CPU: 1 PID: 5583 Comm: syz-executor093 Tainted: G B 4.19.0-rc5+ #154 [ 35.081927] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.091286] Call Trace: [ 35.094044] dump_stack+0x1c4/0x2b4 [ 35.097678] ? dump_stack_print_info.cold.2+0x52/0x52 [ 35.102858] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 35.107602] panic+0x238/0x4e7 [ 35.110786] ? add_taint.cold.5+0x16/0x16 [ 35.114919] ? preempt_schedule+0x4d/0x60 [ 35.119050] ? ___preempt_schedule+0x16/0x18 [ 35.123447] ? trace_hardirqs_on+0xb4/0x310 [ 35.127771] kasan_end_report+0x47/0x4f [ 35.131734] kasan_report.cold.9+0x76/0x309 [ 35.136044] ? memcmp+0xe3/0x160 [ 35.139404] __asan_report_load1_noabort+0x14/0x20 [ 35.144322] memcmp+0xe3/0x160 [ 35.147500] strnstr+0x4b/0x70 [ 35.150682] __aa_lookupn_ns+0xc1/0x570 [ 35.154664] ? aa_find_ns+0x30/0x30 [ 35.158277] ? lock_acquire+0x1ed/0x520 [ 35.162252] ? __aa_lookupn_ns+0x570/0x570 [ 35.166478] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.172001] ? check_preemption_disabled+0x48/0x200 [ 35.176998] ? kasan_check_read+0x11/0x20 [ 35.181153] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 35.186438] ? print_usage_bug+0xc0/0xc0 [ 35.190485] ? rcu_bh_qs+0xc0/0xc0 [ 35.194015] ? print_usage_bug+0xc0/0xc0 [ 35.198066] aa_lookupn_ns+0x88/0x1e0 [ 35.201853] aa_fqlookupn_profile+0x1b9/0x1010 [ 35.206422] ? aa_lookup_profile+0x30/0x30 [ 35.210652] ? __lock_acquire+0x7ec/0x4ec0 [ 35.214874] ? noop_count+0x40/0x40 [ 35.218487] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.224009] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 35.229447] ? refcount_add_not_zero_checked+0x330/0x330 [ 35.234886] ? mark_held_locks+0x130/0x130 [ 35.239108] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.244633] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 35.250167] fqlookupn_profile+0x80/0xc0 [ 35.254217] aa_label_strn_parse+0xa3a/0x1230 [ 35.258700] ? aa_label_printk+0x850/0x850 [ 35.262921] ? do_raw_spin_unlock+0xa7/0x2f0 [ 35.267312] ? graph_lock+0x170/0x170 [ 35.271103] ? lockdep_on+0x50/0x50 [ 35.274714] ? graph_lock+0x170/0x170 [ 35.278509] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.284032] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 35.289471] ? refcount_add_not_zero_checked+0x330/0x330 [ 35.294906] ? graph_lock+0x170/0x170 [ 35.298689] ? find_held_lock+0x36/0x1c0 [ 35.302740] aa_label_parse+0x42/0x50 [ 35.306543] aa_change_profile+0x513/0x3510 [ 35.310850] ? lock_acquire+0x1ed/0x520 [ 35.314810] ? aa_change_hat+0x1a20/0x1a20 [ 35.319034] ? is_bpf_text_address+0xd3/0x170 [ 35.323517] ? __mutex_lock+0x85e/0x1700 [ 35.327569] ? proc_pid_attr_write+0x28a/0x540 [ 35.332137] ? mutex_trylock+0x2b0/0x2b0 [ 35.336191] ? save_stack+0xa9/0xd0 [ 35.339808] ? save_stack+0x43/0xd0 [ 35.343421] ? kasan_kmalloc+0xc7/0xe0 [ 35.347293] ? __kmalloc_track_caller+0x14a/0x750 [ 35.352121] ? memdup_user+0x2c/0xa0 [ 35.355817] ? proc_pid_attr_write+0x198/0x540 [ 35.360382] ? graph_lock+0x170/0x170 [ 35.364178] ? __ia32_sys_write+0x71/0xb0 [ 35.368312] ? graph_lock+0x170/0x170 [ 35.372119] ? mark_held_locks+0x130/0x130 [ 35.376343] apparmor_setprocattr+0xaa4/0x1150 [ 35.380915] ? apparmor_task_kill+0xcb0/0xcb0 [ 35.385420] ? lock_downgrade+0x900/0x900 [ 35.389569] ? arch_local_save_flags+0x40/0x40 [ 35.394145] security_setprocattr+0x66/0xc0 [ 35.398455] proc_pid_attr_write+0x301/0x540 [ 35.402855] __vfs_write+0x119/0x9f0 [ 35.406572] ? check_preemption_disabled+0x48/0x200 [ 35.411575] ? proc_loginuid_write+0x4f0/0x4f0 [ 35.416144] ? kernel_read+0x120/0x120 [ 35.420021] ? __lock_is_held+0xb5/0x140 [ 35.424071] ? rcu_read_lock_sched_held+0x108/0x120 [ 35.429072] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 35.434606] ? __sb_start_write+0x1b2/0x370 [ 35.438912] vfs_write+0x1fc/0x560 [ 35.442437] ksys_write+0x101/0x260 [ 35.446049] ? __ia32_sys_read+0xb0/0xb0 [ 35.450106] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 35.455554] __ia32_sys_write+0x71/0xb0 [ 35.459535] do_fast_syscall_32+0x34d/0xfb2 [ 35.463842] ? do_int80_syscall_32+0x890/0x890 [ 35.468417] ? entry_SYSENTER_compat+0x68/0x7f [ 35.472983] ? trace_hardirqs_off_caller+0xbb/0x310 [ 35.477983] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.482807] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.487633] ? trace_hardirqs_on_caller+0x310/0x310 [ 35.492634] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 35.497634] ? prepare_exit_to_usermode+0x291/0x3b0 [ 35.502669] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.507497] entry_SYSENTER_compat+0x70/0x7f [ 35.511885] RIP: 0023:0xf7fdeca9 [ 35.515238] 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 [ 35.534134] RSP: 002b:00000000ff8f204c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 35.541829] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000040 [ 35.549080] RDX: 0000000000000009 RSI: 00000000ff8f2194 RDI: 00000000ff8f219c [ 35.556330] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 35.563583] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 35.570835] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 35.579000] Kernel Offset: disabled [ 35.582641] Rebooting in 86400 seconds..