Warning: Permanently added '10.128.1.120' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 161.261796][ T37] audit: type=1804 audit(1617477337.300:2): pid=8940 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor144" name="/root/syzkaller.F0TiIA/37/bus/file1" dev="overlay" ino=14000 res=1 errno=0 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 165.012519][ T37] audit: type=1804 audit(1617477341.051:3): pid=9168 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor144" name="/root/syzkaller.ewTQEs/58/bus/file1" dev="sda1" ino=14044 res=1 errno=0 [ 165.054720][ T9166] [ 165.057201][ T9166] ====================================================== [ 165.064512][ T9166] WARNING: possible circular locking dependency detected [ 165.071841][ T9166] 5.12.0-rc5-next-20210401-syzkaller #0 Not tainted [ 165.078869][ T9166] ------------------------------------------------------ [ 165.086265][ T9166] syz-executor144/9166 is trying to acquire lock: [ 165.092685][ T9166] ffff888144cf0460 (sb_writers#5){.+.+}-{0:0}, at: ovl_maybe_copy_up+0x11f/0x190 [ 165.101988][ T9166] executing program [ 165.101988][ T9166] but task is already holding lock: [ 165.109859][ T9166] ffff8880256d42c0 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x3a8/0x17e0 [ 165.119404][ T9166] [ 165.119404][ T9166] which lock already depends on the new lock. [ 165.119404][ T9166] [ 165.129911][ T9166] [ 165.129911][ T9166] the existing dependency chain (in reverse order) is: [ 165.139134][ T9166] [ 165.139134][ T9166] -> #1 (&iint->mutex){+.+.}-{3:3}: [ 165.146548][ T9166] __mutex_lock+0x139/0x1120 [ 165.151868][ T9166] process_measurement+0x3a8/0x17e0 [ 165.157711][ T9166] ima_file_check+0xb9/0x100 [ 165.162848][ T9166] path_openat+0x15b5/0x27e0 [ 165.167983][ T9166] do_filp_open+0x17e/0x3c0 [ 165.173116][ T9166] do_sys_openat2+0x16d/0x420 [ 165.178379][ T9166] __x64_sys_open+0x119/0x1c0 [ 165.184306][ T9166] do_syscall_64+0x2d/0x70 [ 165.189355][ T9166] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 165.196054][ T9166] [ 165.196054][ T9166] -> #0 (sb_writers#5){.+.+}-{0:0}: [ 165.203648][ T9166] __lock_acquire+0x2a17/0x5230 [ 165.209048][ T9166] lock_acquire+0x1ab/0x740 [ 165.214115][ T9166] mnt_want_write+0x6e/0x3e0 [ 165.219345][ T9166] ovl_maybe_copy_up+0x11f/0x190 [ 165.224923][ T9166] ovl_open+0xba/0x270 [ 165.229545][ T9166] do_dentry_open+0x4b9/0x11b0 [ 165.235207][ T9166] dentry_open+0x132/0x1d0 [ 165.240350][ T9166] ima_calc_file_hash+0x2d2/0x4b0 [ 165.245933][ T9166] ima_collect_measurement+0x4ca/0x570 [ 165.252059][ T9166] process_measurement+0xd1c/0x17e0 [ 165.257963][ T9166] ima_file_check+0xb9/0x100 [ 165.263164][ T9166] path_openat+0x15b5/0x27e0 [ 165.269488][ T9166] do_filp_open+0x17e/0x3c0 [ 165.274516][ T9166] do_sys_openat2+0x16d/0x420 [ 165.280313][ T9166] __x64_sys_open+0x119/0x1c0 [ 165.286012][ T9166] do_syscall_64+0x2d/0x70 [ 165.291068][ T9166] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 165.298103][ T9166] [ 165.298103][ T9166] other info that might help us debug this: [ 165.298103][ T9166] [ 165.308676][ T9166] Possible unsafe locking scenario: [ 165.308676][ T9166] [ 165.316111][ T9166] CPU0 CPU1 [ 165.321545][ T9166] ---- ---- [ 165.326903][ T9166] lock(&iint->mutex); [ 165.331221][ T9166] lock(sb_writers#5); [ 165.338345][ T9166] lock(&iint->mutex); [ 165.346409][ T9166] lock(sb_writers#5); [ 165.351002][ T9166] [ 165.351002][ T9166] *** DEADLOCK *** [ 165.351002][ T9166] [ 165.359601][ T9166] 1 lock held by syz-executor144/9166: [ 165.365146][ T9166] #0: ffff8880256d42c0 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x3a8/0x17e0 [ 165.374993][ T9166] [ 165.374993][ T9166] stack backtrace: [ 165.381433][ T9166] CPU: 1 PID: 9166 Comm: syz-executor144 Not tainted 5.12.0-rc5-next-20210401-syzkaller #0 [ 165.391884][ T9166] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 165.402600][ T9166] Call Trace: [ 165.405975][ T9166] dump_stack+0x141/0x1d7 [ 165.410421][ T9166] check_noncircular+0x25f/0x2e0 [ 165.415827][ T9166] ? print_circular_bug+0x1e0/0x1e0 [ 165.421304][ T9166] ? lockdep_lock+0xc6/0x200 [ 165.426095][ T9166] ? call_rcu_zapped+0xb0/0xb0 [ 165.431024][ T9166] ? tomoyo_check_open_permission+0x185/0x380 [ 165.437106][ T9166] __lock_acquire+0x2a17/0x5230 [ 165.442700][ T9166] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 165.448705][ T9166] lock_acquire+0x1ab/0x740 [ 165.453486][ T9166] ? ovl_maybe_copy_up+0x11f/0x190 [ 165.458767][ T9166] ? lock_release+0x720/0x720 [ 165.463486][ T9166] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 165.469730][ T9166] ? __fsnotify_parent+0x488/0x9d0 [ 165.474840][ T9166] mnt_want_write+0x6e/0x3e0 [ 165.479708][ T9166] ? ovl_maybe_copy_up+0x11f/0x190 [ 165.485191][ T9166] ovl_maybe_copy_up+0x11f/0x190 [ 165.490236][ T9166] ovl_open+0xba/0x270 [ 165.494316][ T9166] ? __mnt_want_write+0x1bc/0x2a0 [ 165.499424][ T9166] do_dentry_open+0x4b9/0x11b0 [ 165.504560][ T9166] ? ovl_mmap+0x2f0/0x2f0 [ 165.509126][ T9166] dentry_open+0x132/0x1d0 [ 165.513536][ T9166] ima_calc_file_hash+0x2d2/0x4b0 [ 165.518825][ T9166] ima_collect_measurement+0x4ca/0x570 [ 165.524372][ T9166] ? ima_get_action+0xa0/0xa0 [ 165.529044][ T9166] ? ima_get_cache_status+0x1d0/0x1d0 [ 165.534510][ T9166] process_measurement+0xd1c/0x17e0 [ 165.539908][ T9166] ? mmap_violation_check+0x1e0/0x1e0 [ 165.545444][ T9166] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 165.552203][ T9166] ? apparmor_file_open+0x1a5/0xab0 [ 165.557931][ T9166] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 165.564003][ T9166] ? apparmor_sb_mount+0x680/0x680 [ 165.569194][ T9166] ? do_raw_spin_lock+0x120/0x2b0 [ 165.574213][ T9166] ? find_held_lock+0x2d/0x110 [ 165.579001][ T9166] ? aa_get_task_label+0x25d/0x540 [ 165.584103][ T9166] ? lock_downgrade+0x6e0/0x6e0 [ 165.588952][ T9166] ? aa_get_task_label+0x27f/0x540 [ 165.594084][ T9166] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 165.600524][ T9166] ? apparmor_task_getsecid+0xc2/0x110 [ 165.606068][ T9166] ima_file_check+0xb9/0x100 [ 165.610662][ T9166] ? process_measurement+0x17e0/0x17e0 [ 165.616895][ T9166] ? may_open+0x1f6/0x420 [ 165.621221][ T9166] path_openat+0x15b5/0x27e0 [ 165.625806][ T9166] ? path_lookupat+0x830/0x830 [ 165.630647][ T9166] ? mark_lock+0xef/0x17b0 [ 165.635080][ T9166] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 165.641147][ T9166] do_filp_open+0x17e/0x3c0 [ 165.645688][ T9166] ? may_open_dev+0xf0/0xf0 [ 165.650337][ T9166] ? do_raw_spin_lock+0x120/0x2b0 [ 165.655708][ T9166] ? rwlock_bug.part.0+0x90/0x90 [ 165.660912][ T9166] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70 [ 165.667785][ T9166] ? _find_next_bit+0x1e3/0x260 [ 165.672807][ T9166] ? _raw_spin_unlock+0x24/0x40 [ 165.677852][ T9166] ? alloc_fd+0x2e6/0x660 [ 165.682486][ T9166] do_sys_openat2+0x16d/0x420 [ 165.687445][ T9166] ? build_open_flags+0x6f0/0x6f0 [ 165.692480][ T9166] ? __context_tracking_exit+0xb8/0xe0 [ 165.698293][ T9166] ? lock_downgrade+0x6e0/0x6e0 [ 165.703403][ T9166] ? __context_tracking_enter+0xef/0x100 [ 165.709468][ T9166] __x64_sys_open+0x119/0x1c0 [ 165.714664][ T9166] ? do_sys_open+0x140/0x140 [ 165.719456][ T9166] ? syscall_enter_from_user_mode+0x27/0x70 [ 165.725524][ T9166] do_syscall_64+0x2d/0x70 [ 165.729949][ T9166] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 165.735848][ T9166] RIP: 0033:0x446109 [ 165.739737][ T9166] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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 [ 165.759999][ T9166] RSP: 002b:00007fe4412f12f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 165.769118][ T9166] RAX: ffffffffffffffda RBX: 00000000004cb4c0 RCX: 0000000000446109 [ 165.777107][ T9166] RDX: 0000000000000000 RSI: 0000000000000007 RDI: 00000000200001c0 [ 165.785264][ T9166] RBP: 000000000049b06c R08: 0000000000000000 R09: 0000000000000000 [ 165.793489][ T9166] R10: 0000000000000000 R11: 0000000000000246 R12: 69662f7375622f2e executing program executing program [ 165.801462][ T9166] R13: 79706f636174656d R14: 0079616c7265766f R15: 00000000004cb4c8 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program