Warning: Permanently added '10.128.0.227' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.327076] [ 35.328721] ====================================================== [ 35.335044] WARNING: possible circular locking dependency detected [ 35.341340] 4.19.211-syzkaller #0 Not tainted [ 35.345805] ------------------------------------------------------ [ 35.352095] syz-executor181/8110 is trying to acquire lock: [ 35.357777] 00000000ad297d00 (sb_writers#3){.+.+}, at: mnt_want_write+0x3a/0xb0 [ 35.365210] [ 35.365210] but task is already holding lock: [ 35.371153] 00000000788ed163 (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 [ 35.379276] [ 35.379276] which lock already depends on the new lock. [ 35.379276] [ 35.387566] [ 35.387566] the existing dependency chain (in reverse order) is: [ 35.395159] [ 35.395159] -> #1 (&iint->mutex){+.+.}: [ 35.400722] process_measurement+0x316/0x1440 [ 35.405714] ima_file_check+0xb9/0x100 [ 35.410100] path_openat+0x7e4/0x2df0 [ 35.414399] do_filp_open+0x18c/0x3f0 [ 35.418700] do_sys_open+0x3b3/0x520 [ 35.422918] do_syscall_64+0xf9/0x620 [ 35.427219] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.432900] [ 35.432900] -> #0 (sb_writers#3){.+.+}: [ 35.438338] __sb_start_write+0x6e/0x2a0 [ 35.442894] mnt_want_write+0x3a/0xb0 [ 35.447189] ovl_maybe_copy_up+0x11f/0x190 [ 35.451918] ovl_open+0xb4/0x260 [ 35.455778] do_dentry_open+0x4aa/0x1160 [ 35.460335] dentry_open+0x132/0x1d0 [ 35.464546] ima_calc_file_hash+0x628/0x8a0 [ 35.469364] ima_collect_measurement+0x4c4/0x570 [ 35.474621] process_measurement+0xddd/0x1440 [ 35.479610] ima_file_check+0xb9/0x100 [ 35.483996] path_openat+0x7e4/0x2df0 [ 35.488290] do_filp_open+0x18c/0x3f0 [ 35.492586] do_sys_open+0x3b3/0x520 [ 35.496794] do_syscall_64+0xf9/0x620 [ 35.501091] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.506769] [ 35.506769] other info that might help us debug this: [ 35.506769] [ 35.514884] Possible unsafe locking scenario: [ 35.514884] [ 35.520913] CPU0 CPU1 [ 35.525553] ---- ---- [ 35.530194] lock(&iint->mutex); [ 35.533618] lock(sb_writers#3); [ 35.539563] lock(&iint->mutex); [ 35.545504] lock(sb_writers#3); [ 35.548929] [ 35.548929] *** DEADLOCK *** [ 35.548929] [ 35.554965] 1 lock held by syz-executor181/8110: [ 35.559688] #0: 00000000788ed163 (&iint->mutex){+.+.}, at: process_measurement+0x316/0x1440 [ 35.568248] [ 35.568248] stack backtrace: [ 35.572721] CPU: 0 PID: 8110 Comm: syz-executor181 Not tainted 4.19.211-syzkaller #0 [ 35.580573] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 [ 35.589901] Call Trace: [ 35.592469] dump_stack+0x1fc/0x2ef [ 35.596080] print_circular_bug.constprop.0.cold+0x2d7/0x41e [ 35.601852] __lock_acquire+0x30c9/0x3ff0 [ 35.605978] ? mark_held_locks+0xf0/0xf0 [ 35.610021] ? mark_held_locks+0xf0/0xf0 [ 35.614058] ? lock_downgrade+0x720/0x720 [ 35.618179] ? lock_acquire+0x170/0x3c0 [ 35.622135] ? cache_alloc_refill+0x95/0x340 [ 35.626519] lock_acquire+0x170/0x3c0 [ 35.630295] ? mnt_want_write+0x3a/0xb0 [ 35.634246] __sb_start_write+0x6e/0x2a0 [ 35.638283] ? mnt_want_write+0x3a/0xb0 [ 35.642234] mnt_want_write+0x3a/0xb0 [ 35.646014] ovl_maybe_copy_up+0x11f/0x190 [ 35.650228] ovl_open+0xb4/0x260 [ 35.653571] do_dentry_open+0x4aa/0x1160 [ 35.657608] ? ovl_fsync+0x220/0x220 [ 35.661304] ? chown_common+0x550/0x550 [ 35.665272] ? percpu_counter_add_batch+0x126/0x180 [ 35.670266] dentry_open+0x132/0x1d0 [ 35.673960] ima_calc_file_hash+0x628/0x8a0 [ 35.678256] ? xattr_list_one+0x120/0x120 [ 35.682381] ima_collect_measurement+0x4c4/0x570 [ 35.687114] ? ima_get_action+0x90/0x90 [ 35.691079] ? ima_get_cache_status+0x1d0/0x1d0 [ 35.695723] process_measurement+0xddd/0x1440 [ 35.700195] ? ima_restore_measurement_entry+0x40/0x40 [ 35.705449] ? file_ra_state_init+0xc4/0x1e0 [ 35.709833] ? aa_get_task_label+0x1e6/0x7f0 [ 35.714221] ? lock_downgrade+0x720/0x720 [ 35.718348] ? check_preemption_disabled+0x41/0x280 [ 35.723359] ? check_preemption_disabled+0x41/0x280 [ 35.728352] ? aa_get_task_label+0x20d/0x7f0 [ 35.732734] ? revert_creds+0x32b/0x460 [ 35.736697] ? aa_capable+0xb80/0xb80 [ 35.740474] ? ovl_open+0xca/0x260 [ 35.744424] ? apparmor_task_getsecid+0x88/0xc0 [ 35.749070] ima_file_check+0xb9/0x100 [ 35.752936] ? process_measurement+0x1440/0x1440 [ 35.757672] ? inode_permission+0x3d/0x140 [ 35.761882] path_openat+0x7e4/0x2df0 [ 35.765661] ? path_lookupat+0x8d0/0x8d0 [ 35.769711] ? mark_held_locks+0xf0/0xf0 [ 35.773747] ? mark_held_locks+0xf0/0xf0 [ 35.777785] do_filp_open+0x18c/0x3f0 [ 35.781560] ? may_open_dev+0xf0/0xf0 [ 35.785337] ? lock_downgrade+0x720/0x720 [ 35.789459] ? lock_acquire+0x170/0x3c0 [ 35.793424] ? __alloc_fd+0x34/0x570 [ 35.797117] ? do_raw_spin_unlock+0x171/0x230 [ 35.801590] ? _raw_spin_unlock+0x29/0x40 [ 35.805711] ? __alloc_fd+0x28d/0x570 [ 35.809488] do_sys_open+0x3b3/0x520 [ 35.813180] ? filp_open+0x70/0x70 [ 35.816696] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 35.822037] ? trace_hardirqs_off_caller+0x6e/0x210 [ 35.827028] ? do_syscall_64+0x21/0x620 [ 35.830978] do_syscall_64+0xf9/0x620 [ 35.834755] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 35.839919] RIP: 0033:0x7f24a83510b9 [ 35.843610] 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 [ 35.862487] RSP: 002b:00007ffd1fcd4678 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 35.870171] RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f24a83510b9 [ 35.877417] RDX: 000