Warning: Permanently added '10.128.0.217' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 86.658625][T10886] [ 86.661004][T10886] ====================================================== [ 86.667998][T10886] WARNING: possible circular locking dependency detected [ 86.675011][T10886] 5.2.0-rc3-next-20190604 #8 Not tainted [ 86.680718][T10886] ------------------------------------------------------ [ 86.687725][T10886] syz-executor361/10886 is trying to acquire lock: [ 86.694208][T10886] 00000000c4471342 (&mm->mmap_sem#2){++++}, at: __do_page_fault+0x9e9/0xda0 [ 86.702947][T10886] [ 86.702947][T10886] but task is already holding lock: [ 86.710297][T10886] 000000009878d2b3 (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x246/0x1070 [ 86.720556][T10886] [ 86.720556][T10886] which lock already depends on the new lock. [ 86.720556][T10886] [ 86.730941][T10886] [ 86.730941][T10886] the existing dependency chain (in reverse order) is: [ 86.739977][T10886] [ 86.739977][T10886] -> #1 (&sb->s_type->i_mutex_key#10){+.+.}: [ 86.748270][T10886] down_write+0x38/0xa0 [ 86.753940][T10886] process_measurement+0x15ae/0x15e0 [ 86.759740][T10886] ima_file_mmap+0x11a/0x130 [ 86.764857][T10886] security_file_mprotect+0xd5/0x100 [ 86.770671][T10886] do_mprotect_pkey+0x537/0xa30 [ 86.776033][T10886] __x64_sys_mprotect+0x78/0xb0 [ 86.781406][T10886] do_syscall_64+0xfd/0x680 [ 86.786440][T10886] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 86.792832][T10886] [ 86.792832][T10886] -> #0 (&mm->mmap_sem#2){++++}: [ 86.799981][T10886] lock_acquire+0x16f/0x3f0 [ 86.805155][T10886] down_read+0x3f/0x1e0 [ 86.809816][T10886] __do_page_fault+0x9e9/0xda0 [ 86.815083][T10886] do_page_fault+0x71/0x57d [ 86.820107][T10886] page_fault+0x1e/0x30 [ 86.824804][T10886] iov_iter_fault_in_readable+0x377/0x450 [ 86.831040][T10886] generic_perform_write+0x186/0x520 [ 86.836834][T10886] __generic_file_write_iter+0x25e/0x630 [ 86.842974][T10886] ext4_file_write_iter+0x332/0x1070 [ 86.848776][T10886] new_sync_write+0x4d3/0x770 [ 86.853957][T10886] __vfs_write+0xe1/0x110 [ 86.858797][T10886] vfs_write+0x268/0x5d0 [ 86.863551][T10886] ksys_write+0x14f/0x290 [ 86.868386][T10886] __x64_sys_write+0x73/0xb0 [ 86.873482][T10886] do_syscall_64+0xfd/0x680 [ 86.878496][T10886] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 86.884891][T10886] [ 86.884891][T10886] other info that might help us debug this: [ 86.884891][T10886] [ 86.895108][T10886] Possible unsafe locking scenario: [ 86.895108][T10886] [ 86.902550][T10886] CPU0 CPU1 [ 86.907917][T10886] ---- ---- [ 86.913265][T10886] lock(&sb->s_type->i_mutex_key#10); [ 86.918709][T10886] lock(&mm->mmap_sem#2); [ 86.925640][T10886] lock(&sb->s_type->i_mutex_key#10); [ 86.933610][T10886] lock(&mm->mmap_sem#2); [ 86.938024][T10886] [ 86.938024][T10886] *** DEADLOCK *** [ 86.938024][T10886] [ 86.946159][T10886] 3 locks held by syz-executor361/10886: [ 86.951769][T10886] #0: 00000000b8e64295 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 [ 86.960371][T10886] #1: 00000000e032805f (sb_writers#3){.+.+}, at: vfs_write+0x485/0x5d0 [ 86.968720][T10886] #2: 000000009878d2b3 (&sb->s_type->i_mutex_key#10){+.+.}, at: ext4_file_write_iter+0x246/0x1070 [ 86.979528][T10886] [ 86.979528][T10886] stack backtrace: [ 86.985454][T10886] CPU: 0 PID: 10886 Comm: syz-executor361 Not tainted 5.2.0-rc3-next-20190604 #8 [ 86.994566][T10886] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 87.004899][T10886] Call Trace: [ 87.008179][T10886] dump_stack+0x172/0x1f0 [ 87.012508][T10886] print_circular_bug.cold+0x1cc/0x28f [ 87.017954][T10886] __lock_acquire+0x3755/0x5490 [ 87.022806][T10886] ? mark_held_locks+0xf0/0xf0 [ 87.027566][T10886] ? cmp_ex_sort+0xd0/0xd0 [ 87.031974][T10886] lock_acquire+0x16f/0x3f0 [ 87.036464][T10886] ? __do_page_fault+0x9e9/0xda0 [ 87.041389][T10886] down_read+0x3f/0x1e0 [ 87.045532][T10886] ? __do_page_fault+0x9e9/0xda0 [ 87.050457][T10886] __do_page_fault+0x9e9/0xda0 [ 87.055230][T10886] ? trace_hardirqs_off_caller+0x65/0x220 [ 87.060942][T10886] do_page_fault+0x71/0x57d [ 87.065467][T10886] page_fault+0x1e/0x30 [ 87.069614][T10886] RIP: 0010:iov_iter_fault_in_readable+0x377/0x450 [ 87.076098][T10886] Code: 89 f6 41 88 57 e0 e8 b8 dd 3c fe 45 85 f6 74 c1 e9 70 fe ff ff e8 29 dc 3c fe 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 85 dd 3c fe 85 db [ 87.095689][T10886] RSP: 0018:ffff88808ca6f918 EFLAGS: 00010293 [ 87.101756][T10886] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000200011ff [ 87.109718][T10886] RDX: 0000000000000000 RSI: ffffffff83341b37 RDI: 0000000000000007 [ 87.117679][T10886] RBP: ffff88808ca6f9b8 R08: ffff88809be68000 R09: ffff88809be688f8 [ 87.125638][T10886] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000001000 [ 87.133598][T10886] R13: 0000000000001000 R14: 0000000000000000 R15: ffff88808ca6f990 [ 87.141582][T10886] ? iov_iter_fault_in_readable+0x367/0x450 [ 87.147591][T10886] ? iov_iter_fault_in_readable+0x367/0x450 [ 87.153482][T10886] ? csum_and_copy_to_iter+0x1600/0x1600 [ 87.159116][T10886] ? __sanitizer_cov_trace_cmp4+0x16/0x20 [ 87.164858][T10886] ? ktime_get_coarse_real_ts64+0x214/0x2b0 [ 87.170753][T10886] generic_perform_write+0x186/0x520 [ 87.176036][T10886] ? mark_held_locks+0xf0/0xf0 [ 87.180790][T10886] ? page_endio+0x780/0x780 [ 87.185300][T10886] ? current_time+0x140/0x140 [ 87.189965][T10886] ? generic_write_check_limits+0x2a0/0x2a0 [ 87.195848][T10886] __generic_file_write_iter+0x25e/0x630 [ 87.201500][T10886] ext4_file_write_iter+0x332/0x1070 [ 87.206792][T10886] ? kasan_check_read+0x11/0x20 [ 87.211636][T10886] ? ext4_file_mmap+0x410/0x410 [ 87.216476][T10886] ? do_syscall_64+0xfd/0x680 [ 87.221150][T10886] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 87.227563][T10886] ? iov_iter_init+0xee/0x220 [ 87.232244][T10886] new_sync_write+0x4d3/0x770 [ 87.236931][T10886] ? new_sync_read+0x800/0x800 [ 87.241681][T10886] ? __fdget_pos+0xee/0x110 [ 87.246179][T10886] __vfs_write+0xe1/0x110 [ 87.250500][T10886] vfs_write+0x268/0x5d0 [ 87.254733][T10886] ksys_write+0x14f/0x290 [ 87.259078][T10886] ? __ia32_sys_read+0xb0/0xb0 [ 87.263844][T10886] ? do_syscall_64+0x26/0x680 [ 87.268510][T10886] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 87.274571][T10886] ? do_syscall_64+0x26/0x680 [ 87.279251][T10886] __x64_sys_write+0x73/0xb0 [ 87.283863][T10886] do_syscall_64+0xfd/0x680 [ 87.288361][T10886] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 87.294244][T10886] RIP: 0033:0x446939 [ 87.298128][T10886] Code: e8 4c b4 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 0b 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 87.317717][T10886] RSP: 002b:00007effabbcdce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 87.326151][T10886] RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 0000000000446939 [ 87.334128][T10886] RDX: 000000000007fe00 RSI: 0000000020000200 RDI: 0000000000000006 [ 87.342087][T10886] RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000 [ 87.350055][T10886] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc3c [ 87.358288][T10886] R13: 00007ffd5dd15ddf R14: 00007effabbce9c0 R15: 20c49ba5e353f7cf