[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 24.657119] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.999933] random: sshd: uninitialized urandom read (32 bytes read) [ 33.212331] random: sshd: uninitialized urandom read (32 bytes read) [ 33.823550] random: sshd: uninitialized urandom read (32 bytes read) [ 34.037431] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.70' (ECDSA) to the list of known hosts. [ 39.661312] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 39.785253] audit: type=1400 audit(1537856950.524:2): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5330 comm="syz-executor351" [ 39.812101] audit: type=1400 audit(1537856950.544:3): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5331 comm="syz-executor351" executing program executing program [ 39.838639] audit: type=1400 audit(1537856950.574:4): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5332 comm="syz-executor351" [ 39.865417] audit: type=1400 audit(1537856950.604:5): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5333 comm="syz-executor351" executing program executing program [ 39.891946] audit: type=1400 audit(1537856950.624:6): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5334 comm="syz-executor351" [ 39.919510] audit: type=1400 audit(1537856950.654:7): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5335 comm="syz-executor351" executing program executing program [ 39.946789] audit: type=1400 audit(1537856950.684:8): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5336 comm="syz-executor351" [ 39.973881] audit: type=1400 audit(1537856950.714:9): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5337 comm="syz-executor351" executing program executing program executing program executing program executing program [ 40.000686] audit: type=1400 audit(1537856950.734:10): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5338 comm="syz-executor351" [ 40.027508] audit: type=1400 audit(1537856950.764:11): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5339 comm="syz-executor351" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 40.540056] ================================================================== [ 40.547534] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 40.553663] Read of size 1 at addr ffff8801d8a17400 by task syz-executor351/5387 [ 40.561173] [ 40.562788] CPU: 0 PID: 5387 Comm: syz-executor351 Not tainted 4.19.0-rc5+ #252 [ 40.570212] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.579546] Call Trace: [ 40.582118] dump_stack+0x1c4/0x2b4 [ 40.585732] ? dump_stack_print_info.cold.2+0x52/0x52 [ 40.590921] ? printk+0xa7/0xcf [ 40.594188] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.598937] print_address_description.cold.8+0x9/0x1ff [ 40.604290] kasan_report.cold.9+0x242/0x309 [ 40.608683] ? memcmp+0xe3/0x160 [ 40.612038] __asan_report_load1_noabort+0x14/0x20 [ 40.616951] memcmp+0xe3/0x160 [ 40.620129] strnstr+0x4b/0x70 [ 40.623312] __aa_lookupn_ns+0xc1/0x570 [ 40.627274] ? aa_find_ns+0x30/0x30 [ 40.630891] ? lock_acquire+0x1ed/0x520 [ 40.634849] ? __aa_lookupn_ns+0x570/0x570 [ 40.639071] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.644625] ? check_preemption_disabled+0x48/0x200 [ 40.649631] ? kasan_check_read+0x11/0x20 [ 40.653877] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 40.659169] ? rcu_bh_qs+0xc0/0xc0 [ 40.662697] ? print_usage_bug+0xc0/0xc0 [ 40.666776] aa_lookupn_ns+0x88/0x1e0 [ 40.670578] aa_fqlookupn_profile+0x1b9/0x1010 [ 40.675159] ? lru_cache_add+0x417/0xa50 [ 40.679216] ? aa_lookup_profile+0x30/0x30 [ 40.683433] ? __lock_acquire+0x7ec/0x4ec0 [ 40.687660] ? noop_count+0x40/0x40 [ 40.691275] ? rcu_bh_qs+0xc0/0xc0 [ 40.694807] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.700329] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.705776] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.711212] ? mark_held_locks+0x130/0x130 [ 40.715433] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.720957] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.726481] fqlookupn_profile+0x80/0xc0 [ 40.730537] aa_label_strn_parse+0xa3a/0x1230 [ 40.735029] ? aa_label_printk+0x850/0x850 [ 40.739259] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 40.745039] ? kasan_check_read+0x11/0x20 [ 40.749182] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 40.754443] ? rcu_bh_qs+0xc0/0xc0 [ 40.757968] ? rcu_bh_qs+0xc0/0xc0 [ 40.761494] ? unwind_dump+0x190/0x190 [ 40.765369] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.770924] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 40.776449] ? refcount_add_not_zero_checked+0x330/0x330 [ 40.781886] ? unwind_get_return_address+0x61/0xa0 [ 40.786801] ? __save_stack_trace+0x8d/0xf0 [ 40.791110] aa_label_parse+0x42/0x50 [ 40.794906] aa_change_profile+0x513/0x3510 [ 40.799215] ? save_stack+0x43/0xd0 [ 40.802836] ? kasan_kmalloc+0xc7/0xe0 [ 40.806709] ? apparmor_setprocattr+0x2ab/0x1150 [ 40.811453] ? __vfs_write+0x119/0x9f0 [ 40.815326] ? ksys_write+0x1e1/0x260 [ 40.819125] ? do_syscall_64+0x1b9/0x820 [ 40.823171] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.828533] ? aa_change_hat+0x1a20/0x1a20 [ 40.832784] ? find_held_lock+0x36/0x1c0 [ 40.836835] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.842362] ? check_preemption_disabled+0x48/0x200 [ 40.847378] ? check_preemption_disabled+0x48/0x200 [ 40.852403] ? __lock_is_held+0xb5/0x140 [ 40.856462] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.861463] ? __kmalloc+0x5de/0x760 [ 40.865163] ? graph_lock+0x170/0x170 [ 40.868961] ? mark_held_locks+0x130/0x130 [ 40.873184] apparmor_setprocattr+0xa8b/0x1150 [ 40.877771] ? apparmor_task_kill+0xcb0/0xcb0 [ 40.882254] ? lock_downgrade+0x900/0x900 [ 40.886396] ? arch_local_save_flags+0x40/0x40 [ 40.890979] security_setprocattr+0x66/0xc0 [ 40.895325] proc_pid_attr_write+0x301/0x540 [ 40.899725] __vfs_write+0x119/0x9f0 [ 40.903436] ? check_preemption_disabled+0x48/0x200 [ 40.908435] ? proc_loginuid_write+0x4f0/0x4f0 [ 40.913012] ? kernel_read+0x120/0x120 [ 40.916901] ? __lock_is_held+0xb5/0x140 [ 40.920968] ? rcu_read_lock_sched_held+0x108/0x120 [ 40.925972] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.931493] ? __sb_start_write+0x1b2/0x370 [ 40.935806] vfs_write+0x1fc/0x560 [ 40.939335] ksys_write+0x101/0x260 [ 40.942954] ? __ia32_sys_read+0xb0/0xb0 [ 40.947006] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 40.952447] __x64_sys_write+0x73/0xb0 [ 40.956322] do_syscall_64+0x1b9/0x820 [ 40.960214] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.965566] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.970509] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.975347] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.980355] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.985360] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.990892] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.995912] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.000753] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.005931] RIP: 0033:0x440d49 [ 41.009107] 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.027993] RSP: 002b:00007ffc7b26f048 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 41.035685] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 41.042936] RDX: 000000000000002c RSI: 00000000200000c0 RDI: 0000000000000003 [ 41.050189] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 41.057442] R10: 0000000000824880 R11: 0000000000000213 R12: 0000000000009e37 [ 41.064693] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 41.071981] [ 41.073602] The buggy address belongs to the page: [ 41.078515] page:ffffea00076285c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 41.086638] flags: 0x2fffc0000000000() [ 41.090510] raw: 02fffc0000000000 0000000000000000 ffffffff07620101 0000000000000000 [ 41.098374] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 41.106233] page dumped because: kasan: bad access detected [ 41.111934] [ 41.113562] Memory state around the buggy address: [ 41.118474] ffff8801d8a17300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.125815] ffff8801d8a17380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 41.133164] >ffff8801d8a17400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 41.140510] ^ [ 41.143858] ffff8801d8a17480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 41.151200] ffff8801d8a17500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 41.158537] ================================================================== [ 41.165891] Disabling lock debugging due to kernel taint [ 41.172105] Kernel panic - not syncing: panic_on_warn set ... [ 41.172105] [ 41.179481] CPU: 0 PID: 5387 Comm: syz-executor351 Tainted: G B 4.19.0-rc5+ #252 [ 41.188294] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.197626] Call Trace: [ 41.200198] dump_stack+0x1c4/0x2b4 [ 41.203821] ? dump_stack_print_info.cold.2+0x52/0x52 [ 41.208997] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 41.213738] panic+0x238/0x4e7 [ 41.216925] ? add_taint.cold.5+0x16/0x16 [ 41.221057] ? preempt_schedule+0x4d/0x60 [ 41.225191] ? ___preempt_schedule+0x16/0x18 [ 41.229586] ? trace_hardirqs_on+0xb4/0x310 [ 41.233902] kasan_end_report+0x47/0x4f [ 41.237869] kasan_report.cold.9+0x76/0x309 [ 41.242172] ? memcmp+0xe3/0x160 [ 41.245523] __asan_report_load1_noabort+0x14/0x20 [ 41.250434] memcmp+0xe3/0x160 [ 41.253610] strnstr+0x4b/0x70 [ 41.256816] __aa_lookupn_ns+0xc1/0x570 [ 41.260779] ? aa_find_ns+0x30/0x30 [ 41.264389] ? lock_acquire+0x1ed/0x520 [ 41.268344] ? __aa_lookupn_ns+0x570/0x570 [ 41.272565] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.278085] ? check_preemption_disabled+0x48/0x200 [ 41.283086] ? kasan_check_read+0x11/0x20 [ 41.287236] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 41.292497] ? rcu_bh_qs+0xc0/0xc0 [ 41.296024] ? print_usage_bug+0xc0/0xc0 [ 41.300071] aa_lookupn_ns+0x88/0x1e0 [ 41.303854] aa_fqlookupn_profile+0x1b9/0x1010 [ 41.308419] ? lru_cache_add+0x417/0xa50 [ 41.312467] ? aa_lookup_profile+0x30/0x30 [ 41.316681] ? __lock_acquire+0x7ec/0x4ec0 [ 41.320896] ? noop_count+0x40/0x40 [ 41.324504] ? rcu_bh_qs+0xc0/0xc0 [ 41.328030] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.333550] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.338981] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.344412] ? mark_held_locks+0x130/0x130 [ 41.348630] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.354149] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.359673] fqlookupn_profile+0x80/0xc0 [ 41.363760] aa_label_strn_parse+0xa3a/0x1230 [ 41.368242] ? aa_label_printk+0x850/0x850 [ 41.372464] ? rcu_read_unlock_special.part.39+0x11f0/0x11f0 [ 41.378243] ? kasan_check_read+0x11/0x20 [ 41.382388] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 41.387653] ? rcu_bh_qs+0xc0/0xc0 [ 41.391176] ? rcu_bh_qs+0xc0/0xc0 [ 41.394696] ? unwind_dump+0x190/0x190 [ 41.398571] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.404092] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 41.409524] ? refcount_add_not_zero_checked+0x330/0x330 [ 41.414964] ? unwind_get_return_address+0x61/0xa0 [ 41.419881] ? __save_stack_trace+0x8d/0xf0 [ 41.424187] aa_label_parse+0x42/0x50 [ 41.427974] aa_change_profile+0x513/0x3510 [ 41.432279] ? save_stack+0x43/0xd0 [ 41.435908] ? kasan_kmalloc+0xc7/0xe0 [ 41.439781] ? apparmor_setprocattr+0x2ab/0x1150 [ 41.444533] ? __vfs_write+0x119/0x9f0 [ 41.448401] ? ksys_write+0x1e1/0x260 [ 41.452184] ? do_syscall_64+0x1b9/0x820 [ 41.456230] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.461592] ? aa_change_hat+0x1a20/0x1a20 [ 41.465811] ? find_held_lock+0x36/0x1c0 [ 41.469860] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.475381] ? check_preemption_disabled+0x48/0x200 [ 41.480381] ? check_preemption_disabled+0x48/0x200 [ 41.485381] ? __lock_is_held+0xb5/0x140 [ 41.489440] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.494448] ? __kmalloc+0x5de/0x760 [ 41.498141] ? graph_lock+0x170/0x170 [ 41.501927] ? mark_held_locks+0x130/0x130 [ 41.506146] apparmor_setprocattr+0xa8b/0x1150 [ 41.510713] ? apparmor_task_kill+0xcb0/0xcb0 [ 41.515192] ? lock_downgrade+0x900/0x900 [ 41.519326] ? arch_local_save_flags+0x40/0x40 [ 41.523901] security_setprocattr+0x66/0xc0 [ 41.528728] proc_pid_attr_write+0x301/0x540 [ 41.533136] __vfs_write+0x119/0x9f0 [ 41.536830] ? check_preemption_disabled+0x48/0x200 [ 41.541825] ? proc_loginuid_write+0x4f0/0x4f0 [ 41.546402] ? kernel_read+0x120/0x120 [ 41.550277] ? __lock_is_held+0xb5/0x140 [ 41.554326] ? rcu_read_lock_sched_held+0x108/0x120 [ 41.559328] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.564851] ? __sb_start_write+0x1b2/0x370 [ 41.569155] vfs_write+0x1fc/0x560 [ 41.572689] ksys_write+0x101/0x260 [ 41.576310] ? __ia32_sys_read+0xb0/0xb0 [ 41.580365] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 41.585810] __x64_sys_write+0x73/0xb0 [ 41.589689] do_syscall_64+0x1b9/0x820 [ 41.593564] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.598913] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.603827] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.608671] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.613669] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.618668] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.624199] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.629210] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.634046] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.639227] RIP: 0033:0x440d49 [ 41.642406] 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.661294] RSP: 002b:00007ffc7b26f048 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 41.668983] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 41.676235] RDX: 000000000000002c RSI: 00000000200000c0 RDI: 0000000000000003 [ 41.683487] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 41.690738] R10: 0000000000824880 R11: 0000000000000213 R12: 0000000000009e37 [ 41.697996] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 41.706276] Kernel Offset: disabled [ 41.709917] Rebooting in 86400 seconds..