Warning: Permanently added '10.128.1.24' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 57.547481][ T8416] overlayfs: upperdir is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection. [ 57.553611][ T8415] [ 57.564836][ T8415] ====================================================== [ 57.573039][ T8415] WARNING: possible circular locking dependency detected [ 57.583756][ T8415] 5.13.0-rc1-syzkaller #0 Not tainted [ 57.589441][ T8415] ------------------------------------------------------ [ 57.597150][ T8415] syz-executor450/8415 is trying to acquire lock: [ 57.604106][ T8415] ffff88802f451bc0 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x75a/0x1ba0 [ 57.613880][ T8415] [ 57.613880][ T8415] but task is already holding lock: [ 57.621400][ T8415] ffff88802a042460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 57.630873][ T8415] [ 57.630873][ T8415] which lock already depends on the new lock. [ 57.630873][ T8415] [ 57.641711][ T8415] [ 57.641711][ T8415] the existing dependency chain (in reverse order) is: [ 57.650889][ T8415] [ 57.650889][ T8415] -> #1 (sb_writers#5){.+.+}-{0:0}: [ 57.658614][ T8415] lock_acquire+0x17f/0x720 [ 57.663642][ T8415] sb_start_write+0x4f/0x180 [ 57.668878][ T8415] mnt_want_write+0x3b/0x80 [ 57.673974][ T8415] ovl_maybe_copy_up+0x117/0x180 [ 57.679752][ T8415] ovl_open+0xa2/0x200 [ 57.684440][ T8415] do_dentry_open+0x7cb/0x1010 [ 57.689807][ T8415] dentry_open+0xc6/0x120 [ 57.694734][ T8415] ima_calc_file_hash+0x157/0x1b00 [ 57.700439][ T8415] ima_collect_measurement+0x283/0x520 [ 57.707170][ T8415] process_measurement+0xf79/0x1ba0 [ 57.713157][ T8415] ima_file_check+0xe0/0x130 [ 57.718695][ T8415] path_openat+0x293d/0x39b0 [ 57.723877][ T8415] do_filp_open+0x221/0x460 [ 57.728976][ T8415] do_sys_openat2+0x124/0x460 [ 57.735146][ T8415] __x64_sys_open+0x221/0x270 [ 57.740335][ T8415] do_syscall_64+0x3f/0xb0 [ 57.745623][ T8415] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.752027][ T8415] [ 57.752027][ T8415] -> #0 (&iint->mutex){+.+.}-{3:3}: [ 57.759912][ T8415] check_prevs_add+0x4f9/0x5b60 [ 57.765415][ T8415] __lock_acquire+0x4307/0x6040 [ 57.770861][ T8415] lock_acquire+0x17f/0x720 [ 57.775968][ T8415] __mutex_lock_common+0x1bd/0x2e50 [ 57.782404][ T8415] mutex_lock_nested+0x1a/0x20 [ 57.787672][ T8415] process_measurement+0x75a/0x1ba0 [ 57.793989][ T8415] ima_file_check+0xe0/0x130 [ 57.799085][ T8415] path_openat+0x293d/0x39b0 [ 57.805345][ T8415] do_filp_open+0x221/0x460 [ 57.810459][ T8415] do_sys_openat2+0x124/0x460 [ 57.816185][ T8415] __x64_sys_openat+0x243/0x290 [ 57.821729][ T8415] do_syscall_64+0x3f/0xb0 [ 57.826653][ T8415] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 57.833773][ T8415] [ 57.833773][ T8415] other info that might help us debug this: [ 57.833773][ T8415] [ 57.844096][ T8415] Possible unsafe locking scenario: [ 57.844096][ T8415] [ 57.851877][ T8415] CPU0 CPU1 [ 57.857331][ T8415] ---- ---- [ 57.862861][ T8415] lock(sb_writers#5); [ 57.867006][ T8415] lock(&iint->mutex); [ 57.874030][ T8415] lock(sb_writers#5); [ 57.880693][ T8415] lock(&iint->mutex); [ 57.884950][ T8415] [ 57.884950][ T8415] *** DEADLOCK *** [ 57.884950][ T8415] [ 57.893439][ T8415] 1 lock held by syz-executor450/8415: [ 57.899045][ T8415] #0: ffff88802a042460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 57.908756][ T8415] [ 57.908756][ T8415] stack backtrace: [ 57.914910][ T8415] CPU: 1 PID: 8415 Comm: syz-executor450 Not tainted 5.13.0-rc1-syzkaller #0 [ 57.923950][ T8415] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.934605][ T8415] Call Trace: [ 57.938000][ T8415] dump_stack+0x202/0x31e [ 57.942435][ T8415] ? show_regs_print_info+0x12/0x12 [ 57.948232][ T8415] ? log_buf_vmcoreinfo_setup+0x498/0x498 [ 57.954039][ T8415] ? save_trace+0x5a/0x9f0 [ 57.958741][ T8415] print_circular_bug+0xb17/0xdc0 [ 57.964263][ T8415] ? hlock_conflict+0x1f0/0x1f0 [ 57.969297][ T8415] ? __bfs+0x369/0x700 [ 57.973707][ T8415] ? check_path+0x40/0x40 [ 57.978427][ T8415] ? noop_count+0x30/0x30 [ 57.982863][ T8415] ? save_trace+0x5a/0x9f0 [ 57.987726][ T8415] check_noncircular+0x2cc/0x390 [ 57.993099][ T8415] ? add_chain_block+0x850/0x850 [ 57.998215][ T8415] ? hlock_conflict+0x54/0x1f0 [ 58.003318][ T8415] ? __bfs+0x369/0x700 [ 58.007760][ T8415] ? check_path+0x40/0x40 [ 58.012518][ T8415] check_prevs_add+0x4f9/0x5b60 [ 58.017630][ T8415] ? __bfs+0x369/0x700 [ 58.021869][ T8415] ? reacquire_held_locks+0x5f0/0x5f0 [ 58.027933][ T8415] ? check_path+0x40/0x40 [ 58.032630][ T8415] ? noop_count+0x30/0x30 [ 58.037210][ T8415] ? check_prevs_add+0x1c41/0x5b60 [ 58.042487][ T8415] ? reacquire_held_locks+0x5f0/0x5f0 [ 58.048145][ T8415] ? check_prevs_add+0x1c41/0x5b60 [ 58.053328][ T8415] ? mark_lock+0x199/0x1eb0 [ 58.058086][ T8415] ? __lock_acquire+0x13b0/0x6040 [ 58.063182][ T8415] ? __bfs+0x700/0x700 [ 58.067506][ T8415] ? mark_lock+0x199/0x1eb0 [ 58.071992][ T8415] ? __bfs+0x700/0x700 [ 58.076129][ T8415] ? __bfs+0x700/0x700 [ 58.080998][ T8415] ? mark_lock+0x199/0x1eb0 [ 58.085485][ T8415] ? mark_lock+0x199/0x1eb0 [ 58.090239][ T8415] ? lockdep_lock+0x102/0x2c0 [ 58.095085][ T8415] ? lockdep_count_forward_deps+0x240/0x240 [ 58.100964][ T8415] __lock_acquire+0x4307/0x6040 [ 58.106323][ T8415] ? trace_lock_acquire+0x180/0x180 [ 58.112027][ T8415] ? lockdep_unlock+0x145/0x2e0 [ 58.116863][ T8415] ? lockdep_lock+0x2c0/0x2c0 [ 58.121814][ T8415] ? __lock_acquire+0x147f/0x6040 [ 58.127016][ T8415] ? __lock_acquire+0x438b/0x6040 [ 58.132123][ T8415] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.137925][ T8415] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.143891][ T8415] lock_acquire+0x17f/0x720 [ 58.148751][ T8415] ? process_measurement+0x75a/0x1ba0 [ 58.154297][ T8415] ? read_lock_is_recursive+0x10/0x10 [ 58.159917][ T8415] ? process_measurement+0x712/0x1ba0 [ 58.165297][ T8415] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.171165][ T8415] ? __might_sleep+0x100/0x100 [ 58.176096][ T8415] __mutex_lock_common+0x1bd/0x2e50 [ 58.181288][ T8415] ? process_measurement+0x75a/0x1ba0 [ 58.186729][ T8415] ? __lock_acquire+0x6040/0x6040 [ 58.191753][ T8415] ? process_measurement+0x75a/0x1ba0 [ 58.197194][ T8415] ? integrity_inode_get+0x296/0x300 [ 58.202554][ T8415] ? mutex_lock_io_nested+0x60/0x60 [ 58.208139][ T8415] ? up_write+0x12c/0x4d0 [ 58.212636][ T8415] ? __up_read+0x790/0x790 [ 58.217318][ T8415] ? integrity_inode_get+0x296/0x300 [ 58.222681][ T8415] mutex_lock_nested+0x1a/0x20 [ 58.227864][ T8415] process_measurement+0x75a/0x1ba0 [ 58.233415][ T8415] ? ima_file_mmap+0x150/0x150 [ 58.238376][ T8415] ? rcu_lock_release+0x5/0x20 [ 58.243729][ T8415] ? __lock_acquire+0x6040/0x6040 [ 58.249112][ T8415] ? ext4_file_open+0x2d2/0x8c0 [ 58.254322][ T8415] ? smk_of_task_struct_subj+0x1bd/0x1d0 [ 58.260300][ T8415] ? smack_task_getsecid_subj+0x22/0x80 [ 58.266350][ T8415] ima_file_check+0xe0/0x130 [ 58.271095][ T8415] ? ima_bprm_check+0x280/0x280 [ 58.276057][ T8415] path_openat+0x293d/0x39b0 [ 58.280893][ T8415] ? do_filp_open+0x460/0x460 [ 58.285562][ T8415] ? alloc_fd+0x5eb/0x690 [ 58.290494][ T8415] ? rcu_read_lock_sched_held+0x87/0x110 [ 58.296470][ T8415] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 58.303080][ T8415] do_filp_open+0x221/0x460 [ 58.307581][ T8415] ? vfs_tmpfile+0x230/0x230 [ 58.312589][ T8415] ? alloc_fd+0x5eb/0x690 [ 58.317138][ T8415] ? do_raw_spin_unlock+0x134/0x8a0 [ 58.322694][ T8415] ? _raw_spin_unlock+0x24/0x40 [ 58.327879][ T8415] ? alloc_fd+0x5eb/0x690 [ 58.332375][ T8415] do_sys_openat2+0x124/0x460 [ 58.337123][ T8415] ? __context_tracking_exit+0x7a/0xd0 [ 58.342985][ T8415] ? do_sys_open+0x220/0x220 [ 58.348890][ T8415] __x64_sys_openat+0x243/0x290 [ 58.353837][ T8415] ? __ia32_sys_open+0x270/0x270 [ 58.359059][ T8415] ? syscall_enter_from_user_mode+0x2e/0x1c0 [ 58.365413][ T8415] ? lockdep_hardirqs_on+0x8d/0x130 [ 58.370785][ T8415] ? syscall_enter_from_user_mode+0x2e/0x1c0 [ 58.377165][ T8415] do_syscall_64+0x3f/0xb0 [ 58.381696][ T8415] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 58.387580][ T8415] RIP: 0033:0x444cf9 [ 58.391555][ T8415] 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 4