Warning: Permanently added '10.128.1.220' (ED25519) to the list of known hosts. 2024/09/30 06:21:07 ignoring optional flag "sandboxArg"="0" 2024/09/30 06:21:08 parsed 1 programs [ 61.256493][ T2126] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k 2024/09/30 06:21:12 executed programs: 0 [ 63.940616][ T2602] mmap: syz.3.18 (2602) uses deprecated remap_file_pages() syscall. See Documentation/mm/remap_file_pages.rst. 2024/09/30 06:21:17 executed programs: 19 2024/09/30 06:21:22 executed programs: 47 2024/09/30 06:21:27 executed programs: 89 2024/09/30 06:21:32 executed programs: 131 2024/09/30 06:21:37 executed programs: 174 2024/09/30 06:21:43 executed programs: 214 [ 95.651427][ T4710] [ 95.653762][ T4710] ====================================================== [ 95.660762][ T4710] WARNING: possible circular locking dependency detected [ 95.667762][ T4710] 6.11.0-rc1-syzkaller #0 Not tainted [ 95.673109][ T4710] ------------------------------------------------------ [ 95.680101][ T4710] syz.3.225/4710 is trying to acquire lock: [ 95.686050][ T4710] ffff888102eac798 (&mm->mmap_lock){++++}-{3:3}, at: mmap_read_lock_killable+0x13/0x50 [ 95.695666][ T4710] [ 95.695666][ T4710] but task is already holding lock: [ 95.703006][ T4710] ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: shmem_file_write_iter+0x2f/0x90 [ 95.713569][ T4710] [ 95.713569][ T4710] which lock already depends on the new lock. [ 95.713569][ T4710] [ 95.723950][ T4710] [ 95.723950][ T4710] the existing dependency chain (in reverse order) is: [ 95.732937][ T4710] [ 95.732937][ T4710] -> #1 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}: [ 95.741593][ T4710] down_write+0x29/0xb0 [ 95.746245][ T4710] process_measurement+0x154/0x900 [ 95.751845][ T4710] ima_file_mmap+0x74/0xe0 [ 95.756744][ T4710] security_mmap_file+0x3a7/0x480 [ 95.762254][ T4710] __se_sys_remap_file_pages+0x278/0x370 [ 95.768367][ T4710] do_syscall_64+0xa0/0x180 [ 95.773353][ T4710] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 95.779727][ T4710] [ 95.779727][ T4710] -> #0 (&mm->mmap_lock){++++}-{3:3}: [ 95.787236][ T4710] __lock_acquire+0x122b/0x2530 [ 95.792578][ T4710] lock_acquire+0xeb/0x270 [ 95.797474][ T4710] down_read_killable+0x50/0x610 [ 95.802896][ T4710] mmap_read_lock_killable+0x13/0x50 [ 95.808661][ T4710] lock_mm_and_find_vma+0x11a/0x130 [ 95.814339][ T4710] exc_page_fault+0x1d3/0x6a0 [ 95.819503][ T4710] asm_exc_page_fault+0x26/0x30 [ 95.824840][ T4710] fault_in_readable+0x3c/0xd0 [ 95.830094][ T4710] fault_in_iov_iter_readable+0x3c/0xd0 [ 95.836127][ T4710] generic_perform_write+0xaa/0x3d0 [ 95.841810][ T4710] shmem_file_write_iter+0x67/0x90 [ 95.847404][ T4710] vfs_write+0x342/0x3d0 [ 95.852131][ T4710] ksys_write+0x70/0xe0 [ 95.856770][ T4710] do_syscall_64+0xa0/0x180 [ 95.861761][ T4710] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 95.868136][ T4710] [ 95.868136][ T4710] other info that might help us debug this: [ 95.868136][ T4710] [ 95.878326][ T4710] Possible unsafe locking scenario: [ 95.878326][ T4710] [ 95.885736][ T4710] CPU0 CPU1 [ 95.891149][ T4710] ---- ---- [ 95.896562][ T4710] lock(&sb->s_type->i_mutex_key#12); [ 95.901982][ T4710] lock(&mm->mmap_lock); [ 95.908806][ T4710] lock(&sb->s_type->i_mutex_key#12); [ 95.916748][ T4710] rlock(&mm->mmap_lock); [ 95.921122][ T4710] [ 95.921122][ T4710] *** DEADLOCK *** [ 95.921122][ T4710] [ 95.929237][ T4710] 3 locks held by syz.3.225/4710: [ 95.934232][ T4710] #0: ffff8881023668c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x71/0xa0 [ 95.943317][ T4710] #1: ffff8881023cf410 (sb_writers#5){.+.+}-{0:0}, at: vfs_write+0x111/0x3d0 [ 95.952305][ T4710] #2: ffff888107ffac40 (&sb->s_type->i_mutex_key#12){+.+.}-{3:3}, at: shmem_file_write_iter+0x2f/0x90 [ 95.963291][ T4710] [ 95.963291][ T4710] stack backtrace: [ 95.969148][ T4710] CPU: 1 UID: 0 PID: 4710 Comm: syz.3.225 Not tainted 6.11.0-rc1-syzkaller #0 [ 95.977954][ T4710] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 95.988062][ T4710] Call Trace: [ 95.991308][ T4710] [ 95.994205][ T4710] dump_stack_lvl+0xa3/0x100 [ 95.998758][ T4710] check_noncircular+0x119/0x140 [ 96.003658][ T4710] __lock_acquire+0x122b/0x2530 [ 96.008470][ T4710] ? bsearch+0x3b/0x80 [ 96.012588][ T4710] ? rep_movs_alternative+0x4a/0x70 [ 96.017831][ T4710] ? mmap_read_lock_killable+0x13/0x50 [ 96.023251][ T4710] lock_acquire+0xeb/0x270 [ 96.027633][ T4710] ? mmap_read_lock_killable+0x13/0x50 [ 96.033050][ T4710] ? mmap_read_lock_killable+0x13/0x50 [ 96.038477][ T4710] down_read_killable+0x50/0x610 [ 96.043373][ T4710] ? mmap_read_lock_killable+0x13/0x50 [ 96.048789][ T4710] ? irqentry_exit+0x5b/0x80 [ 96.053340][ T4710] ? lockdep_hardirqs_on+0x99/0x100 [ 96.058497][ T4710] ? bsearch+0x3b/0x80 [ 96.062528][ T4710] ? fault_in_readable+0x3c/0xd0 [ 96.067424][ T4710] mmap_read_lock_killable+0x13/0x50 [ 96.072669][ T4710] lock_mm_and_find_vma+0x11a/0x130 [ 96.077919][ T4710] exc_page_fault+0x1d3/0x6a0 [ 96.082555][ T4710] asm_exc_page_fault+0x26/0x30 [ 96.087545][ T4710] RIP: 0010:fault_in_readable+0x3c/0xd0 [ 96.093048][ T4710] Code: 00 00 00 48 89 f8 48 01 f0 0f 88 8d 00 00 00 48 39 f8 0f 82 84 00 00 00 0f 01 cb 0f ae e8 48 89 f8 48 c1 e0 34 74 1b 48 89 f9 <8a> 07 88 04 24 4c 8d 87 ff 0f 00 00 4c 89 c1 48 81 e1 00 f0 ff ff [ 96.112874][ T4710] RSP: 0018:ffffc90003507d5f EFLAGS: 00050207 [ 96.118899][ T4710] RAX: 2400000000000000 RBX: 0000000000069000 RCX: 0000000020197240 [ 96.126833][ T4710] RDX: 0000000000000001 RSI: 0000000000069000 RDI: 0000000020197240 [ 96.134778][ T4710] RBP: 0000000001ef724b R08: 0000000000000000 R09: 0000000000000000 [ 96.142719][ T4710] R10: ffff88816020d000 R11: ffffffff81256410 R12: 0000000000197000 [ 96.150751][ T4710] R13: ffff888107ffad18 R14: 0000000000069000 R15: 0000000000197000 [ 96.158687][ T4710] ? __pfx_noop_dirty_folio+0x10/0x10 [ 96.164025][ T4710] fault_in_iov_iter_readable+0x3c/0xd0 [ 96.169533][ T4710] generic_perform_write+0xaa/0x3d0 [ 96.174691][ T4710] shmem_file_write_iter+0x67/0x90 [ 96.179762][ T4710] vfs_write+0x342/0x3d0 [ 96.183963][ T4710] ksys_write+0x70/0xe0 [ 96.188082][ T4710] do_syscall_64+0xa0/0x180 [ 96.192547][ T4710] ? clear_bhb_loop+0x55/0xb0 [ 96.197182][ T4710] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 96.203037][ T4710] RIP: 0033:0x7f4d3b97dff9 [ 96.207414][ T4710] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 [ 96.226980][ T4710] RSP: 002b:00007f4d3c6a2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 96.235352][ T4710] RAX: ffffffffffffffda RBX: 00007f4d3bb36058 RCX: 00007f4d3b97dff9 [ 96.243286][ T4710] RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000003 [ 96.251219][ T4710] RBP: 00007f4d3b9f0296 R08: 0000000000000000 R09: 0000000000000000 [ 96.259152][ T4710] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 96.267083][ T4710] R13: 0000000000000000 R14: 00007f4d3bb36058 R15: 00007ffe5a9561c8 [ 96.275018][ T4710] 2024/09/30 06:21:48 executed programs: 285 2024/09/30 06:21:53 executed programs: 376