[....] Starting OpenBSD Secure Shell server: sshd[ 24.569900] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. [ 25.022284] random: sshd: uninitialized urandom read (32 bytes read) [ 25.333767] random: sshd: uninitialized urandom read (32 bytes read) Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 25.922533] sshd (5318) used greatest stack depth: 16872 bytes left [ 25.944449] random: sshd: uninitialized urandom read (32 bytes read) [ 26.150800] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.24' (ECDSA) to the list of known hosts. [ 31.824482] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 31.950346] audit: type=1400 audit(1537746498.503:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5332 comm="syz-executor599" [ 31.968693] audit: type=1400 audit(1537746498.523:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5333 comm="syz-executor599" executing program executing program executing program [ 31.987347] audit: type=1400 audit(1537746498.543:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5334 comm="syz-executor599" [ 32.006044] audit: type=1400 audit(1537746498.563:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5335 comm="syz-executor599" [ 32.024903] audit: type=1400 audit(1537746498.583:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5336 comm="syz-executor599" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 32.043974] audit: type=1400 audit(1537746498.603:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5337 comm="syz-executor599" [ 32.062971] audit: type=1400 audit(1537746498.623:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5338 comm="syz-executor599" [ 32.080395] audit: type=1400 audit(1537746498.623:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5339 comm="syz-executor599" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 32.097708] audit: type=1400 audit(1537746498.623:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5340 comm="syz-executor599" [ 32.115279] audit: type=1400 audit(1537746498.633:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor599" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 32.385097] ================================================================== [ 32.392588] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 32.398732] Read of size 1 at addr ffff8801be63f3b0 by task syz-executor599/5446 [ 32.406240] [ 32.407866] CPU: 0 PID: 5446 Comm: syz-executor599 Not tainted 4.19.0-rc5+ #154 [ 32.415296] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 32.424633] Call Trace: [ 32.427210] dump_stack+0x1c4/0x2b4 [ 32.430824] ? dump_stack_print_info.cold.2+0x52/0x52 [ 32.436000] ? printk+0xa7/0xcf [ 32.439268] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 32.444020] print_address_description.cold.8+0x9/0x1ff [ 32.449374] kasan_report.cold.9+0x242/0x309 [ 32.453769] ? memcmp+0xe3/0x160 [ 32.457126] __asan_report_load1_noabort+0x14/0x20 [ 32.462062] memcmp+0xe3/0x160 [ 32.465258] strnstr+0x4b/0x70 [ 32.468453] __aa_lookupn_ns+0xc1/0x570 [ 32.472418] ? aa_find_ns+0x30/0x30 [ 32.476031] ? lock_acquire+0x1ed/0x520 [ 32.480008] ? __aa_lookupn_ns+0x570/0x570 [ 32.484230] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.489752] ? check_preemption_disabled+0x48/0x200 [ 32.494769] ? kasan_check_read+0x11/0x20 [ 32.498940] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 32.504229] ? print_usage_bug+0xc0/0xc0 [ 32.508295] ? rcu_bh_qs+0xc0/0xc0 [ 32.511827] ? print_usage_bug+0xc0/0xc0 [ 32.515878] aa_lookupn_ns+0x88/0x1e0 [ 32.519668] aa_fqlookupn_profile+0x1b9/0x1010 [ 32.524242] ? aa_lookup_profile+0x30/0x30 [ 32.528462] ? __lock_acquire+0x7ec/0x4ec0 [ 32.532691] ? noop_count+0x40/0x40 [ 32.536323] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.541856] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 32.547294] ? refcount_add_not_zero_checked+0x330/0x330 [ 32.552732] ? mark_held_locks+0x130/0x130 [ 32.556966] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.562491] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 32.568017] fqlookupn_profile+0x80/0xc0 [ 32.572073] aa_label_strn_parse+0xa3a/0x1230 [ 32.576562] ? aa_label_printk+0x850/0x850 [ 32.580793] ? do_raw_spin_unlock+0xa7/0x2f0 [ 32.585202] ? graph_lock+0x170/0x170 [ 32.589001] ? lockdep_on+0x50/0x50 [ 32.592632] ? graph_lock+0x170/0x170 [ 32.596444] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.601988] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 32.607442] ? refcount_add_not_zero_checked+0x330/0x330 [ 32.612880] ? graph_lock+0x170/0x170 [ 32.616669] ? find_held_lock+0x36/0x1c0 [ 32.620718] aa_label_parse+0x42/0x50 [ 32.624508] aa_change_profile+0x513/0x3510 [ 32.628835] ? lock_acquire+0x1ed/0x520 [ 32.632814] ? aa_change_hat+0x1a20/0x1a20 [ 32.637036] ? is_bpf_text_address+0xd3/0x170 [ 32.641523] ? __mutex_lock+0x85e/0x1700 [ 32.645578] ? proc_pid_attr_write+0x28a/0x540 [ 32.650160] ? mutex_trylock+0x2b0/0x2b0 [ 32.654214] ? save_stack+0xa9/0xd0 [ 32.657834] ? save_stack+0x43/0xd0 [ 32.661452] ? kasan_kmalloc+0xc7/0xe0 [ 32.665323] ? __kmalloc_track_caller+0x14a/0x750 [ 32.670168] ? memdup_user+0x2c/0xa0 [ 32.673892] ? proc_pid_attr_write+0x198/0x540 [ 32.678464] ? graph_lock+0x170/0x170 [ 32.682252] ? __ia32_sys_write+0x71/0xb0 [ 32.686385] ? graph_lock+0x170/0x170 [ 32.690184] ? mark_held_locks+0x130/0x130 [ 32.694428] apparmor_setprocattr+0xaa4/0x1150 [ 32.699003] ? apparmor_task_kill+0xcb0/0xcb0 [ 32.703486] ? lock_downgrade+0x900/0x900 [ 32.707629] ? arch_local_save_flags+0x40/0x40 [ 32.712229] security_setprocattr+0x66/0xc0 [ 32.716540] proc_pid_attr_write+0x301/0x540 [ 32.720968] __vfs_write+0x119/0x9f0 [ 32.724671] ? check_preemption_disabled+0x48/0x200 [ 32.729673] ? proc_loginuid_write+0x4f0/0x4f0 [ 32.734241] ? kernel_read+0x120/0x120 [ 32.738121] ? __lock_is_held+0xb5/0x140 [ 32.742226] ? rcu_read_lock_sched_held+0x108/0x120 [ 32.747246] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 32.752769] ? __sb_start_write+0x1b2/0x370 [ 32.757082] vfs_write+0x1fc/0x560 [ 32.760610] ksys_write+0x101/0x260 [ 32.764224] ? __ia32_sys_read+0xb0/0xb0 [ 32.768275] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 32.773714] __ia32_sys_write+0x71/0xb0 [ 32.777682] do_fast_syscall_32+0x34d/0xfb2 [ 32.781992] ? do_int80_syscall_32+0x890/0x890 [ 32.786587] ? entry_SYSENTER_compat+0x68/0x7f [ 32.791162] ? trace_hardirqs_off_caller+0xbb/0x310 [ 32.796274] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.801100] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.805933] ? trace_hardirqs_on_caller+0x310/0x310 [ 32.810939] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 32.815941] ? prepare_exit_to_usermode+0x291/0x3b0 [ 32.820945] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 32.825782] entry_SYSENTER_compat+0x70/0x7f [ 32.830176] RIP: 0023:0xf7f34ca9 [ 32.833529] 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 [ 32.852422] RSP: 002b:00000000ffec38fc EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 32.860163] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000040 [ 32.867421] RDX: 0000000000000009 RSI: 00000000ffec3a44 RDI: 00000000ffec3a4c [ 32.874689] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 32.881945] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 32.889203] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 32.896481] [ 32.898103] The buggy address belongs to the page: [ 32.903016] page:ffffea0006f98fc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 32.911140] flags: 0x2fffc0000000000() [ 32.915022] raw: 02fffc0000000000 0000000000000000 ffffffff06f90101 0000000000000000 [ 32.922889] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 32.930750] page dumped because: kasan: bad access detected [ 32.936441] [ 32.938050] Memory state around the buggy address: [ 32.942963] ffff8801be63f280: f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00 00 00 00 [ 32.950305] ffff8801be63f300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.957648] >ffff8801be63f380: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 [ 32.964989] ^ [ 32.969900] ffff8801be63f400: f2 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 [ 32.977240] ffff8801be63f480: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 32.984580] ================================================================== [ 32.991929] Disabling lock debugging due to kernel taint [ 32.997954] Kernel panic - not syncing: panic_on_warn set ... [ 32.997954] [ 33.005348] CPU: 0 PID: 5446 Comm: syz-executor599 Tainted: G B 4.19.0-rc5+ #154 [ 33.014174] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 33.023516] Call Trace: [ 33.026105] dump_stack+0x1c4/0x2b4 [ 33.029715] ? dump_stack_print_info.cold.2+0x52/0x52 [ 33.034887] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 33.039626] panic+0x238/0x4e7 [ 33.042803] ? add_taint.cold.5+0x16/0x16 [ 33.046936] ? preempt_schedule+0x4d/0x60 [ 33.051077] ? ___preempt_schedule+0x16/0x18 [ 33.055487] ? trace_hardirqs_on+0xb4/0x310 [ 33.059796] kasan_end_report+0x47/0x4f [ 33.063751] kasan_report.cold.9+0x76/0x309 [ 33.068055] ? memcmp+0xe3/0x160 [ 33.071404] __asan_report_load1_noabort+0x14/0x20 [ 33.076324] memcmp+0xe3/0x160 [ 33.079515] strnstr+0x4b/0x70 [ 33.082707] __aa_lookupn_ns+0xc1/0x570 [ 33.086668] ? aa_find_ns+0x30/0x30 [ 33.090281] ? lock_acquire+0x1ed/0x520 [ 33.094248] ? __aa_lookupn_ns+0x570/0x570 [ 33.098466] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.104015] ? check_preemption_disabled+0x48/0x200 [ 33.109035] ? kasan_check_read+0x11/0x20 [ 33.113174] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 33.118436] ? print_usage_bug+0xc0/0xc0 [ 33.122509] ? rcu_bh_qs+0xc0/0xc0 [ 33.126034] ? print_usage_bug+0xc0/0xc0 [ 33.130090] aa_lookupn_ns+0x88/0x1e0 [ 33.133877] aa_fqlookupn_profile+0x1b9/0x1010 [ 33.138444] ? aa_lookup_profile+0x30/0x30 [ 33.142660] ? __lock_acquire+0x7ec/0x4ec0 [ 33.146878] ? noop_count+0x40/0x40 [ 33.150490] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.156010] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 33.161446] ? refcount_add_not_zero_checked+0x330/0x330 [ 33.166888] ? mark_held_locks+0x130/0x130 [ 33.171110] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.176632] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 33.182208] fqlookupn_profile+0x80/0xc0 [ 33.186262] aa_label_strn_parse+0xa3a/0x1230 [ 33.190741] ? aa_label_printk+0x850/0x850 [ 33.194961] ? do_raw_spin_unlock+0xa7/0x2f0 [ 33.199353] ? graph_lock+0x170/0x170 [ 33.203140] ? lockdep_on+0x50/0x50 [ 33.206756] ? graph_lock+0x170/0x170 [ 33.210544] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.216064] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 33.221497] ? refcount_add_not_zero_checked+0x330/0x330 [ 33.226945] ? graph_lock+0x170/0x170 [ 33.230727] ? find_held_lock+0x36/0x1c0 [ 33.234771] aa_label_parse+0x42/0x50 [ 33.238557] aa_change_profile+0x513/0x3510 [ 33.242866] ? lock_acquire+0x1ed/0x520 [ 33.246825] ? aa_change_hat+0x1a20/0x1a20 [ 33.251044] ? is_bpf_text_address+0xd3/0x170 [ 33.255524] ? __mutex_lock+0x85e/0x1700 [ 33.259570] ? proc_pid_attr_write+0x28a/0x540 [ 33.264137] ? mutex_trylock+0x2b0/0x2b0 [ 33.268184] ? save_stack+0xa9/0xd0 [ 33.271811] ? save_stack+0x43/0xd0 [ 33.275422] ? kasan_kmalloc+0xc7/0xe0 [ 33.279311] ? __kmalloc_track_caller+0x14a/0x750 [ 33.284141] ? memdup_user+0x2c/0xa0 [ 33.287844] ? proc_pid_attr_write+0x198/0x540 [ 33.292428] ? graph_lock+0x170/0x170 [ 33.296213] ? __ia32_sys_write+0x71/0xb0 [ 33.300345] ? graph_lock+0x170/0x170 [ 33.304131] ? mark_held_locks+0x130/0x130 [ 33.308373] apparmor_setprocattr+0xaa4/0x1150 [ 33.312949] ? apparmor_task_kill+0xcb0/0xcb0 [ 33.317429] ? lock_downgrade+0x900/0x900 [ 33.321566] ? arch_local_save_flags+0x40/0x40 [ 33.326153] security_setprocattr+0x66/0xc0 [ 33.330464] proc_pid_attr_write+0x301/0x540 [ 33.334869] __vfs_write+0x119/0x9f0 [ 33.338577] ? check_preemption_disabled+0x48/0x200 [ 33.343587] ? proc_loginuid_write+0x4f0/0x4f0 [ 33.348182] ? kernel_read+0x120/0x120 [ 33.352063] ? __lock_is_held+0xb5/0x140 [ 33.356124] ? rcu_read_lock_sched_held+0x108/0x120 [ 33.361132] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 33.366660] ? __sb_start_write+0x1b2/0x370 [ 33.370972] vfs_write+0x1fc/0x560 [ 33.374498] ksys_write+0x101/0x260 [ 33.378108] ? __ia32_sys_read+0xb0/0xb0 [ 33.382162] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 33.387614] __ia32_sys_write+0x71/0xb0 [ 33.391597] do_fast_syscall_32+0x34d/0xfb2 [ 33.395903] ? do_int80_syscall_32+0x890/0x890 [ 33.400495] ? entry_SYSENTER_compat+0x68/0x7f [ 33.405061] ? trace_hardirqs_off_caller+0xbb/0x310 [ 33.410092] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.414932] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.419777] ? trace_hardirqs_on_caller+0x310/0x310 [ 33.424780] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 33.429781] ? prepare_exit_to_usermode+0x291/0x3b0 [ 33.434785] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 33.439621] entry_SYSENTER_compat+0x70/0x7f [ 33.444011] RIP: 0023:0xf7f34ca9 [ 33.447366] 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 [ 33.466269] RSP: 002b:00000000ffec38fc EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 33.473965] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000040 [ 33.481236] RDX: 0000000000000009 RSI: 00000000ffec3a44 RDI: 00000000ffec3a4c [ 33.488496] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 33.495756] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 33.503011] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 33.511181] Kernel Offset: disabled [ 33.514804] Rebooting in 86400 seconds..