program: r0 = syz_init_net_socket$netrom(0x6, 0x5, 0x0) connect$netrom(r0, &(0x7f0000000000)={{0x6, @rose={0xbb, 0xbb, 0xbb, 0x1, 0x0}}, [@bcast, @default, @default, @netrom={0xbb, 0xbb, 0xbb, 0xbb, 0xbb, 0x0, 0x0}, @remote={0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0xcc, 0x0}, @default, @bcast, @default]}, 0x48) syz_mount_image$squashfs(&(0x7f0000000080), &(0x7f0000000000)='./file0\x00', 0x0, &(0x7f0000000780)=ANY=[@ANYRES16=0x0, @ANYRESHEX, @ANYRESHEX, @ANYRES32=0x0, @ANYRESDEC=0x0, @ANYRES64, @ANYBLOB="01ce6671a3b30f673148672100038bbb4413ea284b892438cdddda3da4c78d940655fbd68a286059c5766f98f85fb413503eaf8c90a24dda1e09f68cd741168d69dae50652ca7b67c5b0a27ab80ff9afa5000443de8c748e1d5beabee7c1346b215f641ae190d56ea4ab81bacd909929deb5757040e8d5b2752ea779c30f600bd516a68d881e7fc7289826d49e35134a94e27f115c8195a0f152cbd840ffdb008356c72319cceb43ccb1280556efdf0fdf582fd3cfc830dff1787f000000b7400f5aef57b6dcbfde7af6012383adb085c40e4c295c2a3be750a42400e58523d24b8eecd75caabcee22347bdb78b72b400d080a044ebde5d39ad91ff0ef75aa244381cf00cd6fe9b9a92a9968104bf02481022af426853287e521a4e3cfe480f984efcea1359ff932ebd3bc75aefea41074799f3502a7472a6686b4011a41d7f0cfb25b3dc3077b4e8ded17cfff2b1d59bc12f637c36690f5ca91ee999ec138f6ce66522e652939a37435edb78f9ae18489f9d2b73c81609399f0d123f1721171bd72c012623f04d8965d3e5785d057c15798ab36af821c9b308731422ba3858b9895ace14068ea58f8cb6060c205caf209a73628eff5b9270a4a55c2d7fc59a4fe6e023bd424d8b010e2232d1b2e6ca603b466b2c82afff4a8cc469e8664d54769fc97df122b3ff8c34354dad46f900eaf6e72e538c0595caa056984ab8974dadad47a42af7cdae5bde6a12f412fe2a876aa191e78e91fbf780e2f4a20f57d41376b29f990ce63aa6edf622d2203fee37df269abf869d13b175852b775fff70491d1e5d1311b7eef954a101ddb98c5ba2b312528485ece7aff23cc6fee599daea0fca71a5970cf0fc82b49640cc3fabbc401dead4f83aa0c4072a9e98ab5afb790be17961fc073e2f8ec00000000000000005089d6db5ad893ee9b22b9250d01980952d0a3e0076c877556fa43f90cb574fd6ad67398ac4d9f8ff4e3ef09f99220928602523adc2289b5130c5f8e48384eff563a10787b0199642385e811504e7168804114842d51f42dd6937515fa64b2fd14ef427072c6556b99171bd00165a9aada7173f001679ac791ee67188c670f583f7b1f8d", @ANYRES8=0x0, @ANYRES32], 0x1, 0x1d2, &(0x7f0000000580)="$eJzslU9rE0EYxn+zO2kazaFnrxbbi7bZgvgN7AfwAxjStRYT/3QDmlAweunFg/glCn4KD4LePYgIXupBQQ8VTxWJzM474ywNRMVQAvPA8j7vM++fmVlm5mZxr6gDP4/2OixRQtHkvVJoYEVZ7XjB2m9ix4JP2vot0Z+L/Si2GAzfPLF0eKvd7ea7xWAKUQqmxVTISUn/cbMJ5PXjqqL4tzqzJ/3U7uzJoacVpT4pRnI59VXMgnxvQqh8/t8tasx6FeCVH83pv+ndM/s7J8akkt6gui3zR5K/yiqQ66u4+ijha+m8PdrrGHJdbjGjbdnPHYkyxjgvg5hzGkagUsa+ji5vS1gB1vq9u2vFYHhxp9fezrfz21m2cXn91Vk5ouOHsNPN11UwjcQQjYc5p41gvAZ8+D0+IoAKpmZwBpTLdSnucl49HyQ2IAlywxq27gvfvy5aSo9rXGARuD8ywxl2t5Yx1TQ3zNI2UaTitHQwTzgmYbEcuNS5093aR6Fc2gHa12gdUvNOJo5plG9c8cvfF7ssdlPsgdhDse7tcm+SLit8EW91BAs8aPf7u+XjZZnXMq9lS75zIl3da6jcTOpERERERERERMwJfgUAAP//B6hPCg==") r1 = openat$dir(0xffffffffffffff9c, &(0x7f0000000080)='.\x00', 0x2c06c2, 0x0) r2 = inotify_init() inotify_add_watch(r2, &(0x7f0000000240)='./file0\x00', 0x4000842) umount2(&(0x7f00000000c0)='./file0/file0\x00', 0x9) getdents64(r1, &(0x7f0000000f80)=""/4096, 0x1000) ioctl$sock_inet_SIOCSIFFLAGS(r0, 0x8914, &(0x7f0000000100)={'wlan1\x00'}) [ 78.570034][ T4535] Bluetooth: hci0: command tx timeout [ 78.723685][ T5110] loop0: detected capacity change from 0 to 8 [ 78.803244][ T74] [ 78.804250][ T74] ====================================================== [ 78.806880][ T74] WARNING: possible circular locking dependency detected [ 78.809419][ T74] 6.11.0-syzkaller-11558-g075dbe9f6e3c #0 Not tainted [ 78.811902][ T74] ------------------------------------------------------ [ 78.814473][ T74] kswapd0/74 is trying to acquire lock: [ 78.816564][ T74] ffff888012476930 (&group->mark_mutex){+.+.}-{3:3}, at: fsnotify_destroy_mark+0x38/0x3c0 [ 78.823028][ T74] [ 78.823028][ T74] but task is already holding lock: [ 78.825619][ T74] ffffffff8ea37100 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 78.828418][ T74] [ 78.828418][ T74] which lock already depends on the new lock. [ 78.828418][ T74] [ 78.832021][ T74] [ 78.832021][ T74] the existing dependency chain (in reverse order) is: [ 78.835193][ T74] [ 78.835193][ T74] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 78.837899][ T74] lock_acquire+0x1ed/0x550 [ 78.839709][ T74] fs_reclaim_acquire+0x88/0x140 [ 78.841896][ T74] kmem_cache_alloc_noprof+0x3d/0x2a0 [ 78.844118][ T74] __se_sys_inotify_add_watch+0x728/0x1060 [ 78.846505][ T74] do_syscall_64+0xf3/0x230 [ 78.848551][ T74] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 78.850954][ T74] [ 78.850954][ T74] -> #0 (&group->mark_mutex){+.+.}-{3:3}: [ 78.853988][ T74] validate_chain+0x18ef/0x5920 [ 78.856097][ T74] __lock_acquire+0x1384/0x2050 [ 78.858232][ T74] lock_acquire+0x1ed/0x550 [ 78.860248][ T74] __mutex_lock+0x136/0xd70 [ 78.862245][ T74] fsnotify_destroy_mark+0x38/0x3c0 [ 78.864387][ T74] fsnotify_destroy_marks+0x14a/0x660 [ 78.866541][ T74] dentry_unlink_inode+0x2e0/0x430 [ 78.868611][ T74] __dentry_kill+0x20d/0x630 [ 78.870471][ T74] shrink_kill+0xa9/0x2c0 [ 78.872273][ T74] shrink_dentry_list+0x2c0/0x5b0 [ 78.874320][ T74] prune_dcache_sb+0x10f/0x180 [ 78.876432][ T74] super_cache_scan+0x34f/0x4b0 [ 78.878528][ T74] do_shrink_slab+0x701/0x1160 [ 78.880527][ T74] shrink_slab+0x1093/0x14d0 [ 78.882501][ T74] shrink_one+0x43b/0x850 [ 78.884424][ T74] shrink_node+0x3799/0x3de0 [ 78.886354][ T74] kswapd+0x1ca3/0x3700 [ 78.888178][ T74] kthread+0x2f0/0x390 [ 78.889958][ T74] ret_from_fork+0x4b/0x80 [ 78.891876][ T74] ret_from_fork_asm+0x1a/0x30 [ 78.893959][ T74] [ 78.893959][ T74] other info that might help us debug this: [ 78.893959][ T74] [ 78.897724][ T74] Possible unsafe locking scenario: [ 78.897724][ T74] [ 78.900574][ T74] CPU0 CPU1 [ 78.902664][ T74] ---- ---- [ 78.904725][ T74] lock(fs_reclaim); [ 78.906289][ T74] lock(&group->mark_mutex); [ 78.909103][ T74] lock(fs_reclaim); [ 78.911475][ T74] lock(&group->mark_mutex); [ 78.913334][ T74] [ 78.913334][ T74] *** DEADLOCK *** [ 78.913334][ T74] [ 78.916407][ T74] 2 locks held by kswapd0/74: [ 78.918244][ T74] #0: ffffffff8ea37100 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 78.921404][ T74] #1: ffff888000de00e0 (&type->s_umount_key#47){.+.+}-{3:3}, at: super_cache_scan+0x94/0x4b0 [ 78.925277][ T74] [ 78.925277][ T74] stack backtrace: [ 78.927516][ T74] CPU: 0 UID: 0 PID: 74 Comm: kswapd0 Not tainted 6.11.0-syzkaller-11558-g075dbe9f6e3c #0 [ 78.931281][ T74] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 78.935199][ T74] Call Trace: [ 78.936532][ T74] [ 78.937709][ T74] dump_stack_lvl+0x241/0x360 [ 78.939449][ T74] ? __pfx_dump_stack_lvl+0x10/0x10 [ 78.941399][ T74] ? __pfx__printk+0x10/0x10 [ 78.943184][ T74] print_circular_bug+0x13a/0x1b0 [ 78.945136][ T74] check_noncircular+0x36a/0x4a0 [ 78.947005][ T74] ? __pfx_check_noncircular+0x10/0x10 [ 78.949114][ T74] validate_chain+0x18ef/0x5920 [ 78.950975][ T74] ? __pfx_validate_chain+0x10/0x10 [ 78.953030][ T74] ? __pfx_validate_chain+0x10/0x10 [ 78.955075][ T74] ? __pfx_validate_chain+0x10/0x10 [ 78.957157][ T74] ? mark_lock+0x9a/0x360 [ 78.958884][ T74] __lock_acquire+0x1384/0x2050 [ 78.960795][ T74] lock_acquire+0x1ed/0x550 [ 78.962566][ T74] ? fsnotify_destroy_mark+0x38/0x3c0 [ 78.964712][ T74] ? __pfx_lock_acquire+0x10/0x10 [ 78.966605][ T74] ? __pfx___might_resched+0x10/0x10 [ 78.968620][ T74] __mutex_lock+0x136/0xd70 [ 78.970388][ T74] ? fsnotify_destroy_mark+0x38/0x3c0 [ 78.972452][ T74] ? fsnotify_destroy_mark+0x38/0x3c0 [ 78.974508][ T74] ? __pfx___mutex_lock+0x10/0x10 [ 78.976473][ T74] ? __pfx_lock_release+0x10/0x10 [ 78.978291][ T74] fsnotify_destroy_mark+0x38/0x3c0 [ 78.980153][ T74] ? fsnotify_grab_connector+0x3e/0x240 [ 78.982247][ T74] fsnotify_destroy_marks+0x14a/0x660 [ 78.984492][ T74] dentry_unlink_inode+0x2e0/0x430 [ 78.986830][ T74] __dentry_kill+0x20d/0x630 [ 78.989102][ T74] ? shrink_kill+0x8d/0x2c0 [ 78.991179][ T74] shrink_kill+0xa9/0x2c0 [ 78.992876][ T74] shrink_dentry_list+0x2c0/0x5b0 [ 78.994780][ T74] prune_dcache_sb+0x10f/0x180 [ 78.996555][ T74] ? __pfx_prune_dcache_sb+0x10/0x10 [ 78.998534][ T74] ? list_lru_count_one+0x29/0x2e0 [ 79.000307][ T74] ? list_lru_count_one+0x283/0x2e0 [ 79.002284][ T74] ? list_lru_count_one+0x29/0x2e0 [ 79.004179][ T74] super_cache_scan+0x34f/0x4b0 [ 79.006019][ T74] do_shrink_slab+0x701/0x1160 [ 79.007921][ T74] ? shrink_slab+0x12b/0x14d0 [ 79.009679][ T74] shrink_slab+0x1093/0x14d0 [ 79.011437][ T74] ? shrink_slab+0x12b/0x14d0 [ 79.013309][ T74] ? __pfx_shrink_slab+0x10/0x10 [ 79.015196][ T74] ? shrink_node+0x3547/0x3de0 [ 79.017057][ T74] ? __pfx_lock_release+0x10/0x10 [ 79.019019][ T74] shrink_one+0x43b/0x850 [ 79.020583][ T74] ? shrink_node+0x3547/0x3de0 [ 79.022281][ T74] shrink_node+0x3799/0x3de0 [ 79.023928][ T74] ? shrink_node+0x3547/0x3de0 [ 79.025720][ T74] ? __pfx_lock_acquire+0x10/0x10 [ 79.027681][ T74] ? mem_cgroup_iter+0x3d/0x420 [ 79.029456][ T74] ? __pfx_lock_release+0x10/0x10 [ 79.031429][ T74] ? __pfx_shrink_node+0x10/0x10 [ 79.033201][ T74] ? mem_cgroup_iter+0x3d/0x420 [ 79.034890][ T74] kswapd+0x1ca3/0x3700 [ 79.036509][ T74] ? kswapd+0xbf1/0x3700 [ 79.038122][ T74] ? __pfx_kswapd+0x10/0x10 [ 79.039810][ T74] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 79.042034][ T74] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 79.044361][ T74] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 79.046677][ T74] ? __pfx_autoremove_wake_function+0x10/0x10 [ 79.048928][ T74] ? __kthread_parkme+0x169/0x1d0 [ 79.050762][ T74] ? __pfx_kswapd+0x10/0x10 [ 79.052458][ T74] kthread+0x2f0/0x390 [ 79.053975][ T74] ? __pfx_kswapd+0x10/0x10 [ 79.055714][ T74] ? __pfx_kthread+0x10/0x10 [ 79.057499][ T74] ret_from_fork+0x4b/0x80 [ 79.059147][ T74] ? __pfx_kthread+0x10/0x10 [ 79.060780][ T74] ret_from_fork_asm+0x1a/0x30 [ 79.062588][ T74]