[ 156.864936][T17370] get_swap_device: Bad swap file entry 5000000000000001 [ 156.872142][T17370] get_swap_device: Bad swap file entry 5400000000000001 [ 156.879344][T17370] get_swap_device: Bad swap file entry 5800000000000001 [ 156.886498][T17370] get_swap_device: Bad swap file entry 5c00000000000001 [ 156.893523][T17370] get_swap_device: Bad swap file entry 6000000000000001 [ 156.900462][T17370] get_swap_device: Bad swap file entry 6400000000000001 [ 156.907617][T17370] get_swap_device: Bad swap file entry 6800000000000001 [ 156.914630][T17370] get_swap_device: Bad swap file entry 6c00000000000001 [ 156.921566][T17370] get_swap_device: Bad swap file entry 7000000000000001 [ 156.928589][T17370] get_swap_device: Bad swap file entry 7400000000000001 Warning: Permanently added '10.128.1.57' (ECDSA) to the list of known hosts. [ 162.357742][T17373] get_swap_device: Bad swap file entry 00000001 [ 162.364234][T17373] get_swap_device: Bad swap file entry 400000000000001 [ 162.371099][T17373] get_swap_device: Bad swap file entry 800000000000001 [ 162.379116][T17373] get_swap_device: Bad swap file entry c00000000000001 [ 162.386044][T17373] get_swap_device: Bad swap file entry 1000000000000001 [ 162.393489][T17373] get_swap_device: Bad swap file entry 1400000000000001 [ 162.400451][T17373] get_swap_device: Bad swap file entry 1800000000000001 [ 162.407491][T17373] get_swap_device: Bad swap file entry 1c00000000000001 [ 162.414485][T17373] get_swap_device: Bad swap file entry 2000000000000001 [ 162.421421][T17373] get_swap_device: Bad swap file entry 2400000000000001 [ 162.428459][T17373] get_swap_device: Bad swap file entry 2800000000000001 [ 162.435447][T17373] get_swap_device: Bad swap file entry 2c00000000000001 [ 162.442450][T17373] get_swap_device: Bad swap file entry 3000000000000001 [ 162.449405][T17373] get_swap_device: Bad swap file entry 3400000000000001 [ 162.456397][T17373] get_swap_device: Bad swap file entry 3800000000000001 [ 162.463386][T17373] get_swap_device: Bad swap file entry 3c00000000000001 [ 162.470317][T17373] get_swap_device: Bad swap file entry 4000000000000001 [ 162.477331][T17373] get_swap_device: Bad swap file entry 4400000000000001 [ 162.484362][T17373] get_swap_device: Bad swap file entry 4800000000000001 [ 162.491474][T17373] get_swap_device: Bad swap file entry 4c00000000000001 [ 162.498485][T17373] get_swap_device: Bad swap file entry 5000000000000001 [ 162.505511][T17373] get_swap_device: Bad swap file entry 5400000000000001 [ 162.512677][T17373] get_swap_device: Bad swap file entry 5800000000000001 [ 162.519627][T17373] get_swap_device: Bad swap file entry 5c00000000000001 [ 162.526637][T17373] get_swap_device: Bad swap file entry 6000000000000001 [ 162.533990][T17373] get_swap_device: Bad swap file entry 6400000000000001 [ 162.540911][T17373] get_swap_device: Bad swap file entry 6800000000000001 [ 162.547913][T17373] get_swap_device: Bad swap file entry 6c00000000000001 [ 162.554952][T17373] get_swap_device: Bad swap file entry 7000000000000001 [ 162.561953][T17373] get_swap_device: Bad swap file entry 7400000000000001 [ 162.568942][T17373] get_swap_device: Bad swap file entry 00000001 [ 162.575276][T17373] get_swap_device: Bad swap file entry 400000000000001 [ 162.582204][T17373] get_swap_device: Bad swap file entry 800000000000001 [ 162.589087][T17373] get_swap_device: Bad swap file entry c00000000000001 [ 162.596017][T17373] get_swap_device: Bad swap file entry 1000000000000001 [ 162.610660][T17373] get_swap_device: Bad swap file entry 1400000000000001 [ 162.617685][T17373] get_swap_device: Bad swap file entry 1800000000000001 [ 162.624727][T17373] get_swap_device: Bad swap file entry 1c00000000000001 [ 162.631755][T17373] get_swap_device: Bad swap file entry 2000000000000001 [ 162.638704][T17373] get_swap_device: Bad swap file entry 2400000000000001 [ 162.645808][T17373] get_swap_device: Bad swap file entry 2800000000000001 [ 162.652928][T17373] get_swap_device: Bad swap file entry 2c00000000000001 [ 162.660128][T17373] get_swap_device: Bad swap file entry 3000000000000001 [ 162.667526][T17373] get_swap_device: Bad swap file entry 3400000000000001 [ 162.674538][T17373] get_swap_device: Bad swap file entry 3800000000000001 [ 162.681472][T17373] get_swap_device: Bad swap file entry 3c00000000000001 [ 162.688524][T17373] get_swap_device: Bad swap file entry 4000000000000001 [ 162.695534][T17373] get_swap_device: Bad swap file entry 4400000000000001 [ 162.702569][T17373] get_swap_device: Bad swap file entry 4800000000000001 [ 162.709530][T17373] get_swap_device: Bad swap file entry 4c00000000000001 [ 162.716532][T17373] get_swap_device: Bad swap file entry 5000000000000001 [ 162.723525][T17373] get_swap_device: Bad swap file entry 5400000000000001 [ 162.730451][T17373] get_swap_device: Bad swap file entry 5800000000000001 [ 162.737456][T17373] get_swap_device: Bad swap file entry 5c00000000000001 [ 162.744463][T17373] get_swap_device: Bad swap file entry 6000000000000001 [ 162.751398][T17373] get_swap_device: Bad swap file entry 6400000000000001 executing program [ 162.758416][T17373] get_swap_device: Bad swap file entry 6800000000000001 [ 162.765476][T17373] get_swap_device: Bad swap file entry 6c00000000000001 [ 162.772491][T17373] get_swap_device: Bad swap file entry 7000000000000001 [ 162.779433][T17373] get_swap_device: Bad swap file entry 7400000000000001 [ 162.943603][T17373] [ 162.945994][T17373] ====================================================== [ 162.952996][T17373] WARNING: possible circular locking dependency detected [ 162.960010][T17373] 5.2.0-rc2-next-20190531 #4 Not tainted [ 162.965621][T17373] ------------------------------------------------------ [ 162.972760][T17373] syz-executor395/17373 is trying to acquire lock: [ 162.979249][T17373] 000000003d1a4a53 (&sb->s_type->i_mutex_key#10){+.+.}, at: process_measurement+0x15ae/0x15e0 [ 162.989487][T17373] [ 162.989487][T17373] but task is already holding lock: [ 162.996843][T17373] 00000000e0714fc5 (&mm->mmap_sem#2){++++}, at: do_mprotect_pkey+0x1f6/0xa30 [ 163.005626][T17373] [ 163.005626][T17373] which lock already depends on the new lock. [ 163.005626][T17373] [ 163.016198][T17373] [ 163.016198][T17373] the existing dependency chain (in reverse order) is: [ 163.025224][T17373] [ 163.025224][T17373] -> #1 (&mm->mmap_sem#2){++++}: [ 163.032339][T17373] down_read+0x3f/0x1e0 [ 163.037321][T17373] get_user_pages_unlocked+0xfc/0x4a0 [ 163.043230][T17373] get_user_pages_fast+0x43f/0x530 [ 163.048942][T17373] iov_iter_get_pages+0x2c2/0xf80 [ 163.054673][T17373] do_blockdev_direct_IO+0x3f7b/0x8e00 [ 163.060728][T17373] __blockdev_direct_IO+0xa1/0xca [ 163.066277][T17373] ext4_direct_IO+0xaa7/0x1bb0 [ 163.071587][T17373] generic_file_direct_write+0x20a/0x4a0 [ 163.077749][T17373] __generic_file_write_iter+0x2ee/0x630 [ 163.083903][T17373] ext4_file_write_iter+0x332/0x1070 [ 163.089711][T17373] new_sync_write+0x4d3/0x770 [ 163.094907][T17373] __vfs_write+0xe1/0x110 [ 163.099758][T17373] vfs_write+0x268/0x5d0 [ 163.104516][T17373] ksys_write+0x14f/0x290 [ 163.109469][T17373] __x64_sys_write+0x73/0xb0 [ 163.114761][T17373] do_syscall_64+0xfd/0x680 [ 163.119790][T17373] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 163.126368][T17373] [ 163.126368][T17373] -> #0 (&sb->s_type->i_mutex_key#10){+.+.}: [ 163.134525][T17373] lock_acquire+0x16f/0x3f0 [ 163.140224][T17373] down_write+0x38/0xa0 [ 163.145212][T17373] process_measurement+0x15ae/0x15e0 [ 163.151034][T17373] ima_file_mmap+0x11a/0x130 [ 163.156157][T17373] security_file_mprotect+0xd5/0x100 [ 163.161960][T17373] do_mprotect_pkey+0x537/0xa30 [ 163.167335][T17373] __x64_sys_pkey_mprotect+0x97/0xf0 [ 163.173258][T17373] do_syscall_64+0xfd/0x680 [ 163.178283][T17373] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 163.184681][T17373] [ 163.184681][T17373] other info that might help us debug this: [ 163.184681][T17373] [ 163.194900][T17373] Possible unsafe locking scenario: [ 163.194900][T17373] [ 163.202343][T17373] CPU0 CPU1 [ 163.208829][T17373] ---- ---- [ 163.214180][T17373] lock(&mm->mmap_sem#2); [ 163.218581][T17373] lock(&sb->s_type->i_mutex_key#10); [ 163.226548][T17373] lock(&mm->mmap_sem#2); [ 163.233490][T17373] lock(&sb->s_type->i_mutex_key#10); [ 163.238943][T17373] [ 163.238943][T17373] *** DEADLOCK *** [ 163.238943][T17373] [ 163.247090][T17373] 1 lock held by syz-executor395/17373: [ 163.252624][T17373] #0: 00000000e0714fc5 (&mm->mmap_sem#2){++++}, at: do_mprotect_pkey+0x1f6/0xa30 [ 163.261816][T17373] [ 163.261816][T17373] stack backtrace: [ 163.267701][T17373] CPU: 1 PID: 17373 Comm: syz-executor395 Not tainted 5.2.0-rc2-next-20190531 #4 [ 163.276790][T17373] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 163.286851][T17373] Call Trace: [ 163.290133][T17373] dump_stack+0x172/0x1f0 [ 163.294449][T17373] print_circular_bug.cold+0x1cc/0x28f [ 163.299894][T17373] __lock_acquire+0x3755/0x5490 [ 163.304738][T17373] ? ima_match_policy+0x9e9/0x13b0 [ 163.309836][T17373] ? mark_held_locks+0xf0/0xf0 [ 163.314605][T17373] ? ima_match_policy+0xa10/0x13b0 [ 163.319704][T17373] lock_acquire+0x16f/0x3f0 [ 163.324194][T17373] ? process_measurement+0x15ae/0x15e0 [ 163.329646][T17373] down_write+0x38/0xa0 [ 163.333787][T17373] ? process_measurement+0x15ae/0x15e0 [ 163.339234][T17373] process_measurement+0x15ae/0x15e0 [ 163.344506][T17373] ? aa_file_perm+0x40b/0xeb0 [ 163.349171][T17373] ? mmap_violation_check+0x200/0x200 [ 163.354530][T17373] ? mark_held_locks+0xf0/0xf0 [ 163.359302][T17373] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 163.365553][T17373] ? kasan_check_read+0x11/0x20 [ 163.370394][T17373] ? aa_get_task_label+0x3a6/0x720 [ 163.375492][T17373] ? find_held_lock+0x35/0x130 [ 163.380279][T17373] ? aa_get_task_label+0x3a6/0x720 [ 163.385391][T17373] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 163.391723][T17373] ? refcount_sub_and_test_checked+0x154/0x200 [ 163.397881][T17373] ? refcount_dec_not_one+0x1f0/0x1f0 [ 163.404454][T17373] ? refcount_dec_and_test_checked+0x1b/0x20 [ 163.410992][T17373] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 163.421725][T17373] ? apparmor_task_getsecid+0x94/0xd0 [ 163.430693][T17373] ima_file_mmap+0x11a/0x130 [ 163.437056][T17373] ? ima_file_free+0x4a0/0x4a0 [ 163.441823][T17373] security_file_mprotect+0xd5/0x100 [ 163.447114][T17373] do_mprotect_pkey+0x537/0xa30 [ 163.451973][T17373] ? mprotect_fixup+0xa70/0xa70 [ 163.457435][T17373] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 163.463032][T17373] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 163.468520][T17373] ? do_syscall_64+0x26/0x680 [ 163.473200][T17373] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 163.479290][T17373] ? do_syscall_64+0x26/0x680 [ 163.483985][T17373] __x64_sys_pkey_mprotect+0x97/0xf0 [ 163.489555][T17373] do_syscall_64+0xfd/0x680 [ 163.494159][T17373] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 163.500048][T17373] RIP: 0033:0x440279 [ 163.504633][T17373] Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 163.524765][T17373] RSP: 002b:00007ffeec2f48d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000149 [ 163.533174][T17373] RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440279 [ 163.542456][T17373] RDX: 000000000000000