Starting mcstransd: [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] startpar: service(s) returned failure: ssh ...[?25l[?1c7[FAIL8[?25h[?0c failed! Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 49.100977] kauditd_printk_skb: 4 callbacks suppressed [ 49.100988] audit: type=1400 audit(1546592023.545:35): avc: denied { map } for pid=8060 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.15.217' (ECDSA) to the list of known hosts. executing program [ 55.832535] audit: type=1400 audit(1546592030.275:36): avc: denied { map } for pid=8072 comm="syz-executor402" path="/root/syz-executor402894263" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 55.861707] audit: type=1400 audit(1546592030.305:37): avc: denied { map } for pid=8073 comm="syz-executor402" path="/dev/ashmem" dev="devtmpfs" ino=17341 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 executing program [ 56.016800] [ 56.018564] ====================================================== [ 56.024860] WARNING: possible circular locking dependency detected [ 56.031157] 4.20.0+ #8 Not tainted [ 56.034670] ------------------------------------------------------ [ 56.040962] syz-executor402/8077 is trying to acquire lock: [ 56.046647] 0000000058c0ce88 (&mm->mmap_sem){++++}, at: __do_page_fault+0x9c2/0xd60 [ 56.054431] [ 56.054431] but task is already holding lock: [ 56.060372] 00000000f17664c7 (&sb->s_type->i_mutex_key#12){+.+.}, at: generic_file_write_iter+0xe5/0x6a0 [ 56.069975] [ 56.069975] which lock already depends on the new lock. [ 56.069975] [ 56.078263] [ 56.078263] the existing dependency chain (in reverse order) is: [ 56.085857] [ 56.085857] -> #2 (&sb->s_type->i_mutex_key#12){+.+.}: [ 56.092595] down_write+0x8a/0x130 [ 56.096772] shmem_fallocate+0x168/0x1200 [ 56.101422] ashmem_shrink_scan+0x239/0x630 [ 56.106251] ashmem_ioctl+0x38a/0x12c0 [ 56.110644] do_vfs_ioctl+0x107b/0x17d0 [ 56.115114] ksys_ioctl+0xab/0xd0 [ 56.119068] __x64_sys_ioctl+0x73/0xb0 [ 56.123487] do_syscall_64+0x1a3/0x800 [ 56.127885] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.133571] [ 56.133571] -> #1 (ashmem_mutex){+.+.}: [ 56.139015] __mutex_lock+0x12f/0x1670 [ 56.143404] mutex_lock_nested+0x16/0x20 [ 56.147977] ashmem_mmap+0x55/0x520 [ 56.152103] mmap_region+0xde5/0x1ca0 [ 56.156412] do_mmap+0xa09/0x1220 [ 56.160364] vm_mmap_pgoff+0x20b/0x2b0 [ 56.164747] ksys_mmap_pgoff+0x4f8/0x650 [ 56.169305] __x64_sys_mmap+0xe9/0x1b0 [ 56.173700] do_syscall_64+0x1a3/0x800 [ 56.178086] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.183769] [ 56.183769] -> #0 (&mm->mmap_sem){++++}: [ 56.189302] lock_acquire+0x1db/0x570 [ 56.193629] down_read+0x8d/0x120 [ 56.197584] __do_page_fault+0x9c2/0xd60 [ 56.202143] do_page_fault+0xe6/0x7d8 [ 56.206440] page_fault+0x1e/0x30 [ 56.210397] iov_iter_fault_in_readable+0x377/0x450 [ 56.215916] generic_perform_write+0x202/0x6b0 [ 56.220994] __generic_file_write_iter+0x25e/0x630 [ 56.226429] generic_file_write_iter+0x34e/0x6a0 [ 56.231698] __vfs_write+0x764/0xb40 [ 56.235931] vfs_write+0x20c/0x580 [ 56.239968] ksys_write+0x105/0x260 [ 56.244092] __x64_sys_write+0x73/0xb0 [ 56.248481] do_syscall_64+0x1a3/0x800 [ 56.252955] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.258652] [ 56.258652] other info that might help us debug this: [ 56.258652] [ 56.266764] Chain exists of: [ 56.266764] &mm->mmap_sem --> ashmem_mutex --> &sb->s_type->i_mutex_key#12 [ 56.266764] [ 56.278270] Possible unsafe locking scenario: [ 56.278270] [ 56.284394] CPU0 CPU1 [ 56.289044] ---- ---- [ 56.293704] lock(&sb->s_type->i_mutex_key#12); [ 56.298447] lock(ashmem_mutex); [ 56.304394] lock(&sb->s_type->i_mutex_key#12); [ 56.311646] lock(&mm->mmap_sem); [ 56.315163] [ 56.315163] *** DEADLOCK *** [ 56.315163] [ 56.321195] 2 locks held by syz-executor402/8077: [ 56.326007] #0: 00000000bd335e9a (sb_writers#6){.+.+}, at: vfs_write+0x429/0x580 [ 56.333614] #1: 00000000f17664c7 (&sb->s_type->i_mutex_key#12){+.+.}, at: generic_file_write_iter+0xe5/0x6a0 [ 56.343650] [ 56.343650] stack backtrace: [ 56.348124] CPU: 0 PID: 8077 Comm: syz-executor402 Not tainted 4.20.0+ #8 [ 56.355025] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.364358] Call Trace: [ 56.366927] dump_stack+0x1db/0x2d0 [ 56.370640] ? dump_stack_print_info.cold+0x20/0x20 [ 56.375633] ? print_stack_trace+0x77/0xb0 [ 56.379850] ? vprintk_func+0x86/0x189 [ 56.383719] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 56.389059] __lock_acquire+0x3014/0x4a30 [ 56.393188] ? mark_held_locks+0x100/0x100 [ 56.397403] ? shmem_getpage_gfp+0x197e/0x4b70 [ 56.401978] ? trace_hardirqs_off_caller+0x300/0x300 [ 56.407058] ? do_raw_spin_trylock+0x270/0x270 [ 56.411622] ? shmem_getpage_gfp+0x26fb/0x4b70 [ 56.416211] ? __lock_is_held+0xb6/0x140 [ 56.420253] lock_acquire+0x1db/0x570 [ 56.424036] ? __do_page_fault+0x9c2/0xd60 [ 56.428255] ? ___might_sleep+0x1e7/0x310 [ 56.432390] ? lock_release+0xc40/0xc40 [ 56.436345] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 56.441339] ? cmp_ex_search+0x8c/0xb0 [ 56.445208] down_read+0x8d/0x120 [ 56.448639] ? __do_page_fault+0x9c2/0xd60 [ 56.452851] ? __down_interruptible+0x740/0x740 [ 56.457496] ? do_writepages+0x1a0/0x1a0 [ 56.461541] ? set_page_dirty+0x5dd/0xfc0 [ 56.465669] __do_page_fault+0x9c2/0xd60 [ 56.469714] do_page_fault+0xe6/0x7d8 [ 56.473497] ? unlock_page+0x2b1/0x4a0 [ 56.477363] ? vmalloc_sync_all+0x30/0x30 [ 56.481488] ? balance_dirty_pages_ratelimited+0x1b0/0x2370 [ 56.487179] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.492001] page_fault+0x1e/0x30 [ 56.495437] RIP: 0010:iov_iter_fault_in_readable+0x377/0x450 [ 56.501217] Code: 89 f6 41 88 57 e0 e8 f8 d7 f3 fd 45 85 f6 74 c1 e9 70 fe ff ff e8 69 d6 f3 fd 0f 1f 00 0f ae e8 44 89 f0 48 8b 8d 68 ff ff ff <8a> 11 89 c3 0f 1f 00 41 88 57 d0 31 ff 89 de e8 c5 d7 f3 fd 85 db [ 56.520110] RSP: 0018:ffff88808d34f8a8 EFLAGS: 00010293 [ 56.525449] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000020e0123f [ 56.532695] RDX: 0000000000000000 RSI: ffffffff838e1ee7 RDI: 0000000000000007 [ 56.539943] RBP: ffff88808d34f948 R08: ffff88809f598640 R09: fffff9400042794f [ 56.547192] R10: fffff9400042794e R11: ffffea000213ca77 R12: 0000000000001000 [ 56.554439] R13: 0000000000001000 R14: 0000000000000000 R15: ffff88808d34f920 [ 56.561693] ? iov_iter_fault_in_readable+0x367/0x450 [ 56.566870] ? iov_iter_fault_in_readable+0x367/0x450 [ 56.572039] ? copy_page_from_iter+0x900/0x900 [ 56.576602] ? shmem_write_begin+0x105/0x1e0 [ 56.580988] ? shmem_write_begin+0x10f/0x1e0 [ 56.585395] generic_perform_write+0x202/0x6b0 [ 56.589983] ? add_page_wait_queue+0x480/0x480 [ 56.594553] ? current_time+0x1b0/0x1b0 [ 56.598506] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 56.603504] ? generic_write_check_limits+0x291/0x380 [ 56.608672] __generic_file_write_iter+0x25e/0x630 [ 56.613577] ? __fget+0x499/0x710 [ 56.617019] generic_file_write_iter+0x34e/0x6a0 [ 56.621760] ? __generic_file_write_iter+0x630/0x630 [ 56.626964] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.632480] ? iov_iter_init+0xea/0x220 [ 56.636433] __vfs_write+0x764/0xb40 [ 56.640129] ? kernel_read+0x120/0x120 [ 56.643999] ? rcu_read_lock_sched_held+0x110/0x130 [ 56.648999] ? rcu_sync_lockdep_assert+0x73/0xb0 [ 56.653733] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.659250] ? __sb_start_write+0x1ac/0x360 [ 56.663558] vfs_write+0x20c/0x580 [ 56.667080] ksys_write+0x105/0x260 [ 56.670687] ? __ia32_sys_read+0xb0/0xb0 [ 56.674729] ? do_futex+0x2910/0x2910 [ 56.678509] ? trace_hardirqs_off_caller+0x300/0x300 [ 56.683590] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.688324] __x64_sys_write+0x73/0xb0 [ 56.692192] do_syscall_64+0x1a3/0x800 [ 56.696059] ? syscall_return_slowpath+0x5f0/0x5f0 [ 56.700968] ? prepare_exit_to_usermode+0x232/0x3b0 [ 56.705969] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.710817] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.715982] RIP: 0033:0x446399 [ 56.719159] Code: e8 2c b3 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 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 56.738037] RSP: 002b:00007fbc64da6da8 EFLAGS: 00000297 ORIG_RAX: 0000000000000001 [ 56.745742] RAX: ffffffffffffffda RBX: 00000000006dcc28 RCX: 0000000000446399 [ 56.752989] RDX: 00000000fffffe48 RSI: 0000000020004240 RDI: 0000000000000004 [ 56.760239] RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000 executing program [ 56.767488] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dcc2c [ 56.774734] R13: 656363615f6c6361 R14: 5f7869736f70275b R15: 00000000006dcd2c executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program