Warning: Permanently added '10.128.10.6' (ECDSA) to the list of known hosts. executing program [ 69.236355][ T8447] [ 69.238132][ T8448] overlayfs: upperdir is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection. [ 69.238827][ T8447] ====================================================== [ 69.238833][ T8447] WARNING: possible circular locking dependency detected [ 69.238840][ T8447] 5.13.0-rc2-next-20210518-syzkaller #0 Not tainted [ 69.238849][ T8447] ------------------------------------------------------ [ 69.238854][ T8447] syz-executor269/8447 is trying to acquire lock: [ 69.238864][ T8447] ffff888018fe61a0 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x3a8/0x17e0 [ 69.297692][ T8447] [ 69.297692][ T8447] but task is already holding lock: [ 69.305047][ T8447] ffff888147d38460 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x1ad4/0x27d0 [ 69.313829][ T8447] [ 69.313829][ T8447] which lock already depends on the new lock. [ 69.313829][ T8447] [ 69.324216][ T8447] [ 69.324216][ T8447] the existing dependency chain (in reverse order) is: [ 69.333212][ T8447] [ 69.333212][ T8447] -> #1 (sb_writers#5){.+.+}-{0:0}: [ 69.340589][ T8447] mnt_want_write+0x6e/0x3e0 [ 69.345702][ T8447] ovl_maybe_copy_up+0x11f/0x190 [ 69.351181][ T8447] ovl_open+0xba/0x270 [ 69.355770][ T8447] do_dentry_open+0x4b9/0x11c0 [ 69.361046][ T8447] dentry_open+0x132/0x1d0 [ 69.365992][ T8447] ima_calc_file_hash+0x2d2/0x4b0 [ 69.371539][ T8447] ima_collect_measurement+0x4ca/0x570 [ 69.377537][ T8447] process_measurement+0xd1c/0x17e0 [ 69.383388][ T8447] ima_file_check+0xb1/0x100 [ 69.388590][ T8447] path_openat+0x15b0/0x27d0 [ 69.393704][ T8447] do_filp_open+0x190/0x3d0 [ 69.398752][ T8447] do_sys_openat2+0x16d/0x420 [ 69.403943][ T8447] __x64_sys_open+0x119/0x1c0 [ 69.409136][ T8447] do_syscall_64+0x31/0xb0 [ 69.414084][ T8447] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.420668][ T8447] [ 69.420668][ T8447] -> #0 (&iint->mutex){+.+.}-{3:3}: [ 69.428179][ T8447] __lock_acquire+0x2a17/0x5230 [ 69.433600][ T8447] lock_acquire+0x1ab/0x740 [ 69.438635][ T8447] __mutex_lock+0x139/0x1120 [ 69.443847][ T8447] process_measurement+0x3a8/0x17e0 [ 69.449577][ T8447] ima_file_check+0xb1/0x100 [ 69.454722][ T8447] path_openat+0x15b0/0x27d0 [ 69.459835][ T8447] do_filp_open+0x190/0x3d0 [ 69.464859][ T8447] do_sys_openat2+0x16d/0x420 [ 69.470059][ T8447] __x64_sys_openat+0x13f/0x1f0 [ 69.475425][ T8447] do_syscall_64+0x31/0xb0 [ 69.480821][ T8447] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.487521][ T8447] [ 69.487521][ T8447] other info that might help us debug this: [ 69.487521][ T8447] [ 69.498007][ T8447] Possible unsafe locking scenario: [ 69.498007][ T8447] [ 69.505572][ T8447] CPU0 CPU1 [ 69.510938][ T8447] ---- ---- [ 69.516295][ T8447] lock(sb_writers#5); [ 69.520644][ T8447] lock(&iint->mutex); [ 69.527309][ T8447] lock(sb_writers#5); [ 69.533998][ T8447] lock(&iint->mutex); [ 69.538146][ T8447] [ 69.538146][ T8447] *** DEADLOCK *** [ 69.538146][ T8447] [ 69.546361][ T8447] 1 lock held by syz-executor269/8447: [ 69.551805][ T8447] #0: ffff888147d38460 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x1ad4/0x27d0 [ 69.561038][ T8447] [ 69.561038][ T8447] stack backtrace: [ 69.566989][ T8447] CPU: 1 PID: 8447 Comm: syz-executor269 Not tainted 5.13.0-rc2-next-20210518-syzkaller #0 [ 69.577270][ T8447] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 69.587422][ T8447] Call Trace: [ 69.590694][ T8447] dump_stack_lvl+0x13e/0x1d6 [ 69.595374][ T8447] check_noncircular+0x25f/0x2e0 [ 69.600486][ T8447] ? print_circular_bug+0x1e0/0x1e0 [ 69.605947][ T8447] ? check_path.constprop.0+0x50/0x50 [ 69.611427][ T8447] ? lockdep_lock+0xc6/0x200 [ 69.616015][ T8447] ? call_rcu_zapped+0xb0/0xb0 [ 69.620776][ T8447] __lock_acquire+0x2a17/0x5230 [ 69.625737][ T8447] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.631742][ T8447] lock_acquire+0x1ab/0x740 [ 69.636243][ T8447] ? process_measurement+0x3a8/0x17e0 [ 69.641794][ T8447] ? lock_release+0x720/0x720 [ 69.646593][ T8447] __mutex_lock+0x139/0x1120 [ 69.651178][ T8447] ? process_measurement+0x3a8/0x17e0 [ 69.656565][ T8447] ? process_measurement+0x814/0x17e0 [ 69.662070][ T8447] ? lock_downgrade+0x6e0/0x6e0 [ 69.666928][ T8447] ? process_measurement+0x3a8/0x17e0 [ 69.672386][ T8447] ? mutex_lock_io_nested+0xf70/0xf70 [ 69.677758][ T8447] ? up_write+0x191/0x560 [ 69.682291][ T8447] ? downgrade_write+0x3a0/0x3a0 [ 69.687226][ T8447] ? do_raw_read_unlock+0x3b/0x70 [ 69.692343][ T8447] ? _raw_read_unlock+0x24/0x40 [ 69.697302][ T8447] ? integrity_iint_find+0x123/0x150 [ 69.702695][ T8447] process_measurement+0x3a8/0x17e0 [ 69.707894][ T8447] ? mmap_violation_check+0x1e0/0x1e0 [ 69.713267][ T8447] ? rwlock_bug.part.0+0x90/0x90 [ 69.718312][ T8447] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.724292][ T8447] ? find_held_lock+0x2d/0x110 [ 69.729056][ T8447] ? aa_get_task_label+0x20f/0x540 [ 69.734163][ T8447] ? lock_downgrade+0x6e0/0x6e0 [ 69.739094][ T8447] ? apparmor_file_open+0x1a5/0xab0 [ 69.744289][ T8447] ? aa_get_task_label+0x231/0x540 [ 69.749391][ T8447] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.755720][ T8447] ? apparmor_task_getsecid+0xc2/0x110 [ 69.761232][ T8447] ima_file_check+0xb1/0x100 [ 69.765911][ T8447] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 69.772156][ T8447] ? process_measurement+0x17e0/0x17e0 [ 69.777614][ T8447] ? may_open+0x1f6/0x420 [ 69.781956][ T8447] path_openat+0x15b0/0x27d0 [ 69.786580][ T8447] ? path_lookupat+0x850/0x850 [ 69.791348][ T8447] ? mark_lock+0xef/0x17b0 [ 69.795758][ T8447] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 69.801732][ T8447] do_filp_open+0x190/0x3d0 [ 69.806241][ T8447] ? may_open_dev+0xf0/0xf0 [ 69.810759][ T8447] ? alloc_fd+0x2f0/0x670 [ 69.815088][ T8447] ? rwlock_bug.part.0+0x90/0x90 [ 69.820020][ T8447] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 69.826342][ T8447] ? _find_next_bit+0x1e3/0x260 [ 69.831403][ T8447] ? _raw_spin_unlock+0x24/0x40 [ 69.836259][ T8447] ? alloc_fd+0x2f0/0x670 [ 69.840583][ T8447] do_sys_openat2+0x16d/0x420 [ 69.845255][ T8447] ? build_open_flags+0x6f0/0x6f0 [ 69.850277][ T8447] ? __context_tracking_exit+0xb8/0xe0 [ 69.855731][ T8447] ? lock_downgrade+0x6e0/0x6e0 [ 69.860580][ T8447] __x64_sys_openat+0x13f/0x1f0 [ 69.865425][ T8447] ? __ia32_sys_open+0x1c0/0x1c0 [ 69.870358][ T8447] ? syscall_enter_from_user_mode+0x21/0x70 [ 69.876248][ T8447] do_syscall_64+0x31/0xb0 [ 69.880658][ T8447] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 69.886551][ T8447] RIP: 0033:0x444d09 [ 69.890444][ T8447] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 00 00 90 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 69.910167][ T8447] RSP: 002b:00007fef718eb2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 69.918579][ T8447] RAX: ffffffffffffffda RBX: 00000000004ca400 RCX: 0000000000444d09 [ 69.926551][ T8447] RDX: 000000000000275a RSI: 00000000200000c0 RDI: 00000000ffffff9c [ 69.934516][ T8447] RBP: 000000000049a004 R08: 0000000