[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[ 25.295092] random: sshd: uninitialized urandom read (32 bytes read) [?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 28.419962] random: sshd: uninitialized urandom read (32 bytes read) [ 28.770002] random: sshd: uninitialized urandom read (32 bytes read) [ 29.354419] random: sshd: uninitialized urandom read (32 bytes read) [ 29.574419] random: sshd: uninitialized urandom read (32 bytes read) Warning: Permanently added '10.128.0.89' (ECDSA) to the list of known hosts. [ 35.221366] random: sshd: uninitialized urandom read (32 bytes read) executing program executing program executing program [ 35.341104] audit: type=1400 audit(1537763475.050:2): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5337 comm="syz-executor192" [ 35.368248] audit: type=1400 audit(1537763475.080:3): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5338 comm="syz-executor192" executing program executing program [ 35.395138] audit: type=1400 audit(1537763475.100:4): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5339 comm="syz-executor192" [ 35.422471] audit: type=1400 audit(1537763475.130:5): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5340 comm="syz-executor192" executing program executing program [ 35.450474] audit: type=1400 audit(1537763475.160:6): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor192" [ 35.477890] audit: type=1400 audit(1537763475.190:7): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5342 comm="syz-executor192" executing program executing program [ 35.504574] audit: type=1400 audit(1537763475.210:8): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5343 comm="syz-executor192" [ 35.532311] audit: type=1400 audit(1537763475.240:9): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5344 comm="syz-executor192" executing program executing program executing program executing program executing program [ 35.559008] audit: type=1400 audit(1537763475.270:10): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5345 comm="syz-executor192" [ 35.585875] audit: type=1400 audit(1537763475.290:11): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5346 comm="syz-executor192" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 36.017734] ================================================================== [ 36.025221] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 36.031360] Read of size 1 at addr ffff8801bad8f400 by task syz-executor192/5386 [ 36.038876] [ 36.040503] CPU: 1 PID: 5386 Comm: syz-executor192 Not tainted 4.19.0-rc5+ #251 [ 36.048209] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.057545] Call Trace: [ 36.060139] dump_stack+0x1c4/0x2b4 [ 36.063754] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.068934] ? printk+0xa7/0xcf [ 36.072222] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.076987] print_address_description.cold.8+0x9/0x1ff [ 36.082358] kasan_report.cold.9+0x242/0x309 [ 36.086767] ? memcmp+0xe3/0x160 [ 36.090130] __asan_report_load1_noabort+0x14/0x20 [ 36.095046] memcmp+0xe3/0x160 [ 36.098235] strnstr+0x4b/0x70 [ 36.101437] __aa_lookupn_ns+0xc1/0x570 [ 36.105408] ? aa_find_ns+0x30/0x30 [ 36.109024] ? lock_acquire+0x1ed/0x520 [ 36.113017] ? __aa_lookupn_ns+0x570/0x570 [ 36.117254] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.122799] ? check_preemption_disabled+0x48/0x200 [ 36.127820] ? kasan_check_read+0x11/0x20 [ 36.131956] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.137219] ? rcu_bh_qs+0xc0/0xc0 [ 36.140757] ? print_usage_bug+0xc0/0xc0 [ 36.144833] aa_lookupn_ns+0x88/0x1e0 [ 36.148636] aa_fqlookupn_profile+0x1b9/0x1010 [ 36.153209] ? lru_cache_add+0x417/0xa50 [ 36.157277] ? aa_lookup_profile+0x30/0x30 [ 36.161513] ? __lock_acquire+0x7ec/0x4ec0 [ 36.165746] ? noop_count+0x40/0x40 [ 36.169359] ? rcu_bh_qs+0xc0/0xc0 [ 36.172890] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.178435] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.183875] ? refcount_add_not_zero_checked+0x330/0x330 [ 36.189316] ? mark_held_locks+0x130/0x130 [ 36.193538] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.199073] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.204620] fqlookupn_profile+0x80/0xc0 [ 36.208684] aa_label_strn_parse+0xa3a/0x1230 [ 36.213173] ? aa_label_printk+0x850/0x850 [ 36.217425] ? lockdep_on+0x50/0x50 [ 36.221041] ? graph_lock+0x170/0x170 [ 36.224831] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.230362] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.235852] ? refcount_add_not_zero_checked+0x330/0x330 [ 36.241302] ? graph_lock+0x170/0x170 [ 36.245086] ? find_held_lock+0x36/0x1c0 [ 36.249136] aa_label_parse+0x42/0x50 [ 36.252924] aa_change_profile+0x513/0x3510 [ 36.257235] ? lock_acquire+0x1ed/0x520 [ 36.261199] ? aa_change_hat+0x1a20/0x1a20 [ 36.265443] ? is_bpf_text_address+0xd3/0x170 [ 36.269936] ? __mutex_lock+0x85e/0x1700 [ 36.273987] ? proc_pid_attr_write+0x28a/0x540 [ 36.278559] ? mutex_trylock+0x2b0/0x2b0 [ 36.282617] ? save_stack+0xa9/0xd0 [ 36.286237] ? save_stack+0x43/0xd0 [ 36.289861] ? kasan_kmalloc+0xc7/0xe0 [ 36.293736] ? __kmalloc_track_caller+0x14a/0x750 [ 36.298564] ? memdup_user+0x2c/0xa0 [ 36.302278] ? proc_pid_attr_write+0x198/0x540 [ 36.306875] ? graph_lock+0x170/0x170 [ 36.310678] ? __x64_sys_write+0x73/0xb0 [ 36.314736] ? graph_lock+0x170/0x170 [ 36.318534] ? mark_held_locks+0x130/0x130 [ 36.322765] apparmor_setprocattr+0xaa4/0x1150 [ 36.327340] ? apparmor_task_kill+0xcb0/0xcb0 [ 36.331875] ? lock_downgrade+0x900/0x900 [ 36.336029] ? arch_local_save_flags+0x40/0x40 [ 36.340614] security_setprocattr+0x66/0xc0 [ 36.344935] proc_pid_attr_write+0x301/0x540 [ 36.349333] __vfs_write+0x119/0x9f0 [ 36.353034] ? check_preemption_disabled+0x48/0x200 [ 36.358036] ? proc_loginuid_write+0x4f0/0x4f0 [ 36.362606] ? kernel_read+0x120/0x120 [ 36.366491] ? __lock_is_held+0xb5/0x140 [ 36.370569] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.375574] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.381105] ? __sb_start_write+0x1b2/0x370 [ 36.385424] vfs_write+0x1fc/0x560 [ 36.388953] ksys_write+0x101/0x260 [ 36.392585] ? __ia32_sys_read+0xb0/0xb0 [ 36.396694] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 36.402156] __x64_sys_write+0x73/0xb0 [ 36.406061] do_syscall_64+0x1b9/0x820 [ 36.409941] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.415293] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.420246] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.425090] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.430114] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.435118] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.440642] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.445646] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.450482] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.455656] RIP: 0033:0x440d49 [ 36.458837] 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 [ 36.477743] RSP: 002b:00007fff237b0228 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 36.485445] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 36.492713] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 36.499984] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 36.507250] R10: 0000000001b33880 R11: 0000000000000213 R12: 0000000000008c96 [ 36.514515] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 36.521787] [ 36.523407] The buggy address belongs to the page: [ 36.528338] page:ffffea0006eb63c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 36.536464] flags: 0x2fffc0000000000() [ 36.540337] raw: 02fffc0000000000 0000000000000000 ffffffff06eb0101 0000000000000000 [ 36.548204] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 36.556073] page dumped because: kasan: bad access detected [ 36.561777] [ 36.563408] Memory state around the buggy address: [ 36.568319] ffff8801bad8f300: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 36.575664] ffff8801bad8f380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 [ 36.583019] >ffff8801bad8f400: f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 36.590358] ^ [ 36.593724] ffff8801bad8f480: f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 f2 00 f2 f2 f2 f2 [ 36.601093] ffff8801bad8f500: f2 f2 f2 00 00 00 00 00 00 00 00 f3 f3 f3 f3 00 [ 36.608450] ================================================================== [ 36.615791] Disabling lock debugging due to kernel taint [ 36.621851] Kernel panic - not syncing: panic_on_warn set ... [ 36.621851] [ 36.629256] CPU: 1 PID: 5386 Comm: syz-executor192 Tainted: G B 4.19.0-rc5+ #251 [ 36.638098] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.647432] Call Trace: [ 36.650020] dump_stack+0x1c4/0x2b4 [ 36.653645] ? dump_stack_print_info.cold.2+0x52/0x52 [ 36.658838] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.663596] panic+0x238/0x4e7 [ 36.666780] ? add_taint.cold.5+0x16/0x16 [ 36.670919] ? preempt_schedule+0x4d/0x60 [ 36.675052] ? ___preempt_schedule+0x16/0x18 [ 36.679445] ? trace_hardirqs_on+0xb4/0x310 [ 36.683753] kasan_end_report+0x47/0x4f [ 36.687732] kasan_report.cold.9+0x76/0x309 [ 36.692040] ? memcmp+0xe3/0x160 [ 36.695395] __asan_report_load1_noabort+0x14/0x20 [ 36.700319] memcmp+0xe3/0x160 [ 36.703538] strnstr+0x4b/0x70 [ 36.706730] __aa_lookupn_ns+0xc1/0x570 [ 36.710719] ? aa_find_ns+0x30/0x30 [ 36.714331] ? lock_acquire+0x1ed/0x520 [ 36.718301] ? __aa_lookupn_ns+0x570/0x570 [ 36.722521] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.728044] ? check_preemption_disabled+0x48/0x200 [ 36.733048] ? kasan_check_read+0x11/0x20 [ 36.737202] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 36.742465] ? rcu_bh_qs+0xc0/0xc0 [ 36.745991] ? print_usage_bug+0xc0/0xc0 [ 36.750043] aa_lookupn_ns+0x88/0x1e0 [ 36.753832] aa_fqlookupn_profile+0x1b9/0x1010 [ 36.758405] ? lru_cache_add+0x417/0xa50 [ 36.762464] ? aa_lookup_profile+0x30/0x30 [ 36.766714] ? __lock_acquire+0x7ec/0x4ec0 [ 36.770970] ? noop_count+0x40/0x40 [ 36.774581] ? rcu_bh_qs+0xc0/0xc0 [ 36.778108] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.783640] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.789076] ? refcount_add_not_zero_checked+0x330/0x330 [ 36.794509] ? mark_held_locks+0x130/0x130 [ 36.798741] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.804280] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.809803] fqlookupn_profile+0x80/0xc0 [ 36.813848] aa_label_strn_parse+0xa3a/0x1230 [ 36.818334] ? aa_label_printk+0x850/0x850 [ 36.822586] ? lockdep_on+0x50/0x50 [ 36.826209] ? graph_lock+0x170/0x170 [ 36.830009] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.835534] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 36.840971] ? refcount_add_not_zero_checked+0x330/0x330 [ 36.846406] ? graph_lock+0x170/0x170 [ 36.850210] ? find_held_lock+0x36/0x1c0 [ 36.854253] aa_label_parse+0x42/0x50 [ 36.858054] aa_change_profile+0x513/0x3510 [ 36.862382] ? lock_acquire+0x1ed/0x520 [ 36.866368] ? aa_change_hat+0x1a20/0x1a20 [ 36.870595] ? is_bpf_text_address+0xd3/0x170 [ 36.875077] ? __mutex_lock+0x85e/0x1700 [ 36.879127] ? proc_pid_attr_write+0x28a/0x540 [ 36.883696] ? mutex_trylock+0x2b0/0x2b0 [ 36.887754] ? save_stack+0xa9/0xd0 [ 36.891364] ? save_stack+0x43/0xd0 [ 36.894973] ? kasan_kmalloc+0xc7/0xe0 [ 36.898846] ? __kmalloc_track_caller+0x14a/0x750 [ 36.903675] ? memdup_user+0x2c/0xa0 [ 36.907385] ? proc_pid_attr_write+0x198/0x540 [ 36.911989] ? graph_lock+0x170/0x170 [ 36.915778] ? __x64_sys_write+0x73/0xb0 [ 36.919822] ? graph_lock+0x170/0x170 [ 36.923619] ? mark_held_locks+0x130/0x130 [ 36.927853] apparmor_setprocattr+0xaa4/0x1150 [ 36.932428] ? apparmor_task_kill+0xcb0/0xcb0 [ 36.936929] ? lock_downgrade+0x900/0x900 [ 36.941082] ? arch_local_save_flags+0x40/0x40 [ 36.945660] security_setprocattr+0x66/0xc0 [ 36.949998] proc_pid_attr_write+0x301/0x540 [ 36.954418] __vfs_write+0x119/0x9f0 [ 36.958118] ? check_preemption_disabled+0x48/0x200 [ 36.963119] ? proc_loginuid_write+0x4f0/0x4f0 [ 36.967687] ? kernel_read+0x120/0x120 [ 36.971563] ? __lock_is_held+0xb5/0x140 [ 36.975645] ? rcu_read_lock_sched_held+0x108/0x120 [ 36.980648] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.986171] ? __sb_start_write+0x1b2/0x370 [ 36.990489] vfs_write+0x1fc/0x560 [ 36.994017] ksys_write+0x101/0x260 [ 36.997648] ? __ia32_sys_read+0xb0/0xb0 [ 37.001698] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 37.007154] __x64_sys_write+0x73/0xb0 [ 37.011029] do_syscall_64+0x1b9/0x820 [ 37.014904] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.020256] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.025187] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.030036] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.035038] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.040037] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.045570] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.050583] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.055434] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.060616] RIP: 0033:0x440d49 [ 37.063803] 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 [ 37.082695] RSP: 002b:00007fff237b0228 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 [ 37.090395] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49 [ 37.097648] RDX: 0000000000000009 RSI: 0000000020000040 RDI: 0000000000000003 [ 37.104901] RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 [ 37.112165] R10: 0000000001b33880 R11: 0000000000000213 R12: 0000000000008c96 [ 37.119427] R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000 [ 37.127511] Kernel Offset: disabled [ 37.131136] Rebooting in 86400 seconds..