Warning: Permanently added '10.128.0.127' (ED25519) to the list of known hosts. executing program [ 51.405234][ T3540] [ 51.407565][ T3540] ====================================================== [ 51.414562][ T3540] WARNING: possible circular locking dependency detected [ 51.421553][ T3540] 6.1.62-syzkaller #0 Not tainted [ 51.426546][ T3540] ------------------------------------------------------ [ 51.433539][ T3540] syz-executor180/3540 is trying to acquire lock: [ 51.439921][ T3540] ffff88807e286460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 51.448647][ T3540] [ 51.448647][ T3540] but task is already holding lock: [ 51.455988][ T3540] ffff888024c2b860 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 [ 51.465350][ T3540] [ 51.465350][ T3540] which lock already depends on the new lock. [ 51.465350][ T3540] [ 51.475731][ T3540] [ 51.475731][ T3540] the existing dependency chain (in reverse order) is: [ 51.484719][ T3540] [ 51.484719][ T3540] -> #1 (&iint->mutex){+.+.}-{3:3}: [ 51.492081][ T3540] lock_acquire+0x1f8/0x5a0 [ 51.497085][ T3540] __mutex_lock+0x132/0xd80 [ 51.502096][ T3540] process_measurement+0x7fe/0x1cf0 [ 51.507794][ T3540] ima_file_check+0xed/0x170 [ 51.512892][ T3540] path_openat+0x2687/0x2e60 [ 51.517985][ T3540] do_filp_open+0x230/0x480 [ 51.522984][ T3540] do_sys_openat2+0x13b/0x500 [ 51.528166][ T3540] __x64_sys_openat+0x243/0x290 [ 51.533516][ T3540] do_syscall_64+0x3d/0xb0 [ 51.538429][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.544822][ T3540] [ 51.544822][ T3540] -> #0 (sb_writers#4){.+.+}-{0:0}: [ 51.552184][ T3540] validate_chain+0x1667/0x58e0 [ 51.557533][ T3540] __lock_acquire+0x125b/0x1f80 [ 51.562972][ T3540] lock_acquire+0x1f8/0x5a0 [ 51.567981][ T3540] sb_start_write+0x4d/0x1c0 [ 51.573066][ T3540] mnt_want_write+0x3b/0x80 [ 51.578068][ T3540] ovl_maybe_copy_up+0x111/0x180 [ 51.583535][ T3540] ovl_open+0x108/0x2a0 [ 51.588205][ T3540] do_dentry_open+0x7f9/0x10f0 [ 51.593477][ T3540] dentry_open+0xc1/0x120 [ 51.598317][ T3540] ima_calc_file_hash+0x159/0x1c00 [ 51.603932][ T3540] ima_collect_measurement+0x4d4/0x970 [ 51.609900][ T3540] process_measurement+0x1018/0x1cf0 [ 51.615697][ T3540] ima_file_check+0xed/0x170 [ 51.620792][ T3540] path_openat+0x2687/0x2e60 [ 51.625884][ T3540] do_filp_open+0x230/0x480 [ 51.630891][ T3540] do_sys_openat2+0x13b/0x500 [ 51.636084][ T3540] __x64_sys_openat+0x243/0x290 [ 51.641436][ T3540] do_syscall_64+0x3d/0xb0 [ 51.646352][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.652744][ T3540] [ 51.652744][ T3540] other info that might help us debug this: [ 51.652744][ T3540] [ 51.662950][ T3540] Possible unsafe locking scenario: [ 51.662950][ T3540] [ 51.670375][ T3540] CPU0 CPU1 [ 51.675714][ T3540] ---- ---- [ 51.681052][ T3540] lock(&iint->mutex); [ 51.685188][ T3540] lock(sb_writers#4); [ 51.691841][ T3540] lock(&iint->mutex); [ 51.698487][ T3540] lock(sb_writers#4); [ 51.702620][ T3540] [ 51.702620][ T3540] *** DEADLOCK *** [ 51.702620][ T3540] [ 51.710739][ T3540] 1 lock held by syz-executor180/3540: [ 51.716170][ T3540] #0: ffff888024c2b860 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 [ 51.725974][ T3540] [ 51.725974][ T3540] stack backtrace: [ 51.731848][ T3540] CPU: 1 PID: 3540 Comm: syz-executor180 Not tainted 6.1.62-syzkaller #0 [ 51.740231][ T3540] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 [ 51.750261][ T3540] Call Trace: [ 51.753521][ T3540] [ 51.756431][ T3540] dump_stack_lvl+0x1e3/0x2cb [ 51.761090][ T3540] ? nf_tcp_handle_invalid+0x642/0x642 [ 51.766531][ T3540] ? print_circular_bug+0x12b/0x1a0 [ 51.771713][ T3540] check_noncircular+0x2fa/0x3b0 [ 51.776631][ T3540] ? add_chain_block+0x850/0x850 [ 51.781545][ T3540] ? lockdep_lock+0x11f/0x2a0 [ 51.786202][ T3540] ? do_raw_spin_unlock+0x137/0x8a0 [ 51.791374][ T3540] ? _find_first_zero_bit+0xd0/0x100 [ 51.796639][ T3540] validate_chain+0x1667/0x58e0 [ 51.801473][ T3540] ? _raw_spin_unlock+0x40/0x40 [ 51.806304][ T3540] ? tomoyo_check_open_permission+0x347/0x4c0 [ 51.812353][ T3540] ? kasan_set_track+0x60/0x70 [ 51.817096][ T3540] ? reacquire_held_locks+0x660/0x660 [ 51.822447][ T3540] ? __kmem_cache_free+0x25c/0x3c0 [ 51.827535][ T3540] ? tomoyo_check_open_permission+0x347/0x4c0 [ 51.833671][ T3540] ? security_file_open+0x5f/0xa0 [ 51.838668][ T3540] ? do_dentry_open+0x308/0x10f0 [ 51.843587][ T3540] ? dentry_open+0xc1/0x120 [ 51.848071][ T3540] ? ima_calc_file_hash+0x159/0x1c00 [ 51.853332][ T3540] ? ima_collect_measurement+0x4d4/0x970 [ 51.858948][ T3540] ? process_measurement+0x1018/0x1cf0 [ 51.864384][ T3540] ? ima_file_check+0xed/0x170 [ 51.869129][ T3540] ? path_openat+0x2687/0x2e60 [ 51.873871][ T3540] ? do_filp_open+0x230/0x480 [ 51.878522][ T3540] ? do_sys_openat2+0x13b/0x500 [ 51.883349][ T3540] ? __x64_sys_openat+0x243/0x290 [ 51.888352][ T3540] ? do_syscall_64+0x3d/0xb0 [ 51.892946][ T3540] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 51.898994][ T3540] ? mark_lock+0x9a/0x340 [ 51.903310][ T3540] ? mark_lock+0x9a/0x340 [ 51.907620][ T3540] __lock_acquire+0x125b/0x1f80 [ 51.912457][ T3540] lock_acquire+0x1f8/0x5a0 [ 51.916941][ T3540] ? mnt_want_write+0x3b/0x80 [ 51.921598][ T3540] ? read_lock_is_recursive+0x10/0x10 [ 51.926961][ T3540] ? tomoyo_check_open_permission+0x1f2/0x4c0 [ 51.933010][ T3540] ? __might_sleep+0xb0/0xb0 [ 51.937574][ T3540] ? aa_get_newest_label+0xfb/0x6e0 [ 51.942761][ T3540] ? end_current_label_crit_section+0x170/0x170 [ 51.948982][ T3540] sb_start_write+0x4d/0x1c0 [ 51.953548][ T3540] ? mnt_want_write+0x3b/0x80 [ 51.958201][ T3540] mnt_want_write+0x3b/0x80 [ 51.962681][ T3540] ovl_maybe_copy_up+0x111/0x180 [ 51.967600][ T3540] ovl_open+0x108/0x2a0 [ 51.971735][ T3540] ? ovl_mmap+0x430/0x430 [ 51.976085][ T3540] ? __mnt_want_write+0x64/0x2a0 [ 51.981001][ T3540] ? fsnotify_perm+0x42f/0x590 [ 51.985745][ T3540] ? ovl_mmap+0x430/0x430 [ 51.990061][ T3540] do_dentry_open+0x7f9/0x10f0 [ 51.994810][ T3540] dentry_open+0xc1/0x120 [ 51.999119][ T3540] ima_calc_file_hash+0x159/0x1c00 [ 52.004210][ T3540] ? __might_sleep+0xb0/0xb0 [ 52.008774][ T3540] ? validate_chain+0x13d1/0x58e0 [ 52.013779][ T3540] ? reacquire_held_locks+0x660/0x660 [ 52.019135][ T3540] ? ima_alloc_tfm+0x310/0x310 [ 52.023881][ T3540] ? ext4_xattr_get+0x53c/0x7f0 [ 52.028714][ T3540] ? __up_read+0x2b9/0x690 [ 52.033111][ T3540] ? up_read+0x20/0x20 [ 52.037160][ T3540] ? cap_inode_killpriv+0x40/0x40 [ 52.042163][ T3540] ? ext4_xattr_get+0x53c/0x7f0 [ 52.046992][ T3540] ? bpf_lsm_inode_getsecurity+0x5/0x10 [ 52.052513][ T3540] ? ext4_initxattrs+0x110/0x110 [ 52.057423][ T3540] ? vfs_getxattr+0x6cc/0x740 [ 52.062084][ T3540] ? __vfs_getxattr+0x410/0x410 [ 52.066913][ T3540] ? trace_raw_output_contention_end+0xd0/0xd0 [ 52.073051][ T3540] ima_collect_measurement+0x4d4/0x970 [ 52.078487][ T3540] ? ima_get_action+0xa0/0xa0 [ 52.083140][ T3540] ? ovl_own_xattr_set+0x10/0x10 [ 52.088062][ T3540] process_measurement+0x1018/0x1cf0 [ 52.093327][ T3540] ? ima_file_mmap+0x1c0/0x1c0 [ 52.098067][ T3540] ? fsnotify_perm+0x428/0x590 [ 52.102820][ T3540] ? inode_to_bdi+0x65/0xd0 [ 52.107322][ T3540] ? file_ra_state_init+0x38/0xb0 [ 52.112346][ T3540] ? ovl_open+0x16b/0x2a0 [ 52.116664][ T3540] ? aa_get_current_label+0x111/0x1d0 [ 52.122014][ T3540] ? apparmor_current_getsecid_subj+0xac/0x110 [ 52.128146][ T3540] ima_file_check+0xed/0x170 [ 52.132718][ T3540] ? do_dentry_open+0xc1d/0x10f0 [ 52.137636][ T3540] ? ima_bprm_check+0x2b0/0x2b0 [ 52.142467][ T3540] path_openat+0x2687/0x2e60 [ 52.147047][ T3540] ? do_filp_open+0x480/0x480 [ 52.151707][ T3540] do_filp_open+0x230/0x480 [ 52.156187][ T3540] ? vfs_tmpfile+0x4a0/0x4a0 [ 52.160754][ T3540] ? _raw_spin_unlock+0x24/0x40 [ 52.165582][ T3540] ? alloc_fd+0x59c/0x640 [ 52.169896][ T3540] do_sys_openat2+0x13b/0x500 [ 52.174556][ T3540] ? mntput_no_expire+0xbe/0x850 [ 52.179472][ T3540] ? do_sys_open+0x220/0x220 [ 52.184045][ T3540] ? mntput+0xb0/0xb0 [ 52.188003][ T3540] __x64_sys_openat+0x243/0x290 [ 52.192833][ T3540] ? __ia32_sys_open+0x270/0x270 [ 52.197747][ T3540] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.203710][ T3540] ? lockdep_hardirqs_on+0x94/0x130 [ 52.208887][ T3540] ? syscall_enter_from_user_mode+0x2e/0x220 [ 52.214846][ T3540] do_syscall_64+0x3d/0xb0 [ 52.219241][ T3540] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 52.225112][ T3540] RIP: 0033:0x7f2bdb2124e9 [ 52.229506][ T3540] 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 [ 52.249090][ T3540] RSP: 002b:00007ffca0f6d228 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 52.257483][ T3540