[....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 25.710583] kauditd_printk_skb: 7 callbacks suppressed [ 25.710594] audit: type=1800 audit(1539368131.213:29): pid=5185 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 25.736211] audit: type=1800 audit(1539368131.213:30): pid=5185 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.29' (ECDSA) to the list of known hosts. executing program executing program executing program syzkaller login: [ 38.177054] audit: type=1400 audit(1539368143.683:31): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5341 comm="syz-executor395" [ 38.195965] audit: type=1400 audit(1539368143.703:32): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5342 comm="syz-executor395" executing program executing program executing program executing program executing program [ 38.215138] audit: type=1400 audit(1539368143.723:33): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5343 comm="syz-executor395" [ 38.234084] audit: type=1400 audit(1539368143.753:34): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5344 comm="syz-executor395" [ 38.252815] audit: type=1400 audit(1539368143.763:35): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5345 comm="syz-executor395" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.271759] audit: type=1400 audit(1539368143.783:36): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5346 comm="syz-executor395" [ 38.289530] audit: type=1400 audit(1539368143.783:37): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5347 comm="syz-executor395" [ 38.307847] audit: type=1400 audit(1539368143.783:38): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5348 comm="syz-executor395" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.327036] audit: type=1400 audit(1539368143.793:39): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5349 comm="syz-executor395" [ 38.344757] audit: type=1400 audit(1539368143.793:40): apparmor="DENIED" operation="stack_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5350 comm="syz-executor395" executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 38.634742] ================================================================== [ 38.642204] BUG: KASAN: stack-out-of-bounds in memcmp+0xe3/0x160 [ 38.648334] Read of size 1 at addr ffff8801d8ae73b0 by task syz-executor395/5469 [ 38.655846] [ 38.657464] CPU: 1 PID: 5469 Comm: syz-executor395 Not tainted 4.19.0-rc7+ #183 [ 38.664899] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 38.674241] Call Trace: [ 38.676820] dump_stack+0x1c4/0x2b4 [ 38.680440] ? dump_stack_print_info.cold.2+0x52/0x52 [ 38.685611] ? printk+0xa7/0xcf [ 38.688874] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 38.693633] print_address_description.cold.8+0x9/0x1ff [ 38.698994] kasan_report.cold.9+0x242/0x309 [ 38.703417] ? memcmp+0xe3/0x160 [ 38.706773] __asan_report_load1_noabort+0x14/0x20 [ 38.711688] memcmp+0xe3/0x160 [ 38.714867] strnstr+0x4b/0x70 [ 38.718059] __aa_lookupn_ns+0xc1/0x570 [ 38.722020] ? aa_find_ns+0x30/0x30 [ 38.725632] ? lock_acquire+0x1ed/0x520 [ 38.729608] ? __aa_lookupn_ns+0x570/0x570 [ 38.733843] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.739370] ? check_preemption_disabled+0x48/0x200 [ 38.744373] ? kasan_check_read+0x11/0x20 [ 38.748514] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 38.753806] ? rcu_bh_qs+0xc0/0xc0 [ 38.757333] ? print_usage_bug+0xc0/0xc0 [ 38.761383] aa_lookupn_ns+0x88/0x1e0 [ 38.765188] aa_fqlookupn_profile+0x1b9/0x1010 [ 38.769771] ? aa_lookup_profile+0x30/0x30 [ 38.774007] ? __lock_acquire+0x7ec/0x4ec0 [ 38.778232] ? noop_count+0x40/0x40 [ 38.781857] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.787420] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 38.792866] ? refcount_add_not_zero_checked+0x330/0x330 [ 38.798310] ? mark_held_locks+0x130/0x130 [ 38.802532] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.808056] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.813583] fqlookupn_profile+0x80/0xc0 [ 38.817633] aa_label_strn_parse+0xa3a/0x1230 [ 38.822151] ? aa_label_printk+0x850/0x850 [ 38.826382] ? graph_lock+0x170/0x170 [ 38.830176] ? lockdep_on+0x50/0x50 [ 38.833786] ? graph_lock+0x170/0x170 [ 38.837576] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.843102] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 38.848562] ? refcount_add_not_zero_checked+0x330/0x330 [ 38.854013] ? graph_lock+0x170/0x170 [ 38.857798] ? find_held_lock+0x36/0x1c0 [ 38.861852] aa_label_parse+0x42/0x50 [ 38.865644] aa_change_profile+0x513/0x3260 [ 38.869969] ? lock_acquire+0x1ed/0x520 [ 38.873933] ? aa_change_hat+0x1890/0x1890 [ 38.878154] ? is_bpf_text_address+0xd3/0x170 [ 38.882640] ? __mutex_lock+0x85e/0x1700 [ 38.886684] ? proc_pid_attr_write+0x28a/0x540 [ 38.891261] ? mutex_trylock+0x2b0/0x2b0 [ 38.895321] ? save_stack+0xa9/0xd0 [ 38.898929] ? save_stack+0x43/0xd0 [ 38.902539] ? kasan_kmalloc+0xc7/0xe0 [ 38.906415] ? __kmalloc_track_caller+0x14a/0x750 [ 38.911243] ? memdup_user+0x2c/0xa0 [ 38.914953] ? proc_pid_attr_write+0x198/0x540 [ 38.919538] ? graph_lock+0x170/0x170 [ 38.923323] ? __ia32_sys_write+0x71/0xb0 [ 38.927453] ? graph_lock+0x170/0x170 [ 38.931238] ? mark_held_locks+0x130/0x130 [ 38.935468] apparmor_setprocattr+0xaa4/0x1150 [ 38.940040] ? apparmor_task_kill+0xcb0/0xcb0 [ 38.944522] ? lock_downgrade+0x900/0x900 [ 38.948659] ? arch_local_save_flags+0x40/0x40 [ 38.953241] security_setprocattr+0x66/0xc0 [ 38.957550] proc_pid_attr_write+0x301/0x540 [ 38.961948] __vfs_write+0x119/0x9f0 [ 38.965648] ? check_preemption_disabled+0x48/0x200 [ 38.970647] ? proc_loginuid_write+0x4f0/0x4f0 [ 38.975225] ? kernel_read+0x120/0x120 [ 38.979107] ? __lock_is_held+0xb5/0x140 [ 38.983174] ? rcu_read_lock_sched_held+0x108/0x120 [ 38.988177] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.993700] ? __sb_start_write+0x1b2/0x370 [ 38.998015] vfs_write+0x1fc/0x560 [ 39.001555] ksys_write+0x101/0x260 [ 39.005170] ? __ia32_sys_read+0xb0/0xb0 [ 39.009224] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.014665] __ia32_sys_write+0x71/0xb0 [ 39.018629] do_fast_syscall_32+0x34d/0xfb2 [ 39.022938] ? do_int80_syscall_32+0x890/0x890 [ 39.027510] ? entry_SYSENTER_compat+0x68/0x7f [ 39.032079] ? trace_hardirqs_off_caller+0xbb/0x310 [ 39.037080] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.041914] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.046761] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.051767] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.056768] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.061795] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.066632] entry_SYSENTER_compat+0x70/0x7f [ 39.071031] RIP: 0023:0xf7f41ca9 [ 39.074386] 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 [ 39.093277] RSP: 002b:00000000ffa95f6c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 39.100967] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000280 [ 39.108230] RDX: 0000000000000009 RSI: 00000000ffa960b4 RDI: 00000000ffa960bc [ 39.115495] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 39.122753] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 39.130021] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 39.137289] [ 39.138903] The buggy address belongs to the page: [ 39.143841] page:ffffea000762b9c0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 [ 39.152005] flags: 0x2fffc0000000000() [ 39.155877] raw: 02fffc0000000000 0000000000000000 ffffffff07620101 0000000000000000 [ 39.163752] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 39.171614] page dumped because: kasan: bad access detected [ 39.177329] [ 39.178938] Memory state around the buggy address: [ 39.183854] ffff8801d8ae7280: f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 00 00 00 00 [ 39.191214] ffff8801d8ae7300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 39.198552] >ffff8801d8ae7380: 00 00 00 00 00 f1 f1 f1 f1 f8 f2 f2 f2 f2 f2 f2 [ 39.205900] ^ [ 39.210816] ffff8801d8ae7400: f2 00 f2 f2 f2 f2 f2 f2 f2 f8 f2 f2 f2 f2 f2 f2 [ 39.218160] ffff8801d8ae7480: f2 00 f2 f2 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 [ 39.225496] ================================================================== [ 39.232847] Disabling lock debugging due to kernel taint [ 39.239302] Kernel panic - not syncing: panic_on_warn set ... [ 39.239302] [ 39.246672] CPU: 1 PID: 5469 Comm: syz-executor395 Tainted: G B 4.19.0-rc7+ #183 [ 39.255486] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 39.264819] Call Trace: [ 39.267392] dump_stack+0x1c4/0x2b4 [ 39.271011] ? dump_stack_print_info.cold.2+0x52/0x52 [ 39.276184] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 39.280926] panic+0x238/0x4e7 [ 39.284099] ? add_taint.cold.5+0x16/0x16 [ 39.288229] ? preempt_schedule+0x4d/0x60 [ 39.292357] ? ___preempt_schedule+0x16/0x18 [ 39.296755] ? trace_hardirqs_on+0xb4/0x310 [ 39.301072] kasan_end_report+0x47/0x4f [ 39.305030] kasan_report.cold.9+0x76/0x309 [ 39.309337] ? memcmp+0xe3/0x160 [ 39.312686] __asan_report_load1_noabort+0x14/0x20 [ 39.317595] memcmp+0xe3/0x160 [ 39.320771] strnstr+0x4b/0x70 [ 39.323949] __aa_lookupn_ns+0xc1/0x570 [ 39.327914] ? aa_find_ns+0x30/0x30 [ 39.331528] ? lock_acquire+0x1ed/0x520 [ 39.335484] ? __aa_lookupn_ns+0x570/0x570 [ 39.339700] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.345222] ? check_preemption_disabled+0x48/0x200 [ 39.350240] ? kasan_check_read+0x11/0x20 [ 39.354375] ? rcu_dynticks_curr_cpu_in_eqs+0x9f/0x160 [ 39.359632] ? rcu_bh_qs+0xc0/0xc0 [ 39.363156] ? print_usage_bug+0xc0/0xc0 [ 39.367201] aa_lookupn_ns+0x88/0x1e0 [ 39.370986] aa_fqlookupn_profile+0x1b9/0x1010 [ 39.375551] ? aa_lookup_profile+0x30/0x30 [ 39.379765] ? __lock_acquire+0x7ec/0x4ec0 [ 39.383979] ? noop_count+0x40/0x40 [ 39.387587] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.393105] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.398538] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.403968] ? mark_held_locks+0x130/0x130 [ 39.408186] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.413709] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 39.419230] fqlookupn_profile+0x80/0xc0 [ 39.423277] aa_label_strn_parse+0xa3a/0x1230 [ 39.427772] ? aa_label_printk+0x850/0x850 [ 39.431992] ? graph_lock+0x170/0x170 [ 39.435776] ? lockdep_on+0x50/0x50 [ 39.439387] ? graph_lock+0x170/0x170 [ 39.443180] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.448699] ? refcount_inc_not_zero_checked+0x1e5/0x2f0 [ 39.454131] ? refcount_add_not_zero_checked+0x330/0x330 [ 39.459562] ? graph_lock+0x170/0x170 [ 39.463343] ? find_held_lock+0x36/0x1c0 [ 39.467387] aa_label_parse+0x42/0x50 [ 39.471273] aa_change_profile+0x513/0x3260 [ 39.475591] ? lock_acquire+0x1ed/0x520 [ 39.479549] ? aa_change_hat+0x1890/0x1890 [ 39.483769] ? is_bpf_text_address+0xd3/0x170 [ 39.488250] ? __mutex_lock+0x85e/0x1700 [ 39.492308] ? proc_pid_attr_write+0x28a/0x540 [ 39.496896] ? mutex_trylock+0x2b0/0x2b0 [ 39.500954] ? save_stack+0xa9/0xd0 [ 39.504574] ? save_stack+0x43/0xd0 [ 39.508179] ? kasan_kmalloc+0xc7/0xe0 [ 39.512049] ? __kmalloc_track_caller+0x14a/0x750 [ 39.516873] ? memdup_user+0x2c/0xa0 [ 39.520573] ? proc_pid_attr_write+0x198/0x540 [ 39.525146] ? graph_lock+0x170/0x170 [ 39.528932] ? __ia32_sys_write+0x71/0xb0 [ 39.533063] ? graph_lock+0x170/0x170 [ 39.536845] ? mark_held_locks+0x130/0x130 [ 39.541068] apparmor_setprocattr+0xaa4/0x1150 [ 39.545638] ? apparmor_task_kill+0xcb0/0xcb0 [ 39.550114] ? lock_downgrade+0x900/0x900 [ 39.554249] ? arch_local_save_flags+0x40/0x40 [ 39.558826] security_setprocattr+0x66/0xc0 [ 39.563136] proc_pid_attr_write+0x301/0x540 [ 39.567530] __vfs_write+0x119/0x9f0 [ 39.571239] ? check_preemption_disabled+0x48/0x200 [ 39.576266] ? proc_loginuid_write+0x4f0/0x4f0 [ 39.580856] ? kernel_read+0x120/0x120 [ 39.584825] ? __lock_is_held+0xb5/0x140 [ 39.588902] ? rcu_read_lock_sched_held+0x108/0x120 [ 39.593918] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 39.599437] ? __sb_start_write+0x1b2/0x370 [ 39.603741] vfs_write+0x1fc/0x560 [ 39.607265] ksys_write+0x101/0x260 [ 39.610876] ? __ia32_sys_read+0xb0/0xb0 [ 39.614938] ? __bpf_trace_preemptirq_template+0x30/0x30 [ 39.620374] __ia32_sys_write+0x71/0xb0 [ 39.624335] do_fast_syscall_32+0x34d/0xfb2 [ 39.628643] ? do_int80_syscall_32+0x890/0x890 [ 39.633211] ? entry_SYSENTER_compat+0x68/0x7f [ 39.637777] ? trace_hardirqs_off_caller+0xbb/0x310 [ 39.642774] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.647599] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.652438] ? trace_hardirqs_on_caller+0x310/0x310 [ 39.657445] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 39.662454] ? prepare_exit_to_usermode+0x291/0x3b0 [ 39.667457] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 39.672286] entry_SYSENTER_compat+0x70/0x7f [ 39.676679] RIP: 0023:0xf7f41ca9 [ 39.680037] 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 [ 39.698932] RSP: 002b:00000000ffa95f6c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 [ 39.706621] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000280 [ 39.713879] RDX: 0000000000000009 RSI: 00000000ffa960b4 RDI: 00000000ffa960bc [ 39.721151] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 [ 39.728401] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 39.735654] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 39.743834] Kernel Offset: disabled [ 39.747457] Rebooting in 86400 seconds..