Warning: Permanently added '10.128.1.191' (ED25519) to the list of known hosts. executing program [ 50.860558][ T3505] [ 50.862941][ T3505] ====================================================== [ 50.870048][ T3505] WARNING: possible circular locking dependency detected [ 50.877075][ T3505] 5.15.124-syzkaller #0 Not tainted [ 50.882433][ T3505] ------------------------------------------------------ [ 50.889442][ T3505] syz-executor121/3505 is trying to acquire lock: [ 50.895843][ T3505] ffff88807f0c8460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 50.904561][ T3505] [ 50.904561][ T3505] but task is already holding lock: [ 50.911946][ T3505] ffff8880167e3e00 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x733/0x1d60 [ 50.921333][ T3505] [ 50.921333][ T3505] which lock already depends on the new lock. [ 50.921333][ T3505] [ 50.931718][ T3505] [ 50.931718][ T3505] the existing dependency chain (in reverse order) is: [ 50.940727][ T3505] [ 50.940727][ T3505] -> #1 (&iint->mutex){+.+.}-{3:3}: [ 50.948097][ T3505] lock_acquire+0x1db/0x4f0 [ 50.953120][ T3505] __mutex_lock_common+0x1da/0x25a0 [ 50.958843][ T3505] mutex_lock_nested+0x17/0x20 [ 50.964131][ T3505] process_measurement+0x733/0x1d60 [ 50.969837][ T3505] ima_file_check+0xf3/0x180 [ 50.974938][ T3505] path_openat+0x2745/0x2f20 [ 50.980040][ T3505] do_filp_open+0x21c/0x460 [ 50.985061][ T3505] do_sys_openat2+0x13b/0x500 [ 50.990297][ T3505] __x64_sys_openat+0x243/0x290 [ 50.995700][ T3505] do_syscall_64+0x3d/0xb0 [ 51.000635][ T3505] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.007043][ T3505] [ 51.007043][ T3505] -> #0 (sb_writers#5){.+.+}-{0:0}: [ 51.014431][ T3505] validate_chain+0x1646/0x58b0 [ 51.019815][ T3505] __lock_acquire+0x1295/0x1ff0 [ 51.025187][ T3505] lock_acquire+0x1db/0x4f0 [ 51.030208][ T3505] sb_start_write+0x4f/0x1c0 [ 51.035321][ T3505] mnt_want_write+0x3b/0x80 [ 51.040347][ T3505] ovl_maybe_copy_up+0x111/0x180 [ 51.045801][ T3505] ovl_open+0xa4/0x200 [ 51.050513][ T3505] do_dentry_open+0x807/0xfb0 [ 51.055714][ T3505] dentry_open+0xc6/0x120 [ 51.060552][ T3505] ima_calc_file_hash+0x15f/0x1c00 [ 51.066173][ T3505] ima_collect_measurement+0x293/0x530 [ 51.072150][ T3505] process_measurement+0x1038/0x1d60 [ 51.077944][ T3505] ima_file_check+0xf3/0x180 [ 51.083043][ T3505] path_openat+0x2745/0x2f20 [ 51.088142][ T3505] do_filp_open+0x21c/0x460 [ 51.093151][ T3505] do_sys_openat2+0x13b/0x500 [ 51.098332][ T3505] __x64_sys_openat+0x243/0x290 [ 51.103688][ T3505] do_syscall_64+0x3d/0xb0 [ 51.108638][ T3505] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.115040][ T3505] [ 51.115040][ T3505] other info that might help us debug this: [ 51.115040][ T3505] [ 51.125249][ T3505] Possible unsafe locking scenario: [ 51.125249][ T3505] [ 51.132682][ T3505] CPU0 CPU1 [ 51.138047][ T3505] ---- ---- [ 51.143420][ T3505] lock(&iint->mutex); [ 51.147675][ T3505] lock(sb_writers#5); [ 51.154339][ T3505] lock(&iint->mutex); [ 51.161013][ T3505] lock(sb_writers#5); [ 51.165156][ T3505] [ 51.165156][ T3505] *** DEADLOCK *** [ 51.165156][ T3505] [ 51.173285][ T3505] 1 lock held by syz-executor121/3505: [ 51.178725][ T3505] #0: ffff8880167e3e00 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x733/0x1d60 [ 51.188546][ T3505] [ 51.188546][ T3505] stack backtrace: [ 51.194417][ T3505] CPU: 1 PID: 3505 Comm: syz-executor121 Not tainted 5.15.124-syzkaller #0 [ 51.202986][ T3505] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 51.213045][ T3505] Call Trace: [ 51.216313][ T3505] [ 51.219232][ T3505] dump_stack_lvl+0x1e3/0x2cb [ 51.223902][ T3505] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 51.229527][ T3505] ? print_circular_bug+0x12b/0x1a0 [ 51.234718][ T3505] check_noncircular+0x2f8/0x3b0 [ 51.239646][ T3505] ? add_chain_block+0x850/0x850 [ 51.244589][ T3505] ? lockdep_lock+0x11f/0x2a0 [ 51.249259][ T3505] validate_chain+0x1646/0x58b0 [ 51.254097][ T3505] ? kfree+0xf1/0x270 [ 51.258075][ T3505] ? kasan_set_track+0x4b/0x80 [ 51.262831][ T3505] ? __x64_sys_openat+0x243/0x290 [ 51.267839][ T3505] ? entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.273898][ T3505] ? reacquire_held_locks+0x660/0x660 [ 51.279256][ T3505] ? mark_lock+0x98/0x340 [ 51.283574][ T3505] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 51.289544][ T3505] ? mark_lock+0x98/0x340 [ 51.293873][ T3505] __lock_acquire+0x1295/0x1ff0 [ 51.298713][ T3505] lock_acquire+0x1db/0x4f0 [ 51.303213][ T3505] ? mnt_want_write+0x3b/0x80 [ 51.307964][ T3505] ? read_lock_is_recursive+0x10/0x10 [ 51.313338][ T3505] ? aa_get_newest_label+0xf9/0x6c0 [ 51.318546][ T3505] ? __might_sleep+0xc0/0xc0 [ 51.323132][ T3505] ? apparmor_file_open+0x3e3/0x820 [ 51.328319][ T3505] sb_start_write+0x4f/0x1c0 [ 51.332988][ T3505] ? mnt_want_write+0x3b/0x80 [ 51.337676][ T3505] mnt_want_write+0x3b/0x80 [ 51.342170][ T3505] ovl_maybe_copy_up+0x111/0x180 [ 51.347099][ T3505] ovl_open+0xa4/0x200 [ 51.351159][ T3505] ? ovl_mmap+0x440/0x440 [ 51.355479][ T3505] do_dentry_open+0x807/0xfb0 [ 51.360152][ T3505] dentry_open+0xc6/0x120 [ 51.364490][ T3505] ima_calc_file_hash+0x15f/0x1c00 [ 51.369598][ T3505] ? mark_lock+0x98/0x340 [ 51.373932][ T3505] ? __lock_acquire+0x1295/0x1ff0 [ 51.378967][ T3505] ? ima_alloc_tfm+0x310/0x310 [ 51.383735][ T3505] ? __might_sleep+0xc0/0xc0 [ 51.388312][ T3505] ? ext4_xattr_get+0x53c/0x7f0 [ 51.393159][ T3505] ? __up_read+0x2b9/0x690 [ 51.397598][ T3505] ? up_read+0x20/0x20 [ 51.401662][ T3505] ? ext4_xattr_get+0x53c/0x7f0 [ 51.406506][ T3505] ? bpf_lsm_inode_getsecurity+0x5/0x10 [ 51.412051][ T3505] ? ext4_initxattrs+0x110/0x110 [ 51.416982][ T3505] ? vfs_getxattr+0x70c/0x760 [ 51.421668][ T3505] ima_collect_measurement+0x293/0x530 [ 51.427121][ T3505] ? ima_get_action+0xa0/0xa0 [ 51.431792][ T3505] ? ima_get_cache_status+0x1c0/0x1c0 [ 51.437183][ T3505] process_measurement+0x1038/0x1d60 [ 51.442486][ T3505] ? ima_file_mmap+0x1c0/0x1c0 [ 51.447280][ T3505] ? apparmor_task_getsecid+0xb2/0x110 [ 51.452735][ T3505] ima_file_check+0xf3/0x180 [ 51.457337][ T3505] ? do_dentry_open+0xb41/0xfb0 [ 51.462182][ T3505] ? ima_bprm_check+0x2b0/0x2b0 [ 51.467033][ T3505] path_openat+0x2745/0x2f20 [ 51.471713][ T3505] ? do_filp_open+0x460/0x460 [ 51.476404][ T3505] do_filp_open+0x21c/0x460 [ 51.480914][ T3505] ? vfs_tmpfile+0x2e0/0x2e0 [ 51.485603][ T3505] ? _raw_spin_unlock+0x24/0x40 [ 51.490458][ T3505] ? alloc_fd+0x594/0x630 [ 51.494910][ T3505] do_sys_openat2+0x13b/0x500 [ 51.499952][ T3505] ? read_lock_is_recursive+0x10/0x10 [ 51.505431][ T3505] ? do_sys_open+0x220/0x220 [ 51.510014][ T3505] ? do_raw_spin_unlock+0x137/0x8b0 [ 51.515212][ T3505] __x64_sys_openat+0x243/0x290 [ 51.520068][ T3505] ? __ia32_sys_open+0x270/0x270 [ 51.525006][ T3505] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.531064][ T3505] ? lockdep_hardirqs_on+0x94/0x130 [ 51.536363][ T3505] ? syscall_enter_from_user_mode+0x2e/0x230 [ 51.542334][ T3505] do_syscall_64+0x3d/0xb0 [ 51.546770][ T3505] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 51.552760][ T3505] RIP: 0033:0x7f4063f4c4a9 [ 51.557168][ T3505] Code: 48 83 c4 28 c3 e8 37 17 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 [ 51.576772][ T3505] RSP: 002b:00007ffebc12ff18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 51.585351][ T3505] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f4063f4c4a9 [ 51.593320][ T3505] RDX: 0000000000000043 RSI: 00000000200000c0 RDI: 00000000ffffff9c [ 51.601291][ T3505] RBP: 00007f4063fbf610 R08: 00007ffebc1300e8 R09: 00007ffebc1300e8 [ 51.609249][ T3505] R10: 0000000000000000 R11: 0000