[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 26.274231] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 29.545685] random: sshd: uninitialized urandom read (32 bytes read) [ 29.963509] random: sshd: uninitialized urandom read (32 bytes read) [ 30.599235] random: sshd: uninitialized urandom read (32 bytes read) [ 30.826484] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.70' (ECDSA) to the list of known hosts. [ 36.650452] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 36.781851] audit: type=1400 audit(1537754952.336:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5385 comm="syz-executor235" [ 36.811388] audit: type=1400 audit(1537754952.366:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5386 comm="syz-executor235" executing program executing program [ 36.839056] audit: type=1400 audit(1537754952.396:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5387 comm="syz-executor235" [ 36.866437] audit: type=1400 audit(1537754952.426:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5388 comm="syz-executor235" executing program [ 36.894366] audit: type=1400 audit(1537754952.456:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5389 comm="syz-executor235" executing program executing program [ 36.927781] audit: type=1400 audit(1537754952.486:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5390 comm="syz-executor235" [ 36.960578] audit: type=1400 audit(1537754952.516:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5392 comm="syz-executor235" executing program executing program [ 36.989510] audit: type=1400 audit(1537754952.546:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5393 comm="syz-executor235" [ 37.017706] audit: type=1400 audit(1537754952.576:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5394 comm="syz-executor235" executing program executing program executing program executing program [ 37.046183] audit: type=1400 audit(1537754952.606:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5395 comm="syz-executor235" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 41.020413] ================================================================== [ 41.028067] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 41.034387] Read of size 1 at addr ffff8801d7447400 by task syz-executor235/5752 [ 41.041914] [ 41.043553] CPU: 1 PID: 5752 Comm: syz-executor235 Not tainted 4.19.0-rc5+ #251 [ 41.051117] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.060538] Call Trace: [ 41.063161] dump_stack+0x1c4/0x2b4 [ 41.066825] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.072146] ? printk+0xa7/0xcf [ 41.075427] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.080190] print_address_description.cold.8+0x9/0x1ff [ 41.085785] kasan_report.cold.9+0x242/0x309 [ 41.090194] ? memcmp+0xe3/0x160 [ 41.093666] __asan_report_load1_noabort+0x14/0x20 [ 41.098601] memcmp+0xe3/0x160 [ 41.101868] strnstr+0x4b/0x70 [ 41.105194] __aa_lookupn_ns+0xc1/0x570 [ 41.109199] ? aa_find_ns+0x30/0x30 [ 41.112856] ? lock_acquire+0x1ed/0x520 [ 41.116920] ? __aa_lookupn_ns+0x570/0x570 [ 41.121297] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.126837] ? check_preemption_disabled+0x48/0x200 [ 41.131858] ? kasan_check_read+0x11/0x20 [ 41.136010] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 41.141280] ? rcu_bh_qs+0xc0/0xc0 [ 41.144824] ? print_usage_bug+0xc0/0xc0 [ 41.148925] aa_lookupn_ns+0x88/0x1e0 [ 41.152750] aa_fqlookupn_profile+0x1b9/0x1010 [ 41.157334] ? lru_cache_add+0x417/0xa50 [ 41.161400] ? aa_lookup_profile+0x30/0x30 [ 41.165633] ? __lock_acquire+0x7ec/0x4ec0 [ 41.169891] ? noop_count+0x40/0x40 [ 41.173517] ? rcu_bh_qs+0xc0/0xc0 [ 41.177119] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.182794] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.188263] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.193793] ? mark_held_locks+0x130/0x130 [ 41.198043] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.203638] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.209185] fqlookupn_profile+0x80/0xc0 [ 41.213287] aa_label_strn_parse+0xa3a/0x1230 [ 41.217856] ? aa_label_printk+0x850/0x850 [ 41.222094] ? lockdep_on+0x50/0x50 [ 41.225786] ? graph_lock+0x170/0x170 [ 41.229615] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.235166] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.240616] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.246093] ? graph_lock+0x170/0x170 [ 41.249969] ? find_held_lock+0x36/0x1c0 [ 41.254037] aa_label_parse+0x42/0x50 [ 41.257861] aa_change_profile+0x513/0x3510 [ 41.262197] ? lock_acquire+0x1ed/0x520 [ 41.266228] ? aa_change_hat+0x1a20/0x1a20 [ 41.270617] ? is_bpf_text_address+0xd3/0x170 [ 41.275121] ? __mutex_lock+0x85e/0x1700 [ 41.279280] ? proc_pid_attr_write+0x28a/0x540 [ 41.283877] ? mutex_trylock+0x2b0/0x2b0 [ 41.287948] ? save_stack+0xa9/0xd0 [ 41.291574] ? save_stack+0x43/0xd0 [ 41.295198] ? kasan_kmalloc+0xc7/0xe0 [ 41.299122] ? __kmalloc_track_caller+0x14a/0x750 [ 41.304023] ? memdup_user+0x2c/0xa0 [ 41.307802] ? proc_pid_attr_write+0x198/0x540 [ 41.312385] ? graph_lock+0x170/0x170 [ 41.316186] ? __x64_sys_write+0x73/0xb0 [ 41.320325] ? graph_lock+0x170/0x170 [ 41.324239] ? mark_held_locks+0x130/0x130 [ 41.328544] apparmor_setprocattr+0xaa4/0x1150 [ 41.333188] ? apparmor_task_kill+0xcb0/0xcb0 [ 41.337787] ? lock_downgrade+0x900/0x900 [ 41.341950] ? arch_local_save_flags+0x40/0x40 [ 41.346560] security_setprocattr+0x66/0xc0 [ 41.350887] proc_pid_attr_write+0x301/0x540 [ 41.355307] __vfs_write+0x119/0x9f0 [ 41.359021] ? check_preemption_disabled+0x48/0x200 [ 41.364265] ? proc_loginuid_write+0x4f0/0x4f0 [ 41.368853] ? kernel_read+0x120/0x120 [ 41.372748] ? __lock_is_held+0xb5/0x140 [ 41.376818] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.381839] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.387381] ? __sb_start_write+0x1b2/0x370 [ 41.391727] vfs_write+0x1fc/0x560 [ 41.395294] ksys_write+0x101/0x260 [ 41.398926] ? __ia32_sys_read+0xb0/0xb0 [ 41.402995] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 41.408463] __x64_sys_write+0x73/0xb0 [ 41.412369] do_syscall_64+0x1b9/0x820 [ 41.416539] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.421907] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.426840] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.431688] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.436707] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.441746] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.447301] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.452334] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.457311] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.462499] RIP: 0033:0x440d49 [ 41.465731] 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 [ 41.484660] RSP: 002b:00007fffcd3fb488 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 41.492380] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 41.499657] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 41.506989] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 41.514269] R10: 0000000000d65880 R11: 0000000000000213 R12: 000000000000a01e [ 41.521557] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 41.528845] [ 41.530537] The buggy address belongs to the page: [ 41.535471] page:ffffea00075d11c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 41.543613] flags: 0x2fffc0000000000() [ 41.547503] raw: 02fffc0000000000 0000000000000000 ffffffff075d0101 0000000000000000 [ 41.555449] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 41.563323] page dumped because: kasan: bad access detected [ 41.569025] [ 41.570645] Memory state around the buggy address: [ 41.575573] ffff8801d7447300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.583168] ffff8801d7447380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 41.590525] >ffff8801d7447400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 41.597966] ^ [ 41.601329] ffff8801d7447480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 41.608773] ffff8801d7447500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 41.616130] ================================================================== [ 41.623495] Disabling lock debugging due to kernel taint [ 41.629675] Kernel panic - not syncing: panic_on_warn set ... [ 41.629675] [ 41.637625] CPU: 1 PID: 5752 Comm: syz-executor235 Tainted: G B 4.19.0-rc5+ #251 [ 41.646620] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.655966] Call Trace: [ 41.658559] dump_stack+0x1c4/0x2b4 [ 41.662281] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.667475] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.672263] panic+0x238/0x4e7 [ 41.675466] ? add_taint.cold.5+0x16/0x16 [ 41.679615] ? preempt_schedule+0x4d/0x60 [ 41.683770] ? ___preempt_schedule+0x16/0x18 [ 41.688228] ? trace_hardirqs_on+0xb4/0x310 [ 41.692579] kasan_end_report+0x47/0x4f [ 41.696550] kasan_report.cold.9+0x76/0x309 [ 41.700877] ? memcmp+0xe3/0x160 [ 41.704272] __asan_report_load1_noabort+0x14/0x20 [ 41.709235] memcmp+0xe3/0x160 [ 41.712427] strnstr+0x4b/0x70 [ 41.715628] __aa_lookupn_ns+0xc1/0x570 [ 41.719612] ? aa_find_ns+0x30/0x30 [ 41.723260] ? lock_acquire+0x1ed/0x520 [ 41.727254] ? __aa_lookupn_ns+0x570/0x570 [ 41.731502] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.737103] ? check_preemption_disabled+0x48/0x200 [ 41.742115] ? kasan_check_read+0x11/0x20 [ 41.746274] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 41.751551] ? rcu_bh_qs+0xc0/0xc0 [ 41.755089] ? print_usage_bug+0xc0/0xc0 [ 41.759152] aa_lookupn_ns+0x88/0x1e0 [ 41.762953] aa_fqlookupn_profile+0x1b9/0x1010 [ 41.767532] ? lru_cache_add+0x417/0xa50 [ 41.771607] ? aa_lookup_profile+0x30/0x30 [ 41.775895] ? __lock_acquire+0x7ec/0x4ec0 [ 41.780131] ? noop_count+0x40/0x40 [ 41.783788] ? rcu_bh_qs+0xc0/0xc0 [ 41.787342] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.792880] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.798330] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.803816] ? mark_held_locks+0x130/0x130 [ 41.808117] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.813661] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.819237] fqlookupn_profile+0x80/0xc0 [ 41.823301] aa_label_strn_parse+0xa3a/0x1230 [ 41.827794] ? aa_label_printk+0x850/0x850 [ 41.832030] ? lockdep_on+0x50/0x50 [ 41.835659] ? graph_lock+0x170/0x170 [ 41.839511] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.845043] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.850653] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.856112] ? graph_lock+0x170/0x170 [ 41.859909] ? find_held_lock+0x36/0x1c0 [ 41.863969] aa_label_parse+0x42/0x50 [ 41.867782] aa_change_profile+0x513/0x3510 [ 41.872159] ? lock_acquire+0x1ed/0x520 [ 41.876144] ? aa_change_hat+0x1a20/0x1a20 [ 41.880390] ? is_bpf_text_address+0xd3/0x170 [ 41.884940] ? __mutex_lock+0x85e/0x1700 [ 41.888999] ? proc_pid_attr_write+0x28a/0x540 [ 41.893638] ? mutex_trylock+0x2b0/0x2b0 [ 41.897711] ? save_stack+0xa9/0xd0 [ 41.901343] ? save_stack+0x43/0xd0 [ 41.904966] ? kasan_kmalloc+0xc7/0xe0 [ 41.908854] ? __kmalloc_track_caller+0x14a/0x750 [ 41.913696] ? memdup_user+0x2c/0xa0 [ 41.917439] ? proc_pid_attr_write+0x198/0x540 [ 41.922195] ? graph_lock+0x170/0x170 [ 41.926023] ? __x64_sys_write+0x73/0xb0 [ 41.930081] ? graph_lock+0x170/0x170 [ 41.934055] ? mark_held_locks+0x130/0x130 [ 41.938293] apparmor_setprocattr+0xaa4/0x1150 [ 41.942992] ? apparmor_task_kill+0xcb0/0xcb0 [ 41.947488] ? lock_downgrade+0x900/0x900 [ 41.951636] ? arch_local_save_flags+0x40/0x40 [ 41.956272] security_setprocattr+0x66/0xc0 [ 41.960594] proc_pid_attr_write+0x301/0x540 [ 41.965009] __vfs_write+0x119/0x9f0 [ 41.968757] ? check_preemption_disabled+0x48/0x200 [ 41.973786] ? proc_loginuid_write+0x4f0/0x4f0 [ 41.978379] ? kernel_read+0x120/0x120 [ 41.982273] ? __lock_is_held+0xb5/0x140 [ 41.986339] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.991356] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.996895] ? __sb_start_write+0x1b2/0x370 [ 42.001252] vfs_write+0x1fc/0x560 [ 42.004794] ksys_write+0x101/0x260 [ 42.008430] ? __ia32_sys_read+0xb0/0xb0 [ 42.012706] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 42.018165] __x64_sys_write+0x73/0xb0 [ 42.022063] do_syscall_64+0x1b9/0x820 [ 42.025961] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.031324] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.036266] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.041107] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.046134] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.051248] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.056782] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.061798] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.066664] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.071933] RIP: 0033:0x440d49 [ 42.075125] 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 [ 42.094036] RSP: 002b:00007fffcd3fb488 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 42.101818] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 42.109090] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 42.116358] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 42.123632] R10: 0000000000d65880 R11: 0000000000000213 R12: 000000000000a01e [ 42.131071] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 42.139297] Kernel Offset: disabled [ 42.142931] Rebooting in 86400 seconds..