Warning: Permanently added '10.128.0.152' (ED25519) to the list of known hosts. executing program [ 43.963656][ T3498] loop0: detected capacity change from 0 to 8192 [ 43.973460][ T3498] REISERFS (device loop0): found reiserfs format "3.5" with non-standard journal [ 43.982745][ T3498] REISERFS (device loop0): using ordered data mode [ 43.989228][ T3498] reiserfs: using flush barriers [ 43.995289][ T3498] REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30 [ 44.011700][ T3498] REISERFS (device loop0): checking transaction log (loop0) [ 44.020775][ T3498] REISERFS (device loop0): Using r5 hash to sort names [ 44.032956][ T3498] reiserfs: enabling write barrier flush mode [ 44.046983][ T3498] REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage. [ 44.061860][ T3498] [ 44.064185][ T3498] ====================================================== [ 44.071437][ T3498] WARNING: possible circular locking dependency detected [ 44.078430][ T3498] 5.15.124-syzkaller #0 Not tainted [ 44.083603][ T3498] ------------------------------------------------------ [ 44.090665][ T3498] syz-executor392/3498 is trying to acquire lock: [ 44.097050][ T3498] ffff888147edf090 (&sbi->lock){+.+.}-{3:3}, at: reiserfs_write_lock+0x76/0xd0 [ 44.105999][ T3498] [ 44.105999][ T3498] but task is already holding lock: [ 44.113332][ T3498] ffff888078012558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 [ 44.122344][ T3498] [ 44.122344][ T3498] which lock already depends on the new lock. [ 44.122344][ T3498] [ 44.132720][ T3498] [ 44.132720][ T3498] the existing dependency chain (in reverse order) is: [ 44.141702][ T3498] [ 44.141702][ T3498] -> #2 (sb_pagefaults){.+.+}-{0:0}: [ 44.149140][ T3498] lock_acquire+0x1db/0x4f0 [ 44.154140][ T3498] filemap_page_mkwrite+0x11b/0x650 [ 44.159831][ T3498] do_page_mkwrite+0x1a9/0x440 [ 44.165086][ T3498] handle_mm_fault+0x2803/0x5950 [ 44.170514][ T3498] exc_page_fault+0x271/0x740 [ 44.175681][ T3498] asm_exc_page_fault+0x22/0x30 [ 44.181025][ T3498] copy_user_enhanced_fast_string+0xe/0x40 [ 44.187322][ T3498] copy_page_to_iter+0x49a/0x10d0 [ 44.192841][ T3498] filemap_read+0x20f6/0x2980 [ 44.198015][ T3498] vfs_read+0xa9f/0xe10 [ 44.202662][ T3498] ksys_read+0x1a2/0x2c0 [ 44.207393][ T3498] do_syscall_64+0x3d/0xb0 [ 44.212300][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.218683][ T3498] [ 44.218683][ T3498] -> #1 (&mm->mmap_lock#2){++++}-{3:3}: [ 44.226380][ T3498] lock_acquire+0x1db/0x4f0 [ 44.231377][ T3498] __might_fault+0xb4/0x110 [ 44.236465][ T3498] reiserfs_ioctl+0x11d/0x340 [ 44.241634][ T3498] __se_sys_ioctl+0xf1/0x160 [ 44.246714][ T3498] do_syscall_64+0x3d/0xb0 [ 44.251629][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.258042][ T3498] [ 44.258042][ T3498] -> #0 (&sbi->lock){+.+.}-{3:3}: [ 44.265225][ T3498] validate_chain+0x1646/0x58b0 [ 44.270587][ T3498] __lock_acquire+0x1295/0x1ff0 [ 44.275934][ T3498] lock_acquire+0x1db/0x4f0 [ 44.280941][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.286638][ T3498] mutex_lock_nested+0x17/0x20 [ 44.291898][ T3498] reiserfs_write_lock+0x76/0xd0 [ 44.297341][ T3498] reiserfs_dirty_inode+0xee/0x240 [ 44.302948][ T3498] __mark_inode_dirty+0x2fd/0xd60 [ 44.308467][ T3498] generic_update_time+0x1cb/0x1e0 [ 44.314077][ T3498] file_update_time+0x3eb/0x460 [ 44.319420][ T3498] filemap_page_mkwrite+0x222/0x650 [ 44.325111][ T3498] do_page_mkwrite+0x1a9/0x440 [ 44.330369][ T3498] handle_mm_fault+0x2803/0x5950 [ 44.335797][ T3498] exc_page_fault+0x271/0x740 [ 44.340963][ T3498] asm_exc_page_fault+0x22/0x30 [ 44.346302][ T3498] copy_user_enhanced_fast_string+0xe/0x40 [ 44.352605][ T3498] copy_page_to_iter+0x49a/0x10d0 [ 44.358125][ T3498] filemap_read+0x20f6/0x2980 [ 44.363297][ T3498] vfs_read+0xa9f/0xe10 [ 44.367958][ T3498] ksys_read+0x1a2/0x2c0 [ 44.372691][ T3498] do_syscall_64+0x3d/0xb0 [ 44.377612][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.383999][ T3498] [ 44.383999][ T3498] other info that might help us debug this: [ 44.383999][ T3498] [ 44.394196][ T3498] Chain exists of: [ 44.394196][ T3498] &sbi->lock --> &mm->mmap_lock#2 --> sb_pagefaults [ 44.394196][ T3498] [ 44.406793][ T3498] Possible unsafe locking scenario: [ 44.406793][ T3498] [ 44.414226][ T3498] CPU0 CPU1 [ 44.419564][ T3498] ---- ---- [ 44.424900][ T3498] lock(sb_pagefaults); [ 44.429114][ T3498] lock(&mm->mmap_lock#2); [ 44.436105][ T3498] lock(sb_pagefaults); [ 44.442835][ T3498] lock(&sbi->lock); [ 44.446785][ T3498] [ 44.446785][ T3498] *** DEADLOCK *** [ 44.446785][ T3498] [ 44.454894][ T3498] 3 locks held by syz-executor392/3498: [ 44.460405][ T3498] #0: ffff88807f56e870 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x21c/0x2b0 [ 44.469588][ T3498] #1: ffff888078798f28 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x181/0x740 [ 44.479206][ T3498] #2: ffff888078012558 (sb_pagefaults){.+.+}-{0:0}, at: do_page_mkwrite+0x1a9/0x440 [ 44.488649][ T3498] [ 44.488649][ T3498] stack backtrace: [ 44.494506][ T3498] CPU: 0 PID: 3498 Comm: syz-executor392 Not tainted 5.15.124-syzkaller #0 [ 44.503063][ T3498] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 44.513101][ T3498] Call Trace: [ 44.516390][ T3498] [ 44.519310][ T3498] dump_stack_lvl+0x1e3/0x2cb [ 44.523967][ T3498] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 44.529576][ T3498] ? print_circular_bug+0x12b/0x1a0 [ 44.534750][ T3498] check_noncircular+0x2f8/0x3b0 [ 44.539663][ T3498] ? add_chain_block+0x850/0x850 [ 44.544576][ T3498] ? lockdep_lock+0x11f/0x2a0 [ 44.549230][ T3498] validate_chain+0x1646/0x58b0 [ 44.554063][ T3498] ? stack_trace_snprint+0xe0/0xe0 [ 44.559149][ T3498] ? lockdep_unlock+0x166/0x300 [ 44.563980][ T3498] ? lockdep_lock+0x2a0/0x2a0 [ 44.568648][ T3498] ? reacquire_held_locks+0x660/0x660 [ 44.574012][ T3498] ? validate_chain+0x13b7/0x58b0 [ 44.579015][ T3498] ? hlock_conflict+0x53/0x1f0 [ 44.583762][ T3498] ? mark_lock+0x98/0x340 [ 44.588068][ T3498] __lock_acquire+0x1295/0x1ff0 [ 44.592900][ T3498] lock_acquire+0x1db/0x4f0 [ 44.597386][ T3498] ? reiserfs_write_lock+0x76/0xd0 [ 44.602474][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 44.607829][ T3498] ? __might_sleep+0xc0/0xc0 [ 44.612406][ T3498] ? __lock_acquire+0x1295/0x1ff0 [ 44.617416][ T3498] __mutex_lock_common+0x1da/0x25a0 [ 44.622596][ T3498] ? reiserfs_write_lock+0x76/0xd0 [ 44.627707][ T3498] ? mark_lock+0x98/0x340 [ 44.632121][ T3498] ? reiserfs_write_lock+0x76/0xd0 [ 44.637221][ T3498] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 44.643225][ T3498] ? mutex_lock_io_nested+0x60/0x60 [ 44.648401][ T3498] ? ktime_get_coarse_real_ts64+0x36/0x120 [ 44.654195][ T3498] ? seqcount_lockdep_reader_access+0x153/0x220 [ 44.660485][ T3498] mutex_lock_nested+0x17/0x20 [ 44.665227][ T3498] reiserfs_write_lock+0x76/0xd0 [ 44.670151][ T3498] reiserfs_dirty_inode+0xee/0x240 [ 44.675328][ T3498] ? reiserfs_free_inode+0x20/0x20 [ 44.680416][ T3498] ? reiserfs_free_inode+0x20/0x20 [ 44.685504][ T3498] __mark_inode_dirty+0x2fd/0xd60 [ 44.690503][ T3498] generic_update_time+0x1cb/0x1e0 [ 44.695587][ T3498] file_update_time+0x3eb/0x460 [ 44.700411][ T3498] ? file_remove_privs+0x610/0x610 [ 44.705492][ T3498] ? mapping_seek_hole_data+0x1450/0x1450 [ 44.711184][ T3498] ? pfn_modify_allowed+0x2f0/0x2f0 [ 44.716353][ T3498] ? count_memcg_event_mm+0x385/0x3e0 [ 44.721784][ T3498] filemap_page_mkwrite+0x222/0x650 [ 44.726971][ T3498] ? do_page_mkwrite+0x1a9/0x440 [ 44.731884][ T3498] do_page_mkwrite+0x1a9/0x440 [ 44.736621][ T3498] handle_mm_fault+0x2803/0x5950 [ 44.741553][ T3498] ? numa_migrate_prep+0x1a0/0x1a0 [ 44.746651][ T3498] ? vmacache_find+0x1e7/0x590 [ 44.751392][ T3498] ? vmacache_update+0x9f/0xf0 [ 44.756127][ T3498] exc_page_fault+0x271/0x740 [ 44.760781][ T3498] asm_exc_page_fault+0x22/0x30 [ 44.765607][ T3498] RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 [ 44.772168][ T3498] Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8 [ 44.791749][ T3498] RSP: 0018:ffffc900020ef8b0 EFLAGS: 00050206 [ 44.797791][ T3498] RAX: ffffffff84049c01 RBX: 0000000020002740 RCX: 0000000000001000 [ 44.805747][ T3498] RDX: 0000000000001000 RSI: ffff888072dc8000 RDI: 0000000020001740 [ 44.813706][ T3498] RBP: ffffc900020efd20 R08: dffffc0000000000 R09: ffffed100e5b9200 [ 44.821648][ T3498] R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000020001740 [ 44.829594][ T3498] R13: 0000000000001000 R14: ffff888072dc8000 R15: 00007ffffffff000 [ 44.837540][ T3498] ? copy_page_to_iter+0x3c1/0x10d0 [ 44.842717][ T3498] copy_page_to_iter+0x49a/0x10d0 [ 44.847720][ T3498] filemap_read+0x20f6/0x2980 [ 44.852392][ T3498] ? find_get_pages_range_tag+0x500/0x500 [ 44.858089][ T3498] ? __mutex_trylock_common+0x17e/0x2e0 [ 44.863608][ T3498] ? __might_sleep+0xc0/0xc0 [ 44.868172][ T3498] ? generic_file_read_iter+0x93/0x460 [ 44.873604][ T3498] ? fsnotify_perm+0x438/0x5a0 [ 44.878338][ T3498] vfs_read+0xa9f/0xe10 [ 44.882470][ T3498] ? kernel_read+0x1f0/0x1f0 [ 44.887032][ T3498] ? read_lock_is_recursive+0x10/0x10 [ 44.892378][ T3498] ? mutex_lock_nested+0x17/0x20 [ 44.897287][ T3498] ? __fdget_pos+0x21c/0x2b0 [ 44.901847][ T3498] ksys_read+0x1a2/0x2c0 [ 44.906059][ T3498] ? print_irqtrace_events+0x210/0x210 [ 44.911491][ T3498] ? vfs_write+0xe50/0xe50 [ 44.915887][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 44.921863][ T3498] ? lockdep_hardirqs_on+0x94/0x130 [ 44.927031][ T3498] ? syscall_enter_from_user_mode+0x2e/0x230 [ 44.932991][ T3498] do_syscall_64+0x3d/0xb0 [ 44.937385][ T3498] entry_SYSCALL_64_after_hwframe+0x61/0xcb [ 44.943249][ T3498] RIP: 0033:0x7f343c133c79 [ 44.947638][ T3498] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 [ 44.967348][