====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ syz-executor/5641 is trying to acquire lock: ffffffff90262bc0 (shrinker_mutex){+.+.}-{4:4}, at: shrinker_free+0xdb/0x3b0 mm/shrinker.c:809 but task is already holding lock: ffff88805258c2f8 (&osb->journal_shutdown_sem){++++}-{4:4}, at: ocfs2_journal_shutdown+0x4ec/0xb40 fs/ocfs2/journal.c:1122 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&osb->journal_shutdown_sem){++++}-{4:4}: down_read+0x45/0x320 kernel/locking/rwsem.c:1574 ocfs2_clear_inode fs/ocfs2/inode.c:1510 [inline] ocfs2_evict_inode+0x2dd8/0x43c0 fs/ocfs2/inode.c:1527 evict+0x6bf/0xc20 fs/inode.c:830 ocfs2_dentry_iput+0x24d/0x390 fs/ocfs2/dcache.c:407 dentry_kill+0x1b9/0x910 fs/dcache.c:857 shrink_kill fs/dcache.c:1318 [inline] shrink_dentry_list+0x209/0x310 fs/dcache.c:1335 prune_dcache_sb+0x119/0x180 fs/dcache.c:1417 super_cache_scan+0x362/0x4a0 fs/super.c:307 do_shrink_slab+0x6d0/0x10d0 mm/shrinker.c:452 shrink_slab_memcg mm/shrinker.c:569 [inline] shrink_slab+0x838/0x1210 mm/shrinker.c:647 shrink_node_memcgs mm/vmscan.c:6446 [inline] shrink_node+0x3270/0x6a50 mm/vmscan.c:6488 __node_reclaim+0x2b9/0x960 mm/vmscan.c:8016 user_proactive_reclaim+0x699/0x8d0 mm/vmscan.c:8206 reclaim_store+0x69/0xb0 mm/vmscan.c:8272 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:580 [inline] vfs_write+0x612/0xba0 fs/read_write.c:672 ksys_write+0x150/0x270 fs/read_write.c:1021 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #1 (fs_reclaim){+.+.}-{0:0}: __fs_reclaim_acquire mm/page_alloc.c:4395 [inline] fs_reclaim_acquire+0x71/0x100 mm/page_alloc.c:4409 might_alloc include/linux/sched/mm.h:316 [inline] slab_pre_alloc_hook mm/slub.c:4710 [inline] slab_alloc_node mm/slub.c:5049 [inline] __do_kmalloc_node mm/slub.c:5568 [inline] __kvmalloc_node_noprof+0x134/0x820 mm/slub.c:7175 alloc_shrinker_info+0xe9/0x400 mm/shrinker.c:101 mem_cgroup_css_online+0x84/0x7a0 mm/memcontrol.c:4446 online_css+0xbf/0x310 kernel/cgroup/cgroup.c:5903 css_create kernel/cgroup/cgroup.c:5983 [inline] cgroup_apply_control_enable+0x9ed/0xda0 kernel/cgroup/cgroup.c:3474 cgroup_mkdir+0x1220/0x14b0 kernel/cgroup/cgroup.c:6188 kernfs_iop_mkdir+0x27d/0x560 fs/kernfs/dir.c:1323 vfs_mkdir_no_perm+0x1a9/0x3b0 fs/namei.c:4254 vfs_mkdir+0x2b3/0x2f0 fs/namei.c:5522 filename_mkdirat+0x284/0x550 fs/namei.c:5551 __do_sys_mkdirat fs/namei.c:5572 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5569 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (shrinker_mutex){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 shrinker_free+0xdb/0x3b0 mm/shrinker.c:809 jbd2_journal_destroy+0x606/0x7e0 fs/jbd2/journal.c:2189 ocfs2_journal_shutdown+0x517/0xb40 fs/ocfs2/journal.c:1125 ocfs2_dismount_volume+0x3c9/0x860 fs/ocfs2/super.c:1887 generic_shutdown_super+0x140/0x2d0 fs/super.c:823 kill_block_super+0x44/0xa0 fs/super.c:2139 deactivate_locked_super+0xbe/0x110 fs/super.c:655 cleanup_mnt+0x204/0x2a0 fs/namespace.c:1414 task_work_run+0x1d9/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x336/0x540 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Chain exists of: shrinker_mutex --> fs_reclaim --> &osb->journal_shutdown_sem Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&osb->journal_shutdown_sem); lock(fs_reclaim); lock(&osb->journal_shutdown_sem); lock(shrinker_mutex); *** DEADLOCK *** locks held by syz-executor/5641: 2, on CPU#0: #0: ffff88803658a100 (&type->s_umount_key#88){++++}-{4:4}, at: __super_lock fs/super.c:74 [inline] #0: ffff88803658a100 (&type->s_umount_key#88){++++}-{4:4}, at: __super_lock_excl fs/super.c:91 [inline] #0: ffff88803658a100 (&type->s_umount_key#88){++++}-{4:4}, at: deactivate_super+0xac/0xe0 fs/super.c:682 #1: ffff88805258c2f8 (&osb->journal_shutdown_sem){++++}-{4:4}, at: ocfs2_journal_shutdown+0x4ec/0xb40 fs/ocfs2/journal.c:1122 stack backtrace: CPU: 0 UID: 0 PID: 5641 Comm: syz-executor Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_circular_bug+0x2e2/0x300 kernel/locking/lockdep.c:2087 check_noncircular+0x12f/0x150 kernel/locking/lockdep.c:2219 check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 shrinker_free+0xdb/0x3b0 mm/shrinker.c:809 jbd2_journal_destroy+0x606/0x7e0 fs/jbd2/journal.c:2189 ocfs2_journal_shutdown+0x517/0xb40 fs/ocfs2/journal.c:1125 ocfs2_dismount_volume+0x3c9/0x860 fs/ocfs2/super.c:1887 generic_shutdown_super+0x140/0x2d0 fs/super.c:823 kill_block_super+0x44/0xa0 fs/super.c:2139 deactivate_locked_super+0xbe/0x110 fs/super.c:655 cleanup_mnt+0x204/0x2a0 fs/namespace.c:1414 task_work_run+0x1d9/0x260 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x336/0x540 arch/x86/entry/syscall_64.c:107 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x00007fbcce3aa7c7 Code: a2 c7 05 2c 4f 25 00 00 00 00 00 eb 96 e8 b1 13 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:00007fffbc5e6908 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fbcce43751b RCX: 00007fbcce3aa7c7 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fffbc5e69c0 RBP: 00007fffbc5e69c0 R08: 00007fffbc5e79c0 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffbc5e7a50 R13: 00007fbcce43751b R14: 000000000002ce40 R15: 00007fffbc5e7a90 ocfs2: Unmounting device (7,0) on (node local) syz_tun (unregistering): left allmulticast mode