Warning: Permanently added '10.128.1.84' (ECDSA) to the list of known hosts. executing program [ 66.510931][ T3544] [ 66.513294][ T3544] ====================================================== [ 66.520857][ T3544] WARNING: possible circular locking dependency detected [ 66.527896][ T3544] 6.1.28-syzkaller #0 Not tainted [ 66.532938][ T3544] ------------------------------------------------------ [ 66.540221][ T3544] syz-executor522/3544 is trying to acquire lock: [ 66.547256][ T3544] ffff8880283e2460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 66.557134][ T3544] [ 66.557134][ T3544] but task is already holding lock: [ 66.564623][ T3544] ffff888027578080 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 [ 66.574305][ T3544] [ 66.574305][ T3544] which lock already depends on the new lock. [ 66.574305][ T3544] [ 66.585163][ T3544] [ 66.585163][ T3544] the existing dependency chain (in reverse order) is: [ 66.594336][ T3544] [ 66.594336][ T3544] -> #1 (&iint->mutex){+.+.}-{3:3}: [ 66.601916][ T3544] lock_acquire+0x1f8/0x5a0 [ 66.606989][ T3544] __mutex_lock_common+0x1d4/0x2520 [ 66.612750][ T3544] mutex_lock_nested+0x17/0x20 [ 66.618150][ T3544] process_measurement+0x7fe/0x1cf0 [ 66.623992][ T3544] ima_file_check+0xed/0x170 [ 66.629149][ T3544] path_openat+0x2687/0x2e60 [ 66.634567][ T3544] do_filp_open+0x230/0x480 [ 66.639611][ T3544] do_sys_openat2+0x13b/0x500 [ 66.644924][ T3544] __x64_sys_openat+0x243/0x290 [ 66.650419][ T3544] do_syscall_64+0x3d/0xb0 [ 66.655469][ T3544] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.661889][ T3544] [ 66.661889][ T3544] -> #0 (sb_writers#4){.+.+}-{0:0}: [ 66.669467][ T3544] validate_chain+0x1667/0x58e0 [ 66.675125][ T3544] __lock_acquire+0x125b/0x1f80 [ 66.680519][ T3544] lock_acquire+0x1f8/0x5a0 [ 66.685564][ T3544] sb_start_write+0x4d/0x1c0 [ 66.690700][ T3544] mnt_want_write+0x3b/0x80 [ 66.695932][ T3544] ovl_maybe_copy_up+0x111/0x180 [ 66.701429][ T3544] ovl_open+0x108/0x2a0 [ 66.706178][ T3544] do_dentry_open+0x7f9/0x10f0 [ 66.711550][ T3544] dentry_open+0xc1/0x120 [ 66.716499][ T3544] ima_calc_file_hash+0x159/0x1c00 [ 66.722700][ T3544] ima_collect_measurement+0x4d4/0x970 [ 66.728815][ T3544] process_measurement+0x1018/0x1cf0 [ 66.734927][ T3544] ima_file_check+0xed/0x170 [ 66.740070][ T3544] path_openat+0x2687/0x2e60 [ 66.745652][ T3544] do_filp_open+0x230/0x480 [ 66.750921][ T3544] do_sys_openat2+0x13b/0x500 [ 66.756268][ T3544] __x64_sys_openat+0x243/0x290 [ 66.761792][ T3544] do_syscall_64+0x3d/0xb0 [ 66.766950][ T3544] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 66.773394][ T3544] [ 66.773394][ T3544] other info that might help us debug this: [ 66.773394][ T3544] [ 66.783839][ T3544] Possible unsafe locking scenario: [ 66.783839][ T3544] [ 66.791773][ T3544] CPU0 CPU1 [ 66.797802][ T3544] ---- ---- [ 66.803438][ T3544] lock(&iint->mutex); [ 66.807880][ T3544] lock(sb_writers#4); [ 66.815041][ T3544] lock(&iint->mutex); [ 66.821922][ T3544] lock(sb_writers#4); [ 66.826199][ T3544] [ 66.826199][ T3544] *** DEADLOCK *** [ 66.826199][ T3544] [ 66.834639][ T3544] 1 lock held by syz-executor522/3544: [ 66.840114][ T3544] #0: ffff888027578080 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 [ 66.850235][ T3544] [ 66.850235][ T3544] stack backtrace: [ 66.856399][ T3544] CPU: 1 PID: 3544 Comm: syz-executor522 Not tainted 6.1.28-syzkaller #0 [ 66.864892][ T3544] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 [ 66.875383][ T3544] Call Trace: [ 66.879167][ T3544] [ 66.882952][ T3544] dump_stack_lvl+0x1e3/0x2cb [ 66.888473][ T3544] ? nf_tcp_handle_invalid+0x642/0x642 [ 66.893999][ T3544] ? print_circular_bug+0x12b/0x1a0 [ 66.899511][ T3544] check_noncircular+0x2fa/0x3b0 [ 66.904932][ T3544] ? add_chain_block+0x850/0x850 [ 66.910650][ T3544] ? lockdep_lock+0x11f/0x2a0 [ 66.915984][ T3544] ? do_raw_spin_unlock+0x137/0x8a0 [ 66.921748][ T3544] ? _find_first_zero_bit+0xd0/0x100 [ 66.927148][ T3544] validate_chain+0x1667/0x58e0 [ 66.932042][ T3544] ? _raw_spin_unlock+0x40/0x40 [ 66.936961][ T3544] ? tomoyo_check_open_permission+0x373/0x490 [ 66.943181][ T3544] ? kasan_set_track+0x60/0x70 [ 66.947981][ T3544] ? reacquire_held_locks+0x660/0x660 [ 66.953432][ T3544] ? __kmem_cache_free+0x25c/0x3c0 [ 66.959554][ T3544] ? tomoyo_check_open_permission+0x373/0x490 [ 66.966037][ T3544] ? security_file_open+0x5f/0xa0 [ 66.971460][ T3544] ? do_dentry_open+0x308/0x10f0 [ 66.976716][ T3544] ? dentry_open+0xc1/0x120 [ 66.981723][ T3544] ? ima_calc_file_hash+0x159/0x1c00 [ 66.987048][ T3544] ? ima_collect_measurement+0x4d4/0x970 [ 66.992796][ T3544] ? process_measurement+0x1018/0x1cf0 [ 66.998359][ T3544] ? ima_file_check+0xed/0x170 [ 67.003223][ T3544] ? path_openat+0x2687/0x2e60 [ 67.008284][ T3544] ? do_filp_open+0x230/0x480 [ 67.013360][ T3544] ? do_sys_openat2+0x13b/0x500 [ 67.018696][ T3544] ? __x64_sys_openat+0x243/0x290 [ 67.024057][ T3544] ? do_syscall_64+0x3d/0xb0 [ 67.029821][ T3544] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 67.036839][ T3544] ? mark_lock+0x9a/0x340 [ 67.041205][ T3544] ? mark_lock+0x9a/0x340 [ 67.045599][ T3544] __lock_acquire+0x125b/0x1f80 [ 67.050843][ T3544] lock_acquire+0x1f8/0x5a0 [ 67.055749][ T3544] ? mnt_want_write+0x3b/0x80 [ 67.060494][ T3544] ? read_lock_is_recursive+0x10/0x10 [ 67.066173][ T3544] ? __might_sleep+0xb0/0xb0 [ 67.071182][ T3544] ? aa_get_newest_label+0xf9/0x6c0 [ 67.076428][ T3544] ? end_current_label_crit_section+0x170/0x170 [ 67.082982][ T3544] sb_start_write+0x4d/0x1c0 [ 67.087736][ T3544] ? mnt_want_write+0x3b/0x80 [ 67.092442][ T3544] mnt_want_write+0x3b/0x80 [ 67.097058][ T3544] ovl_maybe_copy_up+0x111/0x180 [ 67.102014][ T3544] ovl_open+0x108/0x2a0 [ 67.106211][ T3544] ? ovl_mmap+0x430/0x430 [ 67.110583][ T3544] ? fsnotify_perm+0x42f/0x590 [ 67.115362][ T3544] ? ovl_mmap+0x430/0x430 [ 67.119743][ T3544] do_dentry_open+0x7f9/0x10f0 [ 67.124738][ T3544] dentry_open+0xc1/0x120 [ 67.129188][ T3544] ima_calc_file_hash+0x159/0x1c00 [ 67.134422][ T3544] ? __lock_acquire+0x125b/0x1f80 [ 67.139590][ T3544] ? ima_alloc_tfm+0x310/0x310 [ 67.144433][ T3544] ? ext4_xattr_get+0x53c/0x7f0 [ 67.149684][ T3544] ? __up_read+0x2b9/0x690 [ 67.154229][ T3544] ? up_read+0x20/0x20 [ 67.158373][ T3544] ? ext4_xattr_get+0x53c/0x7f0 [ 67.163445][ T3544] ? bpf_lsm_inode_getsecurity+0x5/0x10 [ 67.169064][ T3544] ? ext4_initxattrs+0x110/0x110 [ 67.174047][ T3544] ? vfs_getxattr+0x6cc/0x740 [ 67.178764][ T3544] ? __vfs_getxattr+0x410/0x410 [ 67.183733][ T3544] ? rcu_is_watching+0x11/0xb0 [ 67.188728][ T3544] ima_collect_measurement+0x4d4/0x970 [ 67.194222][ T3544] ? ima_get_action+0xa0/0xa0 [ 67.198950][ T3544] ? ovl_own_xattr_set+0x10/0x10 [ 67.204156][ T3544] process_measurement+0x1018/0x1cf0 [ 67.209783][ T3544] ? ima_file_mmap+0x1c0/0x1c0 [ 67.214574][ T3544] ? fsnotify_perm+0x428/0x590 [ 67.219551][ T3544] ? inode_to_bdi+0x65/0xd0 [ 67.224278][ T3544] ? file_ra_state_init+0x38/0xb0 [ 67.229446][ T3544] ? ovl_open+0x16b/0x2a0 [ 67.234253][ T3544] ? aa_get_current_label+0x111/0x1d0 [ 67.240021][ T3544] ? apparmor_current_getsecid_subj+0xac/0x110 [ 67.246929][ T3544] ima_file_check+0xed/0x170 [ 67.252294][ T3544] ? do_dentry_open+0xc1d/0x10f0 [ 67.257998][ T3544] ? ima_bprm_check+0x2b0/0x2b0 [ 67.262997][ T3544] path_openat+0x2687/0x2e60 [ 67.268002][ T3544] ? do_filp_open+0x480/0x480 [ 67.273071][ T3544] do_filp_open+0x230/0x480 [ 67.278415][ T3544] ? vfs_tmpfile+0x4a0/0x4a0 [ 67.284627][ T3544] ? _raw_spin_unlock+0x24/0x40 [ 67.289724][ T3544] ? alloc_fd+0x59c/0x640 [ 67.294265][ T3544] do_sys_openat2+0x13b/0x500 [ 67.299123][ T3544] ? do_sys_open+0x220/0x220 [ 67.303948][ T3544] ? do_raw_spin_unlock+0x137/0x8a0 [ 67.309658][ T3544] ? mntput+0xb0/0xb0 [ 67.313767][ T3544] __x64_sys_openat+0x243/0x290 [ 67.318842][ T3544] ? __ia32_sys_open+0x270/0x270 [ 67.324722][ T3544] ? syscall_enter_from_user_mode+0x2e/0x220 [ 67.331391][ T3544] ? lockdep_hardirqs_on+0x94/0x130 [ 67.336733][ T3544] ? syscall_enter_from_user_mode+0x2e/0x220 [ 67.342888][ T3544] do_syscall_64+0x3d/0xb0 [ 67.348001][ T3544] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 67.355000][ T3544] RIP: 0033:0x7f0f0d0c11f9 [ 67.360277][ T3544] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 c0 ff ff ff f7 d8 64 89 01 48 [ 67.381242][ T3544] RSP: 002b:00007fffaa2671f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 [ 67.389713][ T3544] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f0f0d0c11f9 [ 67.398080][ T3544] RDX: 0000000000000003 RSI: 0000000020000340 RDI: 0000000000000006 [ 67.407835][ T3544] RBP: 00007f0f0d0851e0 R08: 0000000000000000 R09: