[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.566369] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.534472] random: sshd: uninitialized urandom read (32 bytes read) [ 29.011116] random: sshd: uninitialized urandom read (32 bytes read) [ 29.626457] random: sshd: uninitialized urandom read (32 bytes read) [ 31.945809] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.98' (ECDSA) to the list of known hosts. [ 37.505688] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 37.633441] audit: type=1400 audit(1537819072.125:2): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5338 comm="syz-executor505" [ 37.660425] audit: type=1400 audit(1537819072.155:3): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5339 comm="syz-executor505" executing program executing program [ 37.687640] audit: type=1400 audit(1537819072.175:4): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5340 comm="syz-executor505" [ 37.716093] audit: type=1400 audit(1537819072.205:5): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor505" executing program executing program [ 37.743649] audit: type=1400 audit(1537819072.235:6): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5342 comm="syz-executor505" [ 37.771680] audit: type=1400 audit(1537819072.265:7): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5343 comm="syz-executor505" executing program executing program [ 37.799611] audit: type=1400 audit(1537819072.285:8): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5344 comm="syz-executor505" [ 37.826886] audit: type=1400 audit(1537819072.315:9): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5345 comm="syz-executor505" executing program executing program executing program executing program executing program [ 37.854269] audit: type=1400 audit(1537819072.345:10): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5346 comm="syz-executor505" [ 37.881736] audit: type=1400 audit(1537819072.375:11): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5347 comm="syz-executor505" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program 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.468085] ================================================================== [ 39.475603] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 39.481738] Read of size 1 at addr ffff8801baabf400 by task syz-executor505/5487 [ 39.489254] [ 39.490882] CPU: 1 PID: 5487 Comm: syz-executor505 Not tainted 4.19.0-rc5+ #252 [ 39.498307] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.507644] Call Trace: [ 39.510220] dump_stack+0x1c4/0x2b4 [ 39.513843] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.519021] ? printk+0xa7/0xcf [ 39.522338] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 39.527092] print_address_description.cold.8+0x9/0x1ff [ 39.532462] kasan_report.cold.9+0x242/0x309 [ 39.536860] ? memcmp+0xe3/0x160 [ 39.540254] __asan_report_load1_noabort+0x14/0x20 [ 39.545172] memcmp+0xe3/0x160 [ 39.548353] strnstr+0x4b/0x70 [ 39.551547] __aa_lookupn_ns+0xc1/0x570 [ 39.555527] ? aa_find_ns+0x30/0x30 [ 39.559146] ? lock_acquire+0x1ed/0x520 [ 39.563107] ? __aa_lookupn_ns+0x570/0x570 [ 39.567332] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.572855] ? check_preemption_disabled+0x48/0x200 [ 39.577862] ? kasan_check_read+0x11/0x20 [ 39.582001] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 39.587264] ? rcu_bh_qs+0xc0/0xc0 [ 39.590792] ? print_usage_bug+0xc0/0xc0 [ 39.594861] aa_lookupn_ns+0x88/0x1e0 [ 39.598652] aa_fqlookupn_profile+0x1b9/0x1010 [ 39.603255] ? lru_cache_add+0x417/0xa50 [ 39.607309] ? aa_lookup_profile+0x30/0x30 [ 39.611538] ? __lock_acquire+0x7ec/0x4ec0 [ 39.615762] ? noop_count+0x40/0x40 [ 39.619376] ? rcu_bh_qs+0xc0/0xc0 [ 39.622910] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.628436] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.633901] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.639356] ? mark_held_locks+0x130/0x130 [ 39.643581] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.649103] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.654629] fqlookupn_profile+0x80/0xc0 [ 39.658680] aa_label_strn_parse+0xa3a/0x1230 [ 39.663165] ? aa_label_printk+0x850/0x850 [ 39.667390] ? lockdep_on+0x50/0x50 [ 39.671004] ? graph_lock+0x170/0x170 [ 39.674796] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.680321] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.685778] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.691218] ? graph_lock+0x170/0x170 [ 39.695015] ? find_held_lock+0x36/0x1c0 [ 39.699083] aa_label_parse+0x42/0x50 [ 39.702876] aa_change_profile+0x513/0x3510 [ 39.707187] ? lock_acquire+0x1ed/0x520 [ 39.711160] ? aa_change_hat+0x1a20/0x1a20 [ 39.715386] ? is_bpf_text_address+0xd3/0x170 [ 39.719873] ? __mutex_lock+0x85e/0x1700 [ 39.723931] ? proc_pid_attr_write+0x28a/0x540 [ 39.728512] ? mutex_trylock+0x2b0/0x2b0 [ 39.732572] ? save_stack+0xa9/0xd0 [ 39.736190] ? save_stack+0x43/0xd0 [ 39.739799] ? kasan_kmalloc+0xc7/0xe0 [ 39.743676] ? __kmalloc_track_caller+0x14a/0x750 [ 39.748504] ? memdup_user+0x2c/0xa0 [ 39.752231] ? proc_pid_attr_write+0x198/0x540 [ 39.756802] ? graph_lock+0x170/0x170 [ 39.760601] ? __x64_sys_write+0x73/0xb0 [ 39.764676] ? graph_lock+0x170/0x170 [ 39.768463] ? mark_held_locks+0x130/0x130 [ 39.772692] apparmor_setprocattr+0xa8b/0x1150 [ 39.777285] ? apparmor_task_kill+0xcb0/0xcb0 [ 39.781775] ? lock_downgrade+0x900/0x900 [ 39.785915] ? arch_local_save_flags+0x40/0x40 [ 39.790503] security_setprocattr+0x66/0xc0 [ 39.794827] proc_pid_attr_write+0x301/0x540 [ 39.799228] __vfs_write+0x119/0x9f0 [ 39.802927] ? check_preemption_disabled+0x48/0x200 [ 39.807929] ? proc_loginuid_write+0x4f0/0x4f0 [ 39.812532] ? kernel_read+0x120/0x120 [ 39.816415] ? __lock_is_held+0xb5/0x140 [ 39.820468] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.825473] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.830998] ? __sb_start_write+0x1b2/0x370 [ 39.835310] vfs_write+0x1fc/0x560 [ 39.838858] ksys_write+0x101/0x260 [ 39.842479] ? __ia32_sys_read+0xb0/0xb0 [ 39.846537] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.851984] __x64_sys_write+0x73/0xb0 [ 39.855862] do_syscall_64+0x1b9/0x820 [ 39.859740] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 39.865267] ? syscall_return_slowpath+0x5e0/0x5e0 [ 39.870183] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.875013] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.880021] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.885053] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.890580] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.895587] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.900421] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 39.905597] RIP: 0033:0x441229 [ 39.908779] Code: e8 8c b2 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 8b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 39.927665] RSP: 002b:00007fff2e9cb148 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 39.935364] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441229 [ 39.942625] RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000003 [ 39.949896] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 39.957156] R10: 0000000001cb1880 R11: 0000000000000213 R12: 0000000000000095 [ 39.964409] R13: 0000000000009a10 R14: 0000000000000000 R15: 0000000000000000 [ 39.971668] [ 39.973278] The buggy address belongs to the page: [ 39.978193] page:ffffea0006eaafc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 39.986318] flags: 0x2fffc0000000000() [ 39.990192] raw: 02fffc0000000000 0000000000000000 ffffffff06ea0101 0000000000000000 [ 39.998064] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 40.005922] page dumped because: kasan: bad access detected [ 40.011609] [ 40.013220] Memory state around the buggy address: [ 40.018131] ffff8801baabf300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 40.025471] ffff8801baabf380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 40.032830] >ffff8801baabf400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 40.040169] ^ [ 40.043545] ffff8801baabf480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 40.050888] ffff8801baabf500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 40.058226] ================================================================== [ 40.065569] Disabling lock debugging due to kernel taint [ 40.071458] Kernel panic - not syncing: panic_on_warn set ... [ 40.071458] [ 40.078846] CPU: 1 PID: 5487 Comm: syz-executor505 Tainted: G B 4.19.0-rc5+ #252 [ 40.087682] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.097028] Call Trace: [ 40.099607] dump_stack+0x1c4/0x2b4 [ 40.103222] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.108402] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 40.113142] panic+0x238/0x4e7 [ 40.116318] ? add_taint.cold.5+0x16/0x16 [ 40.120451] ? preempt_schedule+0x4d/0x60 [ 40.124616] ? ___preempt_schedule+0x16/0x18 [ 40.129015] ? trace_hardirqs_on+0xb4/0x310 [ 40.133340] kasan_end_report+0x47/0x4f [ 40.137296] kasan_report.cold.9+0x76/0x309 [ 40.141602] ? memcmp+0xe3/0x160 [ 40.144953] __asan_report_load1_noabort+0x14/0x20 [ 40.149868] memcmp+0xe3/0x160 [ 40.153046] strnstr+0x4b/0x70 [ 40.156227] __aa_lookupn_ns+0xc1/0x570 [ 40.160187] ? aa_find_ns+0x30/0x30 [ 40.163801] ? lock_acquire+0x1ed/0x520 [ 40.167761] ? __aa_lookupn_ns+0x570/0x570 [ 40.171982] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.177503] ? check_preemption_disabled+0x48/0x200 [ 40.182513] ? kasan_check_read+0x11/0x20 [ 40.186659] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 40.191921] ? rcu_bh_qs+0xc0/0xc0 [ 40.195445] ? print_usage_bug+0xc0/0xc0 [ 40.199495] aa_lookupn_ns+0x88/0x1e0 [ 40.203293] aa_fqlookupn_profile+0x1b9/0x1010 [ 40.207860] ? lru_cache_add+0x417/0xa50 [ 40.211905] ? aa_lookup_profile+0x30/0x30 [ 40.216140] ? __lock_acquire+0x7ec/0x4ec0 [ 40.220359] ? noop_count+0x40/0x40 [ 40.223970] ? rcu_bh_qs+0xc0/0xc0 [ 40.227496] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.233025] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.238467] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.243900] ? mark_held_locks+0x130/0x130 [ 40.248124] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.253645] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.259168] fqlookupn_profile+0x80/0xc0 [ 40.263215] aa_label_strn_parse+0xa3a/0x1230 [ 40.267711] ? aa_label_printk+0x850/0x850 [ 40.271930] ? lockdep_on+0x50/0x50 [ 40.275547] ? graph_lock+0x170/0x170 [ 40.279331] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.284851] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.290286] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.295718] ? graph_lock+0x170/0x170 [ 40.299502] ? find_held_lock+0x36/0x1c0 [ 40.303565] aa_label_parse+0x42/0x50 [ 40.307360] aa_change_profile+0x513/0x3510 [ 40.311666] ? lock_acquire+0x1ed/0x520 [ 40.315634] ? aa_change_hat+0x1a20/0x1a20 [ 40.319867] ? is_bpf_text_address+0xd3/0x170 [ 40.324365] ? __mutex_lock+0x85e/0x1700 [ 40.328425] ? proc_pid_attr_write+0x28a/0x540 [ 40.332995] ? mutex_trylock+0x2b0/0x2b0 [ 40.337042] ? save_stack+0xa9/0xd0 [ 40.340667] ? save_stack+0x43/0xd0 [ 40.344291] ? kasan_kmalloc+0xc7/0xe0 [ 40.348162] ? __kmalloc_track_caller+0x14a/0x750 [ 40.352989] ? memdup_user+0x2c/0xa0 [ 40.356684] ? proc_pid_attr_write+0x198/0x540 [ 40.361421] ? graph_lock+0x170/0x170 [ 40.365207] ? __x64_sys_write+0x73/0xb0 [ 40.369248] ? graph_lock+0x170/0x170 [ 40.373036] ? mark_held_locks+0x130/0x130 [ 40.377274] apparmor_setprocattr+0xa8b/0x1150 [ 40.381856] ? apparmor_task_kill+0xcb0/0xcb0 [ 40.386334] ? lock_downgrade+0x900/0x900 [ 40.390469] ? arch_local_save_flags+0x40/0x40 [ 40.395066] security_setprocattr+0x66/0xc0 [ 40.399374] proc_pid_attr_write+0x301/0x540 [ 40.403766] __vfs_write+0x119/0x9f0 [ 40.407462] ? check_preemption_disabled+0x48/0x200 [ 40.412459] ? proc_loginuid_write+0x4f0/0x4f0 [ 40.417024] ? kernel_read+0x120/0x120 [ 40.420900] ? __lock_is_held+0xb5/0x140 [ 40.424965] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.429974] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.435512] ? __sb_start_write+0x1b2/0x370 [ 40.439832] vfs_write+0x1fc/0x560 [ 40.443355] ksys_write+0x101/0x260 [ 40.446971] ? __ia32_sys_read+0xb0/0xb0 [ 40.451016] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.456454] __x64_sys_write+0x73/0xb0 [ 40.460332] do_syscall_64+0x1b9/0x820 [ 40.464204] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.469555] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.474467] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.479295] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.484294] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.489296] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.494817] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.499833] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.504666] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.509847] RIP: 0033:0x441229 [ 40.513053] Code: e8 8c b2 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 8b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 40.531938] RSP: 002b:00007fff2e9cb148 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 40.539805] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441229 [ 40.547074] RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000003 [ 40.554327] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 40.561579] R10: 0000000001cb1880 R11: 0000000000000213 R12: 0000000000000095 [ 40.568832] R13: 0000000000009a10 R14: 0000000000000000 R15: 0000000000000000 [ 40.577121] Kernel Offset: disabled [ 40.580746] Rebooting in 86400 seconds..