[ 34.050389][ T26] audit: type=1800 audit(1552237324.823:27): pid=7375 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 34.050412][ T26] audit: type=1800 audit(1552237324.823:28): pid=7375 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 34.892925][ T26] audit: type=1800 audit(1552237325.703:29): pid=7375 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 [ 34.913628][ T26] audit: type=1800 audit(1552237325.713:30): pid=7375 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.15.206' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 41.780696][ T7529] [ 41.783084][ T7529] ====================================================== [ 41.790129][ T7529] WARNING: possible circular locking dependency detected [ 41.797340][ T7529] 5.0.0+ #15 Not tainted [ 41.801677][ T7529] ------------------------------------------------------ [ 41.808801][ T7529] syz-executor474/7529 is trying to acquire lock: [ 41.815193][ T7529] 00000000fe1fdc46 (&rp->fetch_lock){+.+.}, at: mon_bin_vma_fault+0x73/0x2d0 [ 41.824041][ T7529] [ 41.824041][ T7529] but task is already holding lock: [ 41.831710][ T7529] 00000000e74dcb4b (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 41.840049][ T7529] [ 41.840049][ T7529] which lock already depends on the new lock. [ 41.840049][ T7529] [ 41.850553][ T7529] [ 41.850553][ T7529] the existing dependency chain (in reverse order) is: [ 41.859814][ T7529] [ 41.859814][ T7529] -> #1 (&mm->mmap_sem){++++}: [ 41.866761][ T7529] lock_acquire+0x16f/0x3f0 [ 41.871844][ T7529] __might_fault+0x15e/0x1e0 [ 41.876946][ T7529] _copy_to_user+0x30/0x120 [ 41.881957][ T7529] mon_bin_read+0x329/0x640 [ 41.886966][ T7529] do_iter_read+0x4a9/0x660 [ 41.891974][ T7529] vfs_readv+0xf0/0x160 [ 41.896635][ T7529] do_preadv+0x1c4/0x280 [ 41.901384][ T7529] __x64_sys_preadv+0x9a/0xf0 [ 41.906583][ T7529] do_syscall_64+0x103/0x610 [ 41.911725][ T7529] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.918129][ T7529] [ 41.918129][ T7529] -> #0 (&rp->fetch_lock){+.+.}: [ 41.925232][ T7529] __lock_acquire+0x239c/0x3fb0 [ 41.930585][ T7529] lock_acquire+0x16f/0x3f0 [ 41.935593][ T7529] __mutex_lock+0xf7/0x1310 [ 41.940601][ T7529] mutex_lock_nested+0x16/0x20 [ 41.945921][ T7529] mon_bin_vma_fault+0x73/0x2d0 [ 41.951281][ T7529] __do_fault+0x116/0x4e0 [ 41.956117][ T7529] __handle_mm_fault+0xf6c/0x3ec0 [ 41.961645][ T7529] handle_mm_fault+0x43f/0xb30 [ 41.966960][ T7529] __get_user_pages+0x7b6/0x1a40 [ 41.972412][ T7529] populate_vma_page_range+0x20d/0x2a0 [ 41.978378][ T7529] __mm_populate+0x204/0x380 [ 41.983477][ T7529] vm_mmap_pgoff+0x213/0x230 [ 41.988572][ T7529] ksys_mmap_pgoff+0x4aa/0x630 [ 41.993845][ T7529] __x64_sys_mmap+0xe9/0x1b0 [ 41.998972][ T7529] do_syscall_64+0x103/0x610 [ 42.004088][ T7529] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.010487][ T7529] [ 42.010487][ T7529] other info that might help us debug this: [ 42.010487][ T7529] [ 42.020699][ T7529] Possible unsafe locking scenario: [ 42.020699][ T7529] [ 42.028133][ T7529] CPU0 CPU1 [ 42.033481][ T7529] ---- ---- [ 42.038858][ T7529] lock(&mm->mmap_sem); [ 42.043083][ T7529] lock(&rp->fetch_lock); [ 42.050036][ T7529] lock(&mm->mmap_sem); [ 42.056818][ T7529] lock(&rp->fetch_lock); [ 42.061215][ T7529] [ 42.061215][ T7529] *** DEADLOCK *** [ 42.061215][ T7529] [ 42.069347][ T7529] 1 lock held by syz-executor474/7529: [ 42.074783][ T7529] #0: 00000000e74dcb4b (&mm->mmap_sem){++++}, at: __mm_populate+0x270/0x380 [ 42.083539][ T7529] [ 42.083539][ T7529] stack backtrace: [ 42.089415][ T7529] CPU: 1 PID: 7529 Comm: syz-executor474 Not tainted 5.0.0+ #15 [ 42.097024][ T7529] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.107197][ T7529] Call Trace: [ 42.110478][ T7529] dump_stack+0x172/0x1f0 [ 42.114798][ T7529] print_circular_bug.isra.0.cold+0x1cc/0x28f [ 42.120852][ T7529] check_prev_add.constprop.0+0xf11/0x23c0 [ 42.127300][ T7529] ? check_usage+0x570/0x570 [ 42.131946][ T7529] ? depot_save_stack+0x1de/0x460 [ 42.136960][ T7529] ? graph_lock+0x7b/0x200 [ 42.141403][ T7529] ? __lockdep_reset_lock+0x450/0x450 [ 42.146813][ T7529] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.153043][ T7529] __lock_acquire+0x239c/0x3fb0 [ 42.157882][ T7529] ? depot_save_stack+0x1de/0x460 [ 42.162981][ T7529] ? mark_held_locks+0xf0/0xf0 [ 42.167781][ T7529] ? __do_fault+0x2b9/0x4e0 [ 42.172282][ T7529] lock_acquire+0x16f/0x3f0 [ 42.180780][ T7529] ? mon_bin_vma_fault+0x73/0x2d0 [ 42.185836][ T7529] ? mon_bin_vma_fault+0x73/0x2d0 [ 42.190922][ T7529] __mutex_lock+0xf7/0x1310 [ 42.195417][ T7529] ? mon_bin_vma_fault+0x73/0x2d0 [ 42.200426][ T7529] ? fs_reclaim_acquire.part.0+0x30/0x30 [ 42.206045][ T7529] ? mon_bin_vma_fault+0x73/0x2d0 [ 42.211095][ T7529] ? mutex_trylock+0x1e0/0x1e0 [ 42.215847][ T7529] ? ptlock_alloc+0x20/0x70 [ 42.220331][ T7529] ? rcu_read_lock_sched_held+0x110/0x130 [ 42.226044][ T7529] ? kmem_cache_alloc+0x32e/0x6f0 [ 42.231062][ T7529] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.237324][ T7529] ? __sanitizer_cov_trace_const_cmp2+0x18/0x20 [ 42.243554][ T7529] mutex_lock_nested+0x16/0x20 [ 42.248341][ T7529] ? mutex_lock_nested+0x16/0x20 [ 42.253265][ T7529] mon_bin_vma_fault+0x73/0x2d0 [ 42.258103][ T7529] __do_fault+0x116/0x4e0 [ 42.262461][ T7529] ? mem_cgroup_try_charge_delay+0x6c/0xa0 [ 42.268297][ T7529] __handle_mm_fault+0xf6c/0x3ec0 [ 42.273316][ T7529] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 42.278855][ T7529] ? find_held_lock+0x35/0x130 [ 42.283608][ T7529] ? handle_mm_fault+0x322/0xb30 [ 42.288547][ T7529] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.294815][ T7529] ? kasan_check_read+0x11/0x20 [ 42.299658][ T7529] handle_mm_fault+0x43f/0xb30 [ 42.304456][ T7529] __get_user_pages+0x7b6/0x1a40 [ 42.309393][ T7529] ? follow_page_mask+0x19a0/0x19a0 [ 42.314576][ T7529] ? vma_set_page_prot+0x18c/0x240 [ 42.320021][ T7529] ? memset+0x32/0x40 [ 42.324118][ T7529] populate_vma_page_range+0x20d/0x2a0 [ 42.329568][ T7529] __mm_populate+0x204/0x380 [ 42.334145][ T7529] ? populate_vma_page_range+0x2a0/0x2a0 [ 42.339767][ T7529] vm_mmap_pgoff+0x213/0x230 [ 42.344343][ T7529] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.349911][ T7529] ? ksys_dup3+0x3e0/0x3e0 [ 42.354357][ T7529] ksys_mmap_pgoff+0x4aa/0x630 [ 42.359105][ T7529] ? find_mergeable_anon_vma+0x2e0/0x2e0 [ 42.364780][ T7529] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.370223][ T7529] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 42.375663][ T7529] ? do_syscall_64+0x26/0x610 [ 42.380323][ T7529] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.386374][ T7529] __x64_sys_mmap+0xe9/0x1b0 [ 42.390987][ T7529] do_syscall_64+0x103/0x610 [ 42.395567][ T7529] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.401441][ T7529] RIP: 0033:0x449669 [ 42.405319][ T7529] Code: e8 9c b8 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 ab d6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 42.424913][ T7529] RSP: 002b:00007ff1bdea7cd8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 [ 42.433357][ T7529] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000449669 [ 42.441340][ T7529] RDX: 0000000000000013 RSI: 0000000000400000 RDI: 0000000020a05000 [ 42.449308][ T7529] RBP: 00000000006dac30 R08: 0000000000000005 R09: 0000000000000000 [ 42.457268][ T7529] R10: 0000000000008012 R11: 0000000000000246 R12: 00000000006dac3c [ 42.465276][ T7529] R13: 00007fff822fb72f R14: 00007ff1bdea89c0 R15: 20c49ba5e353f7cf [ 42.473839][ T22] kobject: 'regulatory.0' (0000000085485f7d): kobject_uevent_env [ 42.481592][ T22] kobject: 'regulatory.0' (0000000085485f7d): fill_kobj_path: path = '/devices/platform/regulatory.0'