[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.813887] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.790458] random: sshd: uninitialized urandom read (32 bytes read) [ 29.121016] random: sshd: uninitialized urandom read (32 bytes read) [ 29.699601] random: sshd: uninitialized urandom read (32 bytes read) [ 29.911419] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.95' (ECDSA) to the list of known hosts. [ 35.466893] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 35.588646] audit: type=1400 audit(1537745513.450:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5328 comm="syz-executor342" [ 35.614858] audit: type=1400 audit(1537745513.470:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5329 comm="syz-executor342" executing program executing program [ 35.641700] audit: type=1400 audit(1537745513.500:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5330 comm="syz-executor342" [ 35.668716] audit: type=1400 audit(1537745513.530:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5331 comm="syz-executor342" executing program executing program [ 35.696029] audit: type=1400 audit(1537745513.560:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5332 comm="syz-executor342" [ 35.723042] audit: type=1400 audit(1537745513.580:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5333 comm="syz-executor342" executing program executing program [ 35.750375] audit: type=1400 audit(1537745513.610:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5334 comm="syz-executor342" [ 35.777840] audit: type=1400 audit(1537745513.640:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5335 comm="syz-executor342" executing program executing program executing program executing program executing program [ 35.805004] audit: type=1400 audit(1537745513.660:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5336 comm="syz-executor342" [ 35.832336] audit: type=1400 audit(1537745513.690:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5337 comm="syz-executor342" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.832972] ================================================================== [ 36.840455] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 36.846594] Read of size 1 at addr ffff8801bacb7400 by task syz-executor342/5430 [ 36.854108] [ 36.855726] CPU: 1 PID: 5430 Comm: syz-executor342 Not tainted 4.19.0-rc5+ #251 [ 36.863266] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.872608] Call Trace: [ 36.875192] dump_stack+0x1c4/0x2b4 [ 36.878810] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.883994] ? printk+0xa7/0xcf [ 36.887280] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.892035] print_address_description.cold.8+0x9/0x1ff [ 36.897404] kasan_report.cold.9+0x242/0x309 [ 36.901822] ? memcmp+0xe3/0x160 [ 36.905208] __asan_report_load1_noabort+0x14/0x20 [ 36.910133] memcmp+0xe3/0x160 [ 36.913319] strnstr+0x4b/0x70 [ 36.916510] __aa_lookupn_ns+0xc1/0x570 [ 36.920481] ? aa_find_ns+0x30/0x30 [ 36.924102] ? lock_acquire+0x1ed/0x520 [ 36.928082] ? __aa_lookupn_ns+0x570/0x570 [ 36.932329] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.938034] ? check_preemption_disabled+0x48/0x200 [ 36.943057] ? kasan_check_read+0x11/0x20 [ 36.947213] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.952491] ? rcu_bh_qs+0xc0/0xc0 [ 36.956022] ? print_usage_bug+0xc0/0xc0 [ 36.960081] aa_lookupn_ns+0x88/0x1e0 [ 36.963877] aa_fqlookupn_profile+0x1b9/0x1010 [ 36.968497] ? lru_cache_add+0x417/0xa50 [ 36.972556] ? aa_lookup_profile+0x30/0x30 [ 36.976784] ? __lock_acquire+0x7ec/0x4ec0 [ 36.981010] ? noop_count+0x40/0x40 [ 36.984627] ? rcu_bh_qs+0xc0/0xc0 [ 36.988160] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.993686] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.999124] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.004568] ? mark_held_locks+0x130/0x130 [ 37.008795] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.014331] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.019880] fqlookupn_profile+0x80/0xc0 [ 37.023937] aa_label_strn_parse+0xa3a/0x1230 [ 37.028434] ? aa_label_printk+0x850/0x850 [ 37.032660] ? lockdep_on+0x50/0x50 [ 37.036474] ? graph_lock+0x170/0x170 [ 37.040275] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.045804] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.051243] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.056682] ? graph_lock+0x170/0x170 [ 37.060473] ? find_held_lock+0x36/0x1c0 [ 37.064534] aa_label_parse+0x42/0x50 [ 37.068346] aa_change_profile+0x513/0x3510 [ 37.072661] ? lock_acquire+0x1ed/0x520 [ 37.076636] ? aa_change_hat+0x1a20/0x1a20 [ 37.080867] ? is_bpf_text_address+0xd3/0x170 [ 37.085354] ? __mutex_lock+0x85e/0x1700 [ 37.089402] ? proc_pid_attr_write+0x28a/0x540 [ 37.093978] ? mutex_trylock+0x2b0/0x2b0 [ 37.098028] ? save_stack+0xa9/0xd0 [ 37.101642] ? save_stack+0x43/0xd0 [ 37.105257] ? kasan_kmalloc+0xc7/0xe0 [ 37.109133] ? __kmalloc_track_caller+0x14a/0x750 [ 37.113970] ? memdup_user+0x2c/0xa0 [ 37.117673] ? proc_pid_attr_write+0x198/0x540 [ 37.122259] ? graph_lock+0x170/0x170 [ 37.126121] ? __x64_sys_write+0x73/0xb0 [ 37.130171] ? graph_lock+0x170/0x170 [ 37.133967] ? mark_held_locks+0x130/0x130 [ 37.138198] apparmor_setprocattr+0xaa4/0x1150 [ 37.142799] ? apparmor_task_kill+0xcb0/0xcb0 [ 37.147284] ? lock_downgrade+0x900/0x900 [ 37.151425] ? arch_local_save_flags+0x40/0x40 [ 37.156010] security_setprocattr+0x66/0xc0 [ 37.160324] proc_pid_attr_write+0x301/0x540 [ 37.164725] __vfs_write+0x119/0x9f0 [ 37.168429] ? check_preemption_disabled+0x48/0x200 [ 37.173444] ? proc_loginuid_write+0x4f0/0x4f0 [ 37.178037] ? kernel_read+0x120/0x120 [ 37.181917] ? __lock_is_held+0xb5/0x140 [ 37.185985] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.190998] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.196525] ? __sb_start_write+0x1b2/0x370 [ 37.200855] vfs_write+0x1fc/0x560 [ 37.204388] ksys_write+0x101/0x260 [ 37.208007] ? __ia32_sys_read+0xb0/0xb0 [ 37.212060] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.217515] __x64_sys_write+0x73/0xb0 [ 37.221399] do_syscall_64+0x1b9/0x820 [ 37.225295] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.230651] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.235569] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.240404] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.245408] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.250415] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.255950] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.260970] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.265871] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.271049] RIP: 0033:0x440d49 [ 37.274229] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 37.293121] RSP: 002b:00007ffef6bcd088 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 37.300819] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 37.308073] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 37.315351] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 37.322613] R10: 0000000001c90880 R11: 0000000000000213 R12: 0000000000008fbd [ 37.329909] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 37.337174] [ 37.338787] The buggy address belongs to the page: [ 37.343702] page:ffffea0006eb2dc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 37.351831] flags: 0x2fffc0000000000() [ 37.355718] raw: 02fffc0000000000 0000000000000000 ffffffff06eb0101 0000000000000000 [ 37.363593] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 37.371455] page dumped because: kasan: bad access detected [ 37.377148] [ 37.378757] Memory state around the buggy address: [ 37.383670] ffff8801bacb7300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 37.391015] ffff8801bacb7380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 37.398360] >ffff8801bacb7400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 37.405729] ^ [ 37.409086] ffff8801bacb7480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 37.416431] ffff8801bacb7500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 37.423774] ================================================================== [ 37.431114] Disabling lock debugging due to kernel taint [ 37.437074] Kernel panic - not syncing: panic_on_warn set ... [ 37.437074] [ 37.447929] CPU: 1 PID: 5430 Comm: syz-executor342 Tainted: G B 4.19.0-rc5+ #251 [ 37.457020] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.466379] Call Trace: [ 37.468990] dump_stack+0x1c4/0x2b4 [ 37.472698] ? dump_stack_print_info.cold.2+0x52/0x52 [ 37.477874] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 37.482619] panic+0x238/0x4e7 [ 37.485817] ? add_taint.cold.5+0x16/0x16 [ 37.489961] ? preempt_schedule+0x4d/0x60 [ 37.494101] ? ___preempt_schedule+0x16/0x18 [ 37.500395] ? trace_hardirqs_on+0xb4/0x310 [ 37.504716] kasan_end_report+0x47/0x4f [ 37.509345] kasan_report.cold.9+0x76/0x309 [ 37.513653] ? memcmp+0xe3/0x160 [ 37.517004] __asan_report_load1_noabort+0x14/0x20 [ 37.521917] memcmp+0xe3/0x160 [ 37.525100] strnstr+0x4b/0x70 [ 37.528278] __aa_lookupn_ns+0xc1/0x570 [ 37.532485] ? aa_find_ns+0x30/0x30 [ 37.536100] ? lock_acquire+0x1ed/0x520 [ 37.540060] ? __aa_lookupn_ns+0x570/0x570 [ 37.544290] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.549834] ? check_preemption_disabled+0x48/0x200 [ 37.554841] ? kasan_check_read+0x11/0x20 [ 37.558978] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 37.564260] ? rcu_bh_qs+0xc0/0xc0 [ 37.567788] ? print_usage_bug+0xc0/0xc0 [ 37.571848] aa_lookupn_ns+0x88/0x1e0 [ 37.575639] aa_fqlookupn_profile+0x1b9/0x1010 [ 37.580217] ? lru_cache_add+0x417/0xa50 [ 37.584266] ? aa_lookup_profile+0x30/0x30 [ 37.588493] ? __lock_acquire+0x7ec/0x4ec0 [ 37.592713] ? noop_count+0x40/0x40 [ 37.596334] ? rcu_bh_qs+0xc0/0xc0 [ 37.599861] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.605383] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.610819] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.616256] ? mark_held_locks+0x130/0x130 [ 37.620487] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.626020] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.631546] fqlookupn_profile+0x80/0xc0 [ 37.635625] aa_label_strn_parse+0xa3a/0x1230 [ 37.640119] ? aa_label_printk+0x850/0x850 [ 37.644340] ? lockdep_on+0x50/0x50 [ 37.647959] ? graph_lock+0x170/0x170 [ 37.651756] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.657292] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 37.662737] ? refcount_add_not_zero_checked+0x330/0x330 [ 37.668190] ? graph_lock+0x170/0x170 [ 37.671991] ? find_held_lock+0x36/0x1c0 [ 37.676058] aa_label_parse+0x42/0x50 [ 37.679904] aa_change_profile+0x513/0x3510 [ 37.684213] ? lock_acquire+0x1ed/0x520 [ 37.688202] ? aa_change_hat+0x1a20/0x1a20 [ 37.692427] ? is_bpf_text_address+0xd3/0x170 [ 37.696918] ? __mutex_lock+0x85e/0x1700 [ 37.700974] ? proc_pid_attr_write+0x28a/0x540 [ 37.705546] ? mutex_trylock+0x2b0/0x2b0 [ 37.709604] ? save_stack+0xa9/0xd0 [ 37.713216] ? save_stack+0x43/0xd0 [ 37.716829] ? kasan_kmalloc+0xc7/0xe0 [ 37.720827] ? __kmalloc_track_caller+0x14a/0x750 [ 37.725665] ? memdup_user+0x2c/0xa0 [ 37.729371] ? proc_pid_attr_write+0x198/0x540 [ 37.733953] ? graph_lock+0x170/0x170 [ 37.737743] ? __x64_sys_write+0x73/0xb0 [ 37.741814] ? graph_lock+0x170/0x170 [ 37.745615] ? mark_held_locks+0x130/0x130 [ 37.749842] apparmor_setprocattr+0xaa4/0x1150 [ 37.754412] ? apparmor_task_kill+0xcb0/0xcb0 [ 37.758893] ? lock_downgrade+0x900/0x900 [ 37.763026] ? arch_local_save_flags+0x40/0x40 [ 37.767603] security_setprocattr+0x66/0xc0 [ 37.771914] proc_pid_attr_write+0x301/0x540 [ 37.776312] __vfs_write+0x119/0x9f0 [ 37.780011] ? check_preemption_disabled+0x48/0x200 [ 37.785011] ? proc_loginuid_write+0x4f0/0x4f0 [ 37.789581] ? kernel_read+0x120/0x120 [ 37.793459] ? __lock_is_held+0xb5/0x140 [ 37.797524] ? rcu_read_lock_sched_held+0x108/0x120 [ 37.802527] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.808049] ? __sb_start_write+0x1b2/0x370 [ 37.813053] vfs_write+0x1fc/0x560 [ 37.816585] ksys_write+0x101/0x260 [ 37.820202] ? __ia32_sys_read+0xb0/0xb0 [ 37.824260] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.829718] __x64_sys_write+0x73/0xb0 [ 37.833615] do_syscall_64+0x1b9/0x820 [ 37.837494] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.842843] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.847778] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.852608] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.857610] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.862615] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.868156] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.873169] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.878011] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.883197] RIP: 0033:0x440d49 [ 37.886376] Code: e8 cc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 37.905407] RSP: 002b:00007ffef6bcd088 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 37.913128] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 37.920392] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 37.927671] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 37.934927] R10: 0000000001c90880 R11: 0000000000000213 R12: 0000000000008fbd [ 37.942213] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 37.950487] Kernel Offset: disabled [ 37.954112] Rebooting in 86400 seconds..