[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.521099] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 [ 25.851494] random: sshd: uninitialized urandom read (32 bytes read) syzkaller login: [ 26.151649] random: sshd: uninitialized urandom read (32 bytes read) [ 26.760633] random: sshd: uninitialized urandom read (32 bytes read) [ 26.972327] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.21' (ECDSA) to the list of known hosts. [ 32.659271] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 32.793323] audit: type=1400 audit(1537818909.274:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5324 comm="syz-executor142" [ 32.821106] audit: type=1400 audit(1537818909.304:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5325 comm="syz-executor142" executing program executing program [ 32.848772] audit: type=1400 audit(1537818909.334:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5326 comm="syz-executor142" [ 32.875987] audit: type=1400 audit(1537818909.354:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5327 comm="syz-executor142" executing program executing program [ 32.903173] audit: type=1400 audit(1537818909.384:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5328 comm="syz-executor142" [ 32.930740] audit: type=1400 audit(1537818909.414:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5329 comm="syz-executor142" executing program executing program [ 32.958247] audit: type=1400 audit(1537818909.444:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5330 comm="syz-executor142" [ 32.985943] audit: type=1400 audit(1537818909.464:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5331 comm="syz-executor142" executing program executing program executing program executing program executing program [ 33.013254] audit: type=1400 audit(1537818909.494:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5332 comm="syz-executor142" [ 33.040919] audit: type=1400 audit(1537818909.524:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5333 comm="syz-executor142" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.599115] ================================================================== [ 33.606671] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 33.612827] Read of size 1 at addr ffff8801d8e07400 by task syz-executor142/5385 [ 33.620353] [ 33.621978] CPU: 0 PID: 5385 Comm: syz-executor142 Not tainted 4.19.0-rc5+ #252 [ 33.629452] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.638802] Call Trace: [ 33.641388] dump_stack+0x1c4/0x2b4 [ 33.645006] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.650198] ? printk+0xa7/0xcf [ 33.653515] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 33.658283] print_address_description.cold.8+0x9/0x1ff [ 33.663637] kasan_report.cold.9+0x242/0x309 [ 33.668040] ? memcmp+0xe3/0x160 [ 33.671420] __asan_report_load1_noabort+0x14/0x20 [ 33.676342] memcmp+0xe3/0x160 [ 33.679527] strnstr+0x4b/0x70 [ 33.682712] __aa_lookupn_ns+0xc1/0x570 [ 33.686680] ? aa_find_ns+0x30/0x30 [ 33.690308] ? lock_acquire+0x1ed/0x520 [ 33.694269] ? __aa_lookupn_ns+0x570/0x570 [ 33.698511] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.704040] ? check_preemption_disabled+0x48/0x200 [ 33.709074] ? kasan_check_read+0x11/0x20 [ 33.713226] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 33.718508] ? rcu_bh_qs+0xc0/0xc0 [ 33.722037] ? print_usage_bug+0xc0/0xc0 [ 33.726092] aa_lookupn_ns+0x88/0x1e0 [ 33.729881] aa_fqlookupn_profile+0x1b9/0x1010 [ 33.734449] ? lru_cache_add+0x417/0xa50 [ 33.738501] ? aa_lookup_profile+0x30/0x30 [ 33.742723] ? __lock_acquire+0x7ec/0x4ec0 [ 33.746946] ? noop_count+0x40/0x40 [ 33.750564] ? rcu_bh_qs+0xc0/0xc0 [ 33.754093] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.759620] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 33.765060] ? refcount_add_not_zero_checked+0x330/0x330 [ 33.770502] ? mark_held_locks+0x130/0x130 [ 33.774727] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.780274] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.785813] fqlookupn_profile+0x80/0xc0 [ 33.789886] aa_label_strn_parse+0xa3a/0x1230 [ 33.794381] ? aa_label_printk+0x850/0x850 [ 33.798615] ? lockdep_on+0x50/0x50 [ 33.802232] ? graph_lock+0x170/0x170 [ 33.806023] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.811550] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 33.816991] ? refcount_add_not_zero_checked+0x330/0x330 [ 33.822441] ? graph_lock+0x170/0x170 [ 33.826231] ? find_held_lock+0x36/0x1c0 [ 33.830286] aa_label_parse+0x42/0x50 [ 33.834103] aa_change_profile+0x513/0x3510 [ 33.838432] ? lock_acquire+0x1ed/0x520 [ 33.842399] ? aa_change_hat+0x1a20/0x1a20 [ 33.846626] ? is_bpf_text_address+0xd3/0x170 [ 33.851116] ? __mutex_lock+0x85e/0x1700 [ 33.855165] ? proc_pid_attr_write+0x28a/0x540 [ 33.859736] ? mutex_trylock+0x2b0/0x2b0 [ 33.863787] ? save_stack+0xa9/0xd0 [ 33.867412] ? save_stack+0x43/0xd0 [ 33.871023] ? kasan_kmalloc+0xc7/0xe0 [ 33.874903] ? __kmalloc_track_caller+0x14a/0x750 [ 33.879736] ? memdup_user+0x2c/0xa0 [ 33.883436] ? proc_pid_attr_write+0x198/0x540 [ 33.888008] ? graph_lock+0x170/0x170 [ 33.891801] ? __x64_sys_write+0x73/0xb0 [ 33.895854] ? graph_lock+0x170/0x170 [ 33.899645] ? mark_held_locks+0x130/0x130 [ 33.903901] apparmor_setprocattr+0xaa4/0x1150 [ 33.908482] ? apparmor_task_kill+0xcb0/0xcb0 [ 33.912968] ? lock_downgrade+0x900/0x900 [ 33.917119] ? arch_local_save_flags+0x40/0x40 [ 33.921709] security_setprocattr+0x66/0xc0 [ 33.926026] proc_pid_attr_write+0x301/0x540 [ 33.930438] __vfs_write+0x119/0x9f0 [ 33.934143] ? check_preemption_disabled+0x48/0x200 [ 33.939148] ? proc_loginuid_write+0x4f0/0x4f0 [ 33.943729] ? kernel_read+0x120/0x120 [ 33.947620] ? __lock_is_held+0xb5/0x140 [ 33.952020] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.957030] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.962568] ? __sb_start_write+0x1b2/0x370 [ 33.966886] vfs_write+0x1fc/0x560 [ 33.970434] ksys_write+0x101/0x260 [ 33.974064] ? __ia32_sys_read+0xb0/0xb0 [ 33.978116] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 33.983561] __x64_sys_write+0x73/0xb0 [ 33.987442] do_syscall_64+0x1b9/0x820 [ 33.991321] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 33.996675] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.001604] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.006436] ? trace_hardirqs_on_caller+0x310/0x310 [ 34.011443] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.016449] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.021975] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.026982] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.031826] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.037010] RIP: 0033:0x440d49 [ 34.040197] 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 [ 34.059089] RSP: 002b:00007ffe1431d368 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 34.066802] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 34.074087] RDX: 0000000000000009 RSI: 0000000020000100 RDI: 0000000000000003 [ 34.081347] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 34.088606] R10: 0000000001581880 R11: 0000000000000213 R12: 000000000000831a [ 34.095891] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 34.103164] [ 34.104774] The buggy address belongs to the page: [ 34.109703] page:ffffea00076381c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 34.117839] flags: 0x2fffc0000000000() [ 34.121722] raw: 02fffc0000000000 0000000000000000 ffffffff07630101 0000000000000000 [ 34.129595] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 34.137459] page dumped because: kasan: bad access detected [ 34.143149] [ 34.144760] Memory state around the buggy address: [ 34.149697] ffff8801d8e07300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 34.157059] ffff8801d8e07380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 34.164422] >ffff8801d8e07400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 34.171763] ^ [ 34.175115] ffff8801d8e07480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 34.182460] ffff8801d8e07500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 34.189821] ================================================================== [ 34.197172] Disabling lock debugging due to kernel taint [ 34.203359] Kernel panic - not syncing: panic_on_warn set ... [ 34.203359] [ 34.210744] CPU: 0 PID: 5385 Comm: syz-executor142 Tainted: G B 4.19.0-rc5+ #252 [ 34.219576] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 34.228917] Call Trace: [ 34.231496] dump_stack+0x1c4/0x2b4 [ 34.235113] ? dump_stack_print_info.cold.2+0x52/0x52 [ 34.240295] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 34.245043] panic+0x238/0x4e7 [ 34.248224] ? add_taint.cold.5+0x16/0x16 [ 34.252363] ? preempt_schedule+0x4d/0x60 [ 34.256498] ? ___preempt_schedule+0x16/0x18 [ 34.260896] ? trace_hardirqs_on+0xb4/0x310 [ 34.265205] kasan_end_report+0x47/0x4f [ 34.269164] kasan_report.cold.9+0x76/0x309 [ 34.273470] ? memcmp+0xe3/0x160 [ 34.276824] __asan_report_load1_noabort+0x14/0x20 [ 34.281856] memcmp+0xe3/0x160 [ 34.285042] strnstr+0x4b/0x70 [ 34.288222] __aa_lookupn_ns+0xc1/0x570 [ 34.292188] ? aa_find_ns+0x30/0x30 [ 34.295809] ? lock_acquire+0x1ed/0x520 [ 34.299772] ? __aa_lookupn_ns+0x570/0x570 [ 34.304010] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.309545] ? check_preemption_disabled+0x48/0x200 [ 34.314547] ? kasan_check_read+0x11/0x20 [ 34.318703] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 34.323984] ? rcu_bh_qs+0xc0/0xc0 [ 34.327511] ? print_usage_bug+0xc0/0xc0 [ 34.331560] aa_lookupn_ns+0x88/0x1e0 [ 34.335350] aa_fqlookupn_profile+0x1b9/0x1010 [ 34.339918] ? lru_cache_add+0x417/0xa50 [ 34.343969] ? aa_lookup_profile+0x30/0x30 [ 34.348190] ? __lock_acquire+0x7ec/0x4ec0 [ 34.352429] ? noop_count+0x40/0x40 [ 34.356058] ? rcu_bh_qs+0xc0/0xc0 [ 34.359590] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.365113] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 34.370565] ? refcount_add_not_zero_checked+0x330/0x330 [ 34.376002] ? mark_held_locks+0x130/0x130 [ 34.380225] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.385748] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 34.391272] fqlookupn_profile+0x80/0xc0 [ 34.395320] aa_label_strn_parse+0xa3a/0x1230 [ 34.399808] ? aa_label_printk+0x850/0x850 [ 34.404030] ? lockdep_on+0x50/0x50 [ 34.407642] ? graph_lock+0x170/0x170 [ 34.411432] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.416958] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 34.422414] ? refcount_add_not_zero_checked+0x330/0x330 [ 34.427862] ? graph_lock+0x170/0x170 [ 34.431650] ? find_held_lock+0x36/0x1c0 [ 34.435704] aa_label_parse+0x42/0x50 [ 34.439494] aa_change_profile+0x513/0x3510 [ 34.443811] ? lock_acquire+0x1ed/0x520 [ 34.447776] ? aa_change_hat+0x1a20/0x1a20 [ 34.452009] ? is_bpf_text_address+0xd3/0x170 [ 34.456512] ? __mutex_lock+0x85e/0x1700 [ 34.460567] ? proc_pid_attr_write+0x28a/0x540 [ 34.465140] ? mutex_trylock+0x2b0/0x2b0 [ 34.469203] ? save_stack+0xa9/0xd0 [ 34.472820] ? save_stack+0x43/0xd0 [ 34.476449] ? kasan_kmalloc+0xc7/0xe0 [ 34.480325] ? __kmalloc_track_caller+0x14a/0x750 [ 34.485156] ? memdup_user+0x2c/0xa0 [ 34.488861] ? proc_pid_attr_write+0x198/0x540 [ 34.493429] ? graph_lock+0x170/0x170 [ 34.497215] ? __x64_sys_write+0x73/0xb0 [ 34.501263] ? graph_lock+0x170/0x170 [ 34.505050] ? mark_held_locks+0x130/0x130 [ 34.509273] apparmor_setprocattr+0xaa4/0x1150 [ 34.513845] ? apparmor_task_kill+0xcb0/0xcb0 [ 34.518333] ? lock_downgrade+0x900/0x900 [ 34.522472] ? arch_local_save_flags+0x40/0x40 [ 34.527052] security_setprocattr+0x66/0xc0 [ 34.531379] proc_pid_attr_write+0x301/0x540 [ 34.535776] __vfs_write+0x119/0x9f0 [ 34.539484] ? check_preemption_disabled+0x48/0x200 [ 34.544490] ? proc_loginuid_write+0x4f0/0x4f0 [ 34.549062] ? kernel_read+0x120/0x120 [ 34.552947] ? __lock_is_held+0xb5/0x140 [ 34.556998] ? rcu_read_lock_sched_held+0x108/0x120 [ 34.562002] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.567525] ? __sb_start_write+0x1b2/0x370 [ 34.571835] vfs_write+0x1fc/0x560 [ 34.575373] ksys_write+0x101/0x260 [ 34.578989] ? __ia32_sys_read+0xb0/0xb0 [ 34.583036] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 34.588475] __x64_sys_write+0x73/0xb0 [ 34.592351] do_syscall_64+0x1b9/0x820 [ 34.596251] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 34.601607] ? syscall_return_slowpath+0x5e0/0x5e0 [ 34.606521] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.611353] ? trace_hardirqs_on_caller+0x310/0x310 [ 34.616359] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 34.621366] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 34.626894] ? prepare_exit_to_usermode+0x291/0x3b0 [ 34.631898] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 34.636744] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 34.641926] RIP: 0033:0x440d49 [ 34.645112] 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 [ 34.664017] RSP: 002b:00007ffe1431d368 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 34.671742] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 34.679004] RDX: 0000000000000009 RSI: 0000000020000100 RDI: 0000000000000003 [ 34.686265] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 34.693522] R10: 0000000001581880 R11: 0000000000000213 R12: 000000000000831a [ 34.700777] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 34.709040] Kernel Offset: disabled [ 34.712665] Rebooting in 86400 seconds..