Warning: Permanently added '[localhost]:2205' (ED25519) to the list of known hosts. [+] Starting reproducer for deadlock in shrinker_free... [+] Created ocfs2 disk image /tmp/ocfs2.img (8388608 bytes). [+] Opened /dev/loop-control. [+] Using loop device /dev/loop0. [+] Opened /dev/loop0. [+] Opened /tmp/ocfs2.img for loop attach. [ 191.719560][ T5689] loop0: detected capacity change from 0 to 16384 [+] LOOP_SET_FD succeeded on /dev/loop0. [+] Closed img_fd and loop_fd prior to mount. [+] Establishing shrinker_mutex -> fs_reclaim dependency via memcg... [+] /proc/mounts scan: cgroup1_mem='/syzcgroup/cpu', cgroup2='/syzcgroup/unified' [+] Attached pid 5689 to /syzcgroup/cpu/cg_test/tasks [+] Verified cgroup v1 memcg at /syzcgroup/cpu/cg_test [+] Memory cgroup ready at /syzcgroup/cpu/cg_test [+] Successfully mounted /dev/loop0 on /tmp/ocfs2_mnt with options 'heartbeat=none'. [+] Populating dcache LRU with ocfs2 dentries... [ 191.864967][ T5689] ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. [+] Completed accessing 200 files (successful: 200). [+] Triggering memory reclaim under fs_reclaim... [ 192.201029][ T1030] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 192.201054][ T1030] ata1.00: irq_stat 0x40000000 [ 192.201065][ T1030] ata1.00: failed command: WRITE DMA EXT [ 192.201072][ T1030] ata1.00: cmd 35/00:c0:1e:1c:05/00:07:00:00:00/e0 tag 14 dma 1015808 out [ 192.201072][ T1030] res 41/04:c0:1e:1c:05/00:07:00:00:00/e0 Emask 0x1 (device error) [ 192.201104][ T1030] ata1.00: status: { DRDY ERR } [ 192.201111][ T1030] ata1.00: error: { ABRT } [ 192.203833][ T1030] ata1.00: configured for UDMA/100 [ 192.203906][ T1030] ata1: EH complete [ 192.321586][ T1030] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 [ 192.321611][ T1030] ata1.00: irq_stat 0x40000000 [ 192.321623][ T1030] ata1.00: failed command: WRITE DMA EXT [ 192.321630][ T1030] ata1.00: cmd 35/00:d8:ee:b5:04/00:08:00:00:00/e0 tag 14 dma 1159168 out [ 192.321630][ T1030] res 41/04:d8:ee:b5:04/00:08:00:00:00/e0 Emask 0x1 (device error) [ 192.321656][ T1030] ata1.00: status: { DRDY ERR } [ 192.321662][ T1030] ata1.00: error: { ABRT } [ 192.324045][ T1030] ata1.00: configured for UDMA/100 [ 192.324129][ T1030] ata1: EH complete [-] Write to /sys/devices/system/node/node0/reclaim returned: Resource temporarily unavailable (expected if reclaim target not met) [ 194.502016][ T1030] ata1.00: limiting speed to UDMA/66:PIO4 [ 194.502160][ T1030] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 [ 194.502172][ T1030] ata1.00: irq_stat 0x40000000 [ 194.502185][ T1030] ata1.00: failed command: READ DMA EXT [ 194.502192][ T1030] ata1.00: cmd 25/00:48:0e:99:03/00:05:00:00:00/e0 tag 30 dma 692224 in [ 194.502192][ T1030] res 41/04:48:0e:99:03/00:05:00:00:00/e0 Emask 0x1 (device error) [ 194.502220][ T1030] ata1.00: status: { DRDY ERR } [ 194.502227][ T1030] ata1.00: error: { ABRT } [ 194.502564][ T1030] ata1: hard resetting link [ 194.822121][ T1030] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [ 194.824159][ T1030] ata1.00: configured for UDMA/66 [ 194.824484][ T1030] sd 0:0:0:0: [sda] tag#30 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s [ 194.824520][ T1030] sd 0:0:0:0: [sda] tag#30 Sense Key : Aborted Command [current] [ 194.825329][ T1030] sd 0:0:0:0: [sda] tag#30 Add. Sense: No additional sense information [ 194.825362][ T1030] sd 0:0:0:0: [sda] tag#30 CDB: Read(10) 28 00 00 03 99 0e 00 05 48 00 [ 194.825379][ T1030] I/O error, dev sda, sector 235790 op 0x0:(READ) flags 0x84700 phys_seg 168 prio class 2 [ 194.825547][ T1030] ata1: EH complete [-] Write to /sys/devices/system/node/node1/reclaim returned: Resource temporarily unavailable (expected if reclaim target not met) [+] Triggered force_empty via /syzcgroup/cpu/cg_test/memory.force_empty [+] Available memory: 291156 kB. [+] Target memory allocation pressure: 241 MB. [+] Memory pressure child finished (status: 0). [+] Unmounting /tmp/ocfs2_mnt to trigger shrinker_free deadlock warning... [ 197.522311][ T5689] [ 197.523648][ T5689] ====================================================== [ 197.526768][ T5689] WARNING: possible circular locking dependency detected [ 197.529895][ T5689] syzkaller #0 Not tainted [ 197.532010][ T5689] ------------------------------------------------------ [ 197.535152][ T5689] syz-executor875/5689 is trying to acquire lock: [ 197.537978][ T5689] ffffffff902617a0 (shrinker_mutex){+.+.}-{4:4}, at: shrinker_free+0xdb/0x3b0 [ 197.542022][ T5689] [ 197.542022][ T5689] but task is already holding lock: [ 197.545426][ T5689] ffff8880421282f8 (&osb->journal_shutdown_sem){++++}-{4:4}, at: ocfs2_journal_shutdown+0x4ec/0xb40 [ 197.550552][ T5689] [ 197.550552][ T5689] which lock already depends on the new lock. [ 197.550552][ T5689] [ 197.555332][ T5689] [ 197.555332][ T5689] the existing dependency chain (in reverse order) is: [ 197.559341][ T5689] [ 197.559341][ T5689] -> #2 (&osb->journal_shutdown_sem){++++}-{4:4}: [ 197.563164][ T5689] down_read+0x45/0x320 [ 197.565383][ T5689] ocfs2_evict_inode+0x2dd8/0x43c0 [ 197.567906][ T5689] evict+0x6bf/0xc20 [ 197.569860][ T5689] ocfs2_dentry_iput+0x24d/0x390 [ 197.572284][ T5689] dentry_kill+0x1b9/0x910 [ 197.574583][ T5689] shrink_dentry_list+0x209/0x310 [ 197.577080][ T5689] prune_dcache_sb+0x119/0x180 [ 197.579454][ T5689] super_cache_scan+0x362/0x4a0 [ 197.581912][ T5689] do_shrink_slab+0x6d0/0x10d0 [ 197.584468][ T5689] shrink_slab+0x838/0x1210 [ 197.586621][ T5689] shrink_one+0x396/0x10f0 [ 197.588772][ T5689] shrink_node+0x631e/0x6c50 [ 197.590866][ T5689] __node_reclaim+0x2f4/0xa10 [ 197.593012][ T5689] user_proactive_reclaim+0x699/0x8d0 [ 197.595668][ T5689] reclaim_store+0x69/0xb0 [ 197.597838][ T5689] kernfs_fop_write_iter+0x3a4/0x540 [ 197.600383][ T5689] vfs_write+0x612/0xba0 [ 197.602559][ T5689] ksys_write+0x150/0x270 [ 197.604808][ T5689] do_syscall_64+0x171/0x540 [ 197.607029][ T5689] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 197.609507][ T5689] [ 197.609507][ T5689] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 197.612406][ T5689] fs_reclaim_acquire+0x71/0x100 [ 197.614875][ T5689] __kvmalloc_node_noprof+0x134/0x820 [ 197.617520][ T5689] alloc_shrinker_info+0xe9/0x400 [ 197.619969][ T5689] mem_cgroup_css_online+0x84/0x7b0 [ 197.622458][ T5689] online_css+0xbf/0x310 [ 197.624651][ T5689] cgroup_apply_control_enable+0x9ed/0xda0 [ 197.627427][ T5689] cgroup_mkdir+0x1220/0x14b0 [ 197.629707][ T5689] kernfs_iop_mkdir+0x213/0x360 [ 197.632087][ T5689] vfs_mkdir+0x411/0x660 [ 197.634312][ T5689] filename_mkdirat+0x284/0x550 [ 197.636821][ T5689] __se_sys_mkdirat+0x35/0x150 [ 197.639218][ T5689] do_syscall_64+0x171/0x540 [ 197.641539][ T5689] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 197.644561][ T5689] [ 197.644561][ T5689] -> #0 (shrinker_mutex){+.+.}-{4:4}: [ 197.647861][ T5689] __lock_acquire+0x164c/0x2de0 [ 197.650214][ T5689] lock_acquire+0x115/0x350 [ 197.652439][ T5689] __mutex_lock+0x197/0x15a0 [ 197.654757][ T5689] shrinker_free+0xdb/0x3b0 [ 197.657125][ T5689] jbd2_journal_destroy+0x606/0x7e0 [ 197.659698][ T5689] ocfs2_journal_shutdown+0x517/0xb40 [ 197.662341][ T5689] ocfs2_dismount_volume+0x3c9/0x860 [ 197.665000][ T5689] generic_shutdown_super+0x140/0x2d0 [ 197.667819][ T5689] kill_block_super+0x44/0xa0 [ 197.670125][ T5689] deactivate_locked_super+0xbe/0x110 [ 197.672827][ T5689] cleanup_mnt+0x204/0x2a0 [ 197.675120][ T5689] task_work_run+0x1d9/0x260 [ 197.677591][ T5689] exit_to_user_mode_loop+0x204/0x770 [ 197.680934][ T5689] do_syscall_64+0x336/0x540 [ 197.683746][ T5689] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 197.686720][ T5689] [ 197.686720][ T5689] other info that might help us debug this: [ 197.686720][ T5689] [ 197.691197][ T5689] Chain exists of: [ 197.691197][ T5689] shrinker_mutex --> fs_reclaim --> &osb->journal_shutdown_sem [ 197.691197][ T5689] [ 197.697254][ T5689] Possible unsafe locking scenario: [ 197.697254][ T5689] [ 197.700594][ T5689] CPU0 CPU1 [ 197.703253][ T5689] ---- ---- [ 197.705641][ T5689] lock(&osb->journal_shutdown_sem); [ 197.708072][ T5689] lock(fs_reclaim); [ 197.710975][ T5689] lock(&osb->journal_shutdown_sem); [ 197.714193][ T5689] lock(shrinker_mutex); [ 197.716171][ T5689] [ 197.716171][ T5689] *** DEADLOCK *** [ 197.716171][ T5689] [ 197.720087][ T5689] locks held by syz-executor875/5689: 2, on CPU#0: [ 197.723027][ T5689] #0: ffff88804f39a100 (&type->s_umount_key#56){++++}-{4:4}, at: deactivate_super+0xac/0xe0 [ 197.727632][ T5689] #1: ffff8880421282f8 (&osb->journal_shutdown_sem){++++}-{4:4}, at: ocfs2_journal_shutdown+0x4ec/0xb40 [ 197.732399][ T5689] [ 197.732399][ T5689] stack backtrace: [ 197.735350][ T5689] CPU: 0 UID: 0 PID: 5689 Comm: syz-executor875 Not tainted syzkaller #0 PREEMPT(full) [ 197.739643][ T5689] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 197.744246][ T5689] Call Trace: [ 197.745751][ T5689] [ 197.747113][ T5689] dump_stack_lvl+0xe8/0x150 [ 197.749233][ T5689] print_circular_bug+0x2e2/0x300 [ 197.751503][ T5689] check_noncircular+0x12f/0x150 [ 197.753755][ T5689] __lock_acquire+0x164c/0x2de0 [ 197.756078][ T5689] ? __lock_acquire+0x747/0x2de0 [ 197.758231][ T5689] ? check_path+0x21/0x40 [ 197.760167][ T5689] ? check_noncircular+0xdb/0x150 [ 197.762432][ T5689] lock_acquire+0x115/0x350 [ 197.764510][ T5689] ? shrinker_free+0xdb/0x3b0 [ 197.766577][ T5689] __mutex_lock+0x197/0x15a0 [ 197.768681][ T5689] ? shrinker_free+0xdb/0x3b0 [ 197.770769][ T5689] ? _raw_spin_unlock_irq+0x23/0x50 [ 197.773109][ T5689] ? _raw_spin_unlock_irq+0x2e/0x50 [ 197.775438][ T5689] ? wait_for_completion+0x4cb/0x5d0 [ 197.777722][ T5689] ? shrinker_free+0xdb/0x3b0 [ 197.779832][ T5689] ? __pfx___mutex_lock+0x10/0x10 [ 197.781946][ T5689] ? _raw_spin_unlock_irqrestore+0x30/0x80 [ 197.784348][ T5689] shrinker_free+0xdb/0x3b0 [ 197.786273][ T5689] jbd2_journal_destroy+0x606/0x7e0 [ 197.788695][ T5689] ? __pfx_jbd2_journal_destroy+0x10/0x10 [ 197.791258][ T5689] ? down_write+0x166/0x200 [ 197.793313][ T5689] ? __pfx_down_write+0x10/0x10 [ 197.795562][ T5689] ? __wake_up_common_lock+0x195/0x1f0 [ 197.797967][ T5689] ocfs2_journal_shutdown+0x517/0xb40 [ 197.800334][ T5689] ? __pfx_ocfs2_journal_shutdown+0x10/0x10 [ 197.803058][ T5689] ? ocfs2_release_system_inodes+0x426/0x490 [ 197.805691][ T5689] ? ocfs2_release_system_inodes+0x426/0x490 [ 197.808537][ T5689] ocfs2_dismount_volume+0x3c9/0x860 [ 197.810897][ T5689] ? __pfx_ocfs2_dismount_volume+0x10/0x10 [ 197.813576][ T5689] ? __pfx_evict_inodes+0x10/0x10 [ 197.815916][ T5689] ? __pfx_ocfs2_put_super+0x10/0x10 [ 197.818340][ T5689] generic_shutdown_super+0x140/0x2d0 [ 197.820813][ T5689] kill_block_super+0x44/0xa0 [ 197.822945][ T5689] deactivate_locked_super+0xbe/0x110 [ 197.825548][ T5689] cleanup_mnt+0x204/0x2a0 [ 197.827605][ T5689] task_work_run+0x1d9/0x260 [ 197.829723][ T5689] ? __pfx_task_work_run+0x10/0x10 [ 197.832246][ T5689] exit_to_user_mode_loop+0x204/0x770 [ 197.834607][ T5689] ? rcu_is_watching+0x16/0xb0 [ 197.836669][ T5689] do_syscall_64+0x336/0x540 [ 197.838550][ T5689] ? trace_irq_disable+0x3b/0x140 [ 197.840859][ T5689] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 197.843577][ T5689] ? clear_bhb_loop+0x70/0xc0 [ 197.845758][ T5689] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 197.848379][ T5689] RIP: 0033:0x7ff9dea5b657 [ 197.850353][ T5689] Code: a2 c7 05 24 da 09 00 00 00 00 00 eb 96 e8 51 09 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 d8 ff ff ff f7 d8 64 89 02 b8 [ 197.859132][ T5689] RSP: 002b:00007fff91194d68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 [ 197.863035][ T5689] RAX: 0000000000000000 RBX: 00007fff91195610 RCX: 00007ff9dea5b657 [ 197.866795][ T5689] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ff9deac527a [ 197.870460][ T5689] RBP: 00007fff91195210 R08: 0000000000000000 R09: 0000000000000000 [ 197.874024][ T5689] R10: 0000000000000000 R11: 0000000000000246 R12: 000000000f1aea66 [ 197.877661][ T5689] R13: 00007ff9deac527a R14: 00007ff9deac52fe R15: 00005555828d9760 [ 197.881375][ T5689] [ 197.911497][ T5689] ocfs2: Unmounting device (7,0) on (node local) [+] Unmounted /tmp/ocfs2_mnt successfully. [+] Detached loop device /dev/loop0. [+] Reproducer sequence finished. [ 204.782814][ T1337] ieee802154 phy0 wpan0: encryption failed: -22 [ 204.782979][ T1337] ieee802154 phy1 wpan1: encryption failed: -22