[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 26.111331] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 31.150708] random: sshd: uninitialized urandom read (32 bytes read) [ 31.483874] random: sshd: uninitialized urandom read (32 bytes read) [ 32.136120] random: sshd: uninitialized urandom read (32 bytes read) [ 32.356192] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.10.37' (ECDSA) to the list of known hosts. [ 37.935993] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 38.065128] audit: type=1400 audit(1537825450.056:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5344 comm="syz-executor010" [ 38.092382] audit: type=1400 audit(1537825450.086:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5345 comm="syz-executor010" executing program executing program [ 38.119314] audit: type=1400 audit(1537825450.116:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5346 comm="syz-executor010" [ 38.146144] audit: type=1400 audit(1537825450.146:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5347 comm="syz-executor010" executing program executing program [ 38.173088] audit: type=1400 audit(1537825450.166:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5348 comm="syz-executor010" [ 38.200633] audit: type=1400 audit(1537825450.196:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5349 comm="syz-executor010" executing program executing program [ 38.227899] audit: type=1400 audit(1537825450.226:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5350 comm="syz-executor010" [ 38.255399] audit: type=1400 audit(1537825450.256:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5351 comm="syz-executor010" executing program executing program executing program executing program executing program [ 38.282277] audit: type=1400 audit(1537825450.276:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5352 comm="syz-executor010" [ 38.309478] audit: type=1400 audit(1537825450.306:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5353 comm="syz-executor010" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 39.450847] ================================================================== [ 39.458386] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 39.464660] Read of size 1 at addr ffff8801d8997400 by task syz-executor010/5459 [ 39.472184] [ 39.473803] CPU: 1 PID: 5459 Comm: syz-executor010 Not tainted 4.19.0-rc5+ #252 [ 39.481236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.490577] Call Trace: [ 39.493155] dump_stack+0x1c4/0x2b4 [ 39.496794] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.501977] ? printk+0xa7/0xcf [ 39.505287] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.510049] print_address_description.cold.8+0x9/0x1ff [ 39.515410] kasan_report.cold.9+0x242/0x309 [ 39.519822] ? memcmp+0xe3/0x160 [ 39.523216] __asan_report_load1_noabort+0x14/0x20 [ 39.528156] memcmp+0xe3/0x160 [ 39.531453] strnstr+0x4b/0x70 [ 39.534655] __aa_lookupn_ns+0xc1/0x570 [ 39.538629] ? aa_find_ns+0x30/0x30 [ 39.542328] ? lock_acquire+0x1ed/0x520 [ 39.546316] ? __aa_lookupn_ns+0x570/0x570 [ 39.550543] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.556071] ? check_preemption_disabled+0x48/0x200 [ 39.561081] ? kasan_check_read+0x11/0x20 [ 39.565228] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 39.570498] ? rcu_bh_qs+0xc0/0xc0 [ 39.574029] ? print_usage_bug+0xc0/0xc0 [ 39.578096] aa_lookupn_ns+0x88/0x1e0 [ 39.581891] aa_fqlookupn_profile+0x1b9/0x1010 [ 39.586559] ? lru_cache_add+0x417/0xa50 [ 39.590616] ? aa_lookup_profile+0x30/0x30 [ 39.594842] ? __lock_acquire+0x7ec/0x4ec0 [ 39.599068] ? noop_count+0x40/0x40 [ 39.602696] ? rcu_bh_qs+0xc0/0xc0 [ 39.606233] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.611763] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.617205] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.622648] ? mark_held_locks+0x130/0x130 [ 39.626881] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.632416] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.638106] fqlookupn_profile+0x80/0xc0 [ 39.642161] aa_label_strn_parse+0xa3a/0x1230 [ 39.646664] ? aa_label_printk+0x850/0x850 [ 39.650896] ? lockdep_on+0x50/0x50 [ 39.654517] ? graph_lock+0x170/0x170 [ 39.658324] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.663872] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.669334] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.674788] ? graph_lock+0x170/0x170 [ 39.678591] ? find_held_lock+0x36/0x1c0 [ 39.682650] aa_label_parse+0x42/0x50 [ 39.686491] aa_change_profile+0x513/0x3510 [ 39.690885] ? lock_acquire+0x1ed/0x520 [ 39.694860] ? aa_change_hat+0x1a20/0x1a20 [ 39.699109] ? is_bpf_text_address+0xd3/0x170 [ 39.703608] ? __mutex_lock+0x85e/0x1700 [ 39.707660] ? proc_pid_attr_write+0x28a/0x540 [ 39.712235] ? mutex_trylock+0x2b0/0x2b0 [ 39.716291] ? save_stack+0xa9/0xd0 [ 39.719904] ? save_stack+0x43/0xd0 [ 39.723517] ? kasan_kmalloc+0xc7/0xe0 [ 39.727395] ? __kmalloc_track_caller+0x14a/0x750 [ 39.732228] ? memdup_user+0x2c/0xa0 [ 39.735930] ? proc_pid_attr_write+0x198/0x540 [ 39.740515] ? graph_lock+0x170/0x170 [ 39.744312] ? __x64_sys_write+0x73/0xb0 [ 39.748374] ? graph_lock+0x170/0x170 [ 39.752183] ? mark_held_locks+0x130/0x130 [ 39.756416] apparmor_setprocattr+0xaa4/0x1150 [ 39.760993] ? apparmor_task_kill+0xcb0/0xcb0 [ 39.765478] ? lock_downgrade+0x900/0x900 [ 39.769632] ? arch_local_save_flags+0x40/0x40 [ 39.774324] security_setprocattr+0x66/0xc0 [ 39.778886] proc_pid_attr_write+0x301/0x540 [ 39.783294] __vfs_write+0x119/0x9f0 [ 39.786997] ? check_preemption_disabled+0x48/0x200 [ 39.792009] ? proc_loginuid_write+0x4f0/0x4f0 [ 39.796601] ? kernel_read+0x120/0x120 [ 39.800483] ? __lock_is_held+0xb5/0x140 [ 39.804541] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.809555] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.815086] ? __sb_start_write+0x1b2/0x370 [ 39.819420] vfs_write+0x1fc/0x560 [ 39.822994] ksys_write+0x101/0x260 [ 39.826614] ? __ia32_sys_read+0xb0/0xb0 [ 39.830667] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.836111] __x64_sys_write+0x73/0xb0 [ 39.840004] do_syscall_64+0x1b9/0x820 [ 39.843885] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.849303] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.854236] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.859073] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.864095] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.869108] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.874632] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.879716] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.884575] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.889753] RIP: 0033:0x440d49 [ 39.892950] 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 [ 39.911842] RSP: 002b:00007ffcc4860168 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 39.919541] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 39.926802] RDX: 0000000000000009 RSI: 0000000020000100 RDI: 0000000000000003 [ 39.934058] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 39.941318] R10: 0000000001556880 R11: 0000000000000213 R12: 00000000000099f6 [ 39.948578] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 39.955858] [ 39.957478] The buggy address belongs to the page: [ 39.962396] page:ffffea00076265c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 39.970525] flags: 0x2fffc0000000000() [ 39.974405] raw: 02fffc0000000000 0000000000000000 ffffffff07620101 0000000000000000 [ 39.982274] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 39.990135] page dumped because: kasan: bad access detected [ 39.995825] [ 39.997441] Memory state around the buggy address: [ 40.002361] ffff8801d8997300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 40.009717] ffff8801d8997380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 40.017066] >ffff8801d8997400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 40.024406] ^ [ 40.027768] ffff8801d8997480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 40.035112] ffff8801d8997500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 40.042453] ================================================================== [ 40.049802] Disabling lock debugging due to kernel taint [ 40.055829] Kernel panic - not syncing: panic_on_warn set ... [ 40.055829] [ 40.063219] CPU: 1 PID: 5459 Comm: syz-executor010 Tainted: G B 4.19.0-rc5+ #252 [ 40.072057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.081397] Call Trace: [ 40.084014] dump_stack+0x1c4/0x2b4 [ 40.087629] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.092810] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.097557] panic+0x238/0x4e7 [ 40.100737] ? add_taint.cold.5+0x16/0x16 [ 40.104874] ? preempt_schedule+0x4d/0x60 [ 40.109011] ? ___preempt_schedule+0x16/0x18 [ 40.113407] ? trace_hardirqs_on+0xb4/0x310 [ 40.117739] kasan_end_report+0x47/0x4f [ 40.121703] kasan_report.cold.9+0x76/0x309 [ 40.126011] ? memcmp+0xe3/0x160 [ 40.129367] __asan_report_load1_noabort+0x14/0x20 [ 40.134287] memcmp+0xe3/0x160 [ 40.137473] strnstr+0x4b/0x70 [ 40.140654] __aa_lookupn_ns+0xc1/0x570 [ 40.144617] ? aa_find_ns+0x30/0x30 [ 40.148246] ? lock_acquire+0x1ed/0x520 [ 40.152210] ? __aa_lookupn_ns+0x570/0x570 [ 40.156458] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.161987] ? check_preemption_disabled+0x48/0x200 [ 40.166992] ? kasan_check_read+0x11/0x20 [ 40.171128] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 40.176394] ? rcu_bh_qs+0xc0/0xc0 [ 40.179921] ? print_usage_bug+0xc0/0xc0 [ 40.183976] aa_lookupn_ns+0x88/0x1e0 [ 40.187767] aa_fqlookupn_profile+0x1b9/0x1010 [ 40.192335] ? lru_cache_add+0x417/0xa50 [ 40.196386] ? aa_lookup_profile+0x30/0x30 [ 40.200610] ? __lock_acquire+0x7ec/0x4ec0 [ 40.204833] ? noop_count+0x40/0x40 [ 40.208464] ? rcu_bh_qs+0xc0/0xc0 [ 40.211996] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.217521] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.222963] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.228404] ? mark_held_locks+0x130/0x130 [ 40.232629] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.238153] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.243687] fqlookupn_profile+0x80/0xc0 [ 40.247762] aa_label_strn_parse+0xa3a/0x1230 [ 40.252251] ? aa_label_printk+0x850/0x850 [ 40.256474] ? lockdep_on+0x50/0x50 [ 40.260094] ? graph_lock+0x170/0x170 [ 40.263902] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.269442] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.274887] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.280339] ? graph_lock+0x170/0x170 [ 40.284137] ? find_held_lock+0x36/0x1c0 [ 40.288193] aa_label_parse+0x42/0x50 [ 40.291984] aa_change_profile+0x513/0x3510 [ 40.296297] ? lock_acquire+0x1ed/0x520 [ 40.300273] ? aa_change_hat+0x1a20/0x1a20 [ 40.304523] ? is_bpf_text_address+0xd3/0x170 [ 40.309008] ? __mutex_lock+0x85e/0x1700 [ 40.313058] ? proc_pid_attr_write+0x28a/0x540 [ 40.317629] ? mutex_trylock+0x2b0/0x2b0 [ 40.321676] ? save_stack+0xa9/0xd0 [ 40.325287] ? save_stack+0x43/0xd0 [ 40.328907] ? kasan_kmalloc+0xc7/0xe0 [ 40.332960] ? __kmalloc_track_caller+0x14a/0x750 [ 40.337817] ? memdup_user+0x2c/0xa0 [ 40.341533] ? proc_pid_attr_write+0x198/0x540 [ 40.346101] ? graph_lock+0x170/0x170 [ 40.349892] ? __x64_sys_write+0x73/0xb0 [ 40.353959] ? graph_lock+0x170/0x170 [ 40.357747] ? mark_held_locks+0x130/0x130 [ 40.361974] apparmor_setprocattr+0xaa4/0x1150 [ 40.366560] ? apparmor_task_kill+0xcb0/0xcb0 [ 40.371041] ? lock_downgrade+0x900/0x900 [ 40.375186] ? arch_local_save_flags+0x40/0x40 [ 40.379783] security_setprocattr+0x66/0xc0 [ 40.384100] proc_pid_attr_write+0x301/0x540 [ 40.388502] __vfs_write+0x119/0x9f0 [ 40.392226] ? check_preemption_disabled+0x48/0x200 [ 40.397228] ? proc_loginuid_write+0x4f0/0x4f0 [ 40.401807] ? kernel_read+0x120/0x120 [ 40.405694] ? __lock_is_held+0xb5/0x140 [ 40.409744] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.414748] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.420273] ? __sb_start_write+0x1b2/0x370 [ 40.424602] vfs_write+0x1fc/0x560 [ 40.428136] ksys_write+0x101/0x260 [ 40.431752] ? __ia32_sys_read+0xb0/0xb0 [ 40.435803] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.441244] __x64_sys_write+0x73/0xb0 [ 40.445120] do_syscall_64+0x1b9/0x820 [ 40.448994] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.454344] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.459281] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.464113] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.469126] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.474130] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.479657] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.484663] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.489498] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.494678] RIP: 0033:0x440d49 [ 40.497872] 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 [ 40.516785] RSP: 002b:00007ffcc4860168 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 40.524496] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 40.531758] RDX: 0000000000000009 RSI: 0000000020000100 RDI: 0000000000000003 [ 40.539012] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 40.546266] R10: 0000000001556880 R11: 0000000000000213 R12: 00000000000099f6 [ 40.553521] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 40.561430] Kernel Offset: disabled [ 40.565058] Rebooting in 86400 seconds..