====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz-executor/6221 is trying to acquire lock: ffff88805c5d5f58 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] ffff88805c5d5f58 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5){+.+.}-{3:3}, at: __ocfs2_flush_truncate_log+0x352/0x1130 fs/ocfs2/alloc.c:6046 but task is already holding lock: ffff88805c4e42d8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] ffff88805c4e42d8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_flush_truncate_log+0x47/0x60 fs/ocfs2/alloc.c:6075 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3} : down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] ocfs2_move_extent fs/ocfs2/move_extents.c:648 [inline] __ocfs2_move_extents_range+0x1a35/0x3450 fs/ocfs2/move_extents.c:868 ocfs2_move_extents+0x3f9/0xa10 fs/ocfs2/move_extents.c:940 ocfs2_ioctl_move_extents+0x4db/0x6e0 fs/ocfs2/move_extents.c:1066 ocfs2_ioctl+0x199/0x7e0 fs/ocfs2/ioctl.c:961 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xfd/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type] #5){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a07/0x7eb0 kernel/locking/lockdep.c:5171 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] __ocfs2_flush_truncate_log+0x352/0x1130 fs/ocfs2/alloc.c:6046 ocfs2_flush_truncate_log+0x4f/0x60 fs/ocfs2/alloc.c:6076 ocfs2_sync_fs+0x11d/0x330 fs/ocfs2/super.c:402 sync_filesystem+0x1c2/0x220 fs/sync.c:66 generic_shutdown_super+0x6f/0x2b0 fs/super.c:663 kill_block_super+0x44/0x90 fs/super.c:1671 deactivate_locked_super+0x9c/0x210 fs/super.c:479 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259 task_work_run+0x1d4/0x260 kernel/task_work.c:245 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type] #6); lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); lock( &ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6 ); lock(&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#5); *** DEADLOCK *** 2 locks held by syz-executor/6221: #0: ffff8880300720e0 (&type->s_umount_key #55 ){+.+.}-{3:3}, at: __super_lock fs/super.c:56 [inline] ){+.+.}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] ){+.+.}-{3:3}, at: deactivate_super+0xa4/0xe0 fs/super.c:510 #1: ffff88805c4e42d8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88805c4e42d8 (&ocfs2_sysfile_lock_key[args->fi_sysfile_type]#6){+.+.}-{3:3}, at: ocfs2_flush_truncate_log+0x47/0x60 fs/ocfs2/alloc.c:6075 stack backtrace: CPU: 0 PID: 6221 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 check_noncircular+0x2fc/0x400 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a07/0x7eb0 kernel/locking/lockdep.c:5171 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] __ocfs2_flush_truncate_log+0x352/0x1130 fs/ocfs2/alloc.c:6046 ocfs2_flush_truncate_log+0x4f/0x60 fs/ocfs2/alloc.c:6076 ocfs2_sync_fs+0x11d/0x330 fs/ocfs2/super.c:402 sync_filesystem+0x1c2/0x220 fs/sync.c:66 generic_shutdown_super+0x6f/0x2b0 fs/super.c:663 kill_block_super+0x44/0x90 fs/super.c:1671 deactivate_locked_super+0x9c/0x210 fs/super.c:479 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259 task_work_run+0x1d4/0x260 kernel/task_work.c:245 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fd1bb3a0d57 Code: a2 c7 05 9c a9 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdce1602c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fd1bb436fb3 RCX: 00007fd1bb3a0d57 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdce160380 RBP: 00007ffdce160380 R08: 00007ffdce161380 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdce161410 R13: 00007fd1bb436fb3 R14: 0000000000031db2 R15: 00007ffdce161450 kernfs check: removing kernfs fix: removing kernfs set: removing kernfs filecheck: removing kobject: 'filecheck' (ffff88807836d550): kobject_cleanup, parent 0000000000000000 kobject: 'filecheck' (ffff88807836d550): calling ktype release kobject: 'filecheck': free name kernfs loop5: removing kobject: 'loop5' (ffff888065c30e50): kobject_cleanup, parent 0000000000000000 kobject: 'loop5' (ffff888065c30e50): calling ktype release kobject: 'loop5' (ffff888065c30e50): kset_release kobject: 'loop5': free name ocfs2: Unmounting device (7,5) on (node local) kernfs backing_file: removing kernfs offset: removing kernfs sizelimit: removing kernfs autoclear: removing kernfs partscan: removing kernfs dio: removing kernfs loop: removing kobject: 'loop5' (ffff888148d10da8): kobject_uevent_env kobject: 'loop5' (ffff888148d10da8): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop5' (ffff888148d10da8): kobject_uevent_env kobject: 'loop5' (ffff888148d10da8): fill_kobj_path: path = '/devices/virtual/block/loop5' syz-executor: attempt to access beyond end of device loop5: rw=2049, sector=45096, nr_sectors = 8 limit=40427 F2FS-fs (loop5): Stopped filesystem due to reason: 3 kobject: 'stat' (ffff88807d06d758): kobject_cleanup, parent ffff88807d06d6c0 kobject: 'stat' (ffff88807d06d758): auto cleanup kobject_del kernfs sb_status: removing kernfs cp_status: removing kernfs stat: removing kobject: 'stat' (ffff88807d06d758): calling ktype release kobject: 'stat': free name kobject: 'feature_list' (ffff88807d06d7f0): kobject_cleanup, parent ffff88807d06d6c0 kobject: 'feature_list' (ffff88807d06d7f0): auto cleanup kobject_del kernfs encryption: removing kernfs block_zoned: removing kernfs extra_attr: removing kernfs project_quota: removing kernfs inode_checksum: removing kernfs flexible_inline_xattr: removing kernfs quota_ino: removing kernfs inode_crtime: removing kernfs lost_found: removing kernfs verity: removing kernfs sb_checksum: removing kernfs casefold: removing kernfs compression: removing kernfs readonly: removing kernfs feature_list: removing kobject: 'feature_list' (ffff88807d06d7f0): calling ktype release kobject: 'feature_list': free name kobject: 'loop5' (ffff88807d06d6c0): kobject_cleanup, parent ffffffff8e70ccf0 kobject: 'loop5' (ffff88807d06d6c0): auto cleanup kobject_del kernfs gc_urgent_sleep_time: removing kernfs gc_min_sleep_time: removing kernfs gc_max_sleep_time: removing kernfs gc_no_gc_sleep_time: removing kernfs gc_idle: removing kernfs gc_urgent: removing kernfs reclaim_segments: removing kernfs main_blkaddr: removing kernfs max_small_discards: removing kernfs max_discard_request: removing kernfs min_discard_issue_time: removing kernfs mid_discard_issue_time: removing kernfs max_discard_issue_time: removing kernfs discard_io_aware_gran: removing kernfs discard_urgent_util: removing kernfs discard_granularity: removing kernfs max_ordered_discard: removing kernfs pending_discard: removing kernfs gc_mode: removing kernfs ipu_policy: removing kernfs min_ipu_util: removing kernfs min_fsync_blocks: removing kernfs min_seq_blocks: removing kernfs min_hot_blocks: removing kernfs min_ssr_sections: removing kernfs max_victim_search: removing kernfs migration_granularity: removing kernfs dir_level: removing kernfs ram_thresh: removing kernfs ra_nid_pages: removing kernfs dirty_nats_ratio: removing kernfs max_roll_forward_node_blocks: removing kernfs cp_interval: removing kernfs idle_interval: removing kernfs discard_idle_interval: removing kernfs gc_idle_interval: removing kernfs umount_discard_timeout: removing kernfs readdir_ra: removing kernfs max_io_bytes: removing kernfs gc_pin_file_thresh: removing kernfs extension_list: removing kernfs inject_rate: removing kernfs inject_type: removing kernfs data_io_flag: removing kernfs node_io_flag: removing kernfs gc_remaining_trials: removing kernfs ckpt_thread_ioprio: removing kernfs dirty_segments: removing kernfs free_segments: removing kernfs ovp_segments: removing kernfs unusable: removing kernfs lifetime_write_kbytes: removing kernfs features: removing kernfs reserved_blocks: removing kernfs current_reserved_blocks: removing kernfs encoding: removing kernfs mounted_time_sec: removing kernfs cp_foreground_calls: removing kernfs cp_background_calls: removing kernfs gc_foreground_calls: removing kernfs gc_background_calls: removing kernfs moved_blocks_foreground: removing kernfs moved_blocks_background: removing kernfs avg_vblocks: removing kernfs unusable_blocks_per_sec: removing kernfs compr_written_block: removing kernfs compr_saved_block: removing kernfs compr_new_inode: removing kernfs compress_percent: removing kernfs compress_watermark: removing kernfs atgc_candidate_ratio: removing kernfs atgc_candidate_count: removing kernfs atgc_age_weight: removing kernfs atgc_age_threshold: removing kernfs seq_file_ra_mul: removing kernfs gc_segment_mode: removing kernfs gc_reclaimed_segments: removing kernfs max_fragment_chunk: removing kernfs max_fragment_hole: removing kernfs current_atomic_write: removing kernfs peak_atomic_write: removing kernfs committed_atomic_block: removing kernfs revoked_atomic_block: removing kernfs hot_data_age_threshold: removing kernfs warm_data_age_threshold: removing kernfs last_age_weight: removing kernfs loop5: removing kobject: 'loop5' (ffff88807d06d6c0): calling ktype release kobject: 'loop5': free name kernfs backing_file: removing kernfs offset: removing kernfs sizelimit: removing kernfs autoclear: removing kernfs partscan: removing kernfs dio: removing kernfs loop: removing kobject: 'loop5' (ffff888148d10da8): kobject_uevent_env kobject: 'loop5' (ffff888148d10da8): fill_kobj_path: path = '/devices/virtual/block/loop5' kobject: 'loop5' (ffff888148d10da8): kobject_uevent_env kobject: 'loop5' (ffff888148d10da8): fill_kobj_path: path = '/devices/virtual/block/loop5'