program: 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==") r0 = openat$dir(0xffffffffffffff9c, &(0x7f0000000080)='.\x00', 0x0, 0x0) r1 = inotify_init() inotify_add_watch(r1, &(0x7f0000000240)='./file0\x00', 0x4000842) getdents64(r0, &(0x7f0000000f80)=""/4096, 0x1000) syz_mount_image$ext4(&(0x7f0000000180)='ext4\x00', &(0x7f0000000000)='./bus\x00', 0x21081e, &(0x7f0000000200)={[{@nodelalloc}, {@norecovery}, {@minixdf}]}, 0x1, 0x4fa, &(0x7f0000000ac0)="$eJzs3c9vG1kdAPCvnThx0uwmu+wBEOyW3YWCq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q9LL5L3mppf10Dnwe/2D+G+kx/109aYyP/vD9dmni5bZHEV8ejTiIvd8x/xzEz/WI/+EJ4//1K+++36ut9ZuIa9E9fmes2WZtY7axvXNjtba4UlmprJfLC/MLc5/c/Lg8m+aoZ3uvBv/89PqbvdqS8U/2iF88ZvxfP+H4f/v/uz/+2ivif/ODbvHz8c4r4idr4jdOGH9x8vfFXm1J/OUe4z/u63/9hPGf/m3npW3DAYDBaWzvrC1Wq5VNBYWLX0j+yV6AbnQtfKdfscaie9MvPmg/00eaWq3XitVrxjiLrBtwERw+9BHxv0F3BgAAAAAAAAAAAAAA6Kofv7E06DECAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABweX0eAAD//19xzyM=") r2 = creat(&(0x7f00000001c0)='./file1\x00', 0x0) socket$inet6(0xa, 0x6, 0x0) r3 = openat$kvm(0xffffffffffffff9c, &(0x7f0000000140), 0x0, 0x0) r4 = ioctl$KVM_CREATE_VM(r3, 0xae01, 0x0) r5 = ioctl$KVM_CREATE_VCPU(r4, 0xae41, 0x0) ioctl$KVM_SET_MSRS(r5, 0x4008ae89, &(0x7f00000000c0)=ANY=[@ANYBLOB="01000000000000000101004000"]) write$binfmt_elf64(r2, &(0x7f0000001a40)=ANY=[], 0xfd14) ioctl$FS_IOC_SETFLAGS(r2, 0x40086602, &(0x7f0000000000)) [ 130.729145][ T5098] Bluetooth: hci0: command tx timeout [ 130.826221][ T5113] loop0: detected capacity change from 0 to 8 [ 130.861295][ T5113] SQUASHFS error: Unable to read directory block [631:72] [ 130.904438][ T79] [ 130.905457][ T79] ====================================================== [ 130.908097][ T79] WARNING: possible circular locking dependency detected [ 130.910963][ T79] 6.11.0-syzkaller-08481-g88264981f208 #0 Not tainted [ 130.913478][ T79] ------------------------------------------------------ [ 130.916042][ T79] kswapd0/79 is trying to acquire lock: [ 130.918090][ T79] ffff888012cff930 (&group->mark_mutex){+.+.}-{3:3}, at: fsnotify_destroy_mark+0x38/0x3c0 [ 130.922069][ T79] [ 130.922069][ T79] but task is already holding lock: [ 130.924935][ T79] ffffffff8ea36740 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 130.928065][ T79] [ 130.928065][ T79] which lock already depends on the new lock. [ 130.928065][ T79] [ 130.931466][ T79] [ 130.931466][ T79] the existing dependency chain (in reverse order) is: [ 130.934896][ T79] [ 130.934896][ T79] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 130.937364][ T79] lock_acquire+0x1ed/0x550 [ 130.939151][ T79] fs_reclaim_acquire+0x88/0x140 [ 130.940991][ T79] kmem_cache_alloc_noprof+0x3d/0x2a0 [ 130.942953][ T79] __se_sys_inotify_add_watch+0x728/0x1060 [ 130.945145][ T79] do_syscall_64+0xf3/0x230 [ 130.946898][ T79] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 130.949140][ T79] [ 130.949140][ T79] -> #0 (&group->mark_mutex){+.+.}-{3:3}: [ 130.952127][ T79] validate_chain+0x18ef/0x5920 [ 130.954178][ T79] __lock_acquire+0x1384/0x2050 [ 130.956164][ T79] lock_acquire+0x1ed/0x550 [ 130.958003][ T79] __mutex_lock+0x136/0xd70 [ 130.960010][ T79] fsnotify_destroy_mark+0x38/0x3c0 [ 130.962176][ T79] fsnotify_destroy_marks+0x14a/0x660 [ 130.964404][ T79] dentry_unlink_inode+0x2e0/0x430 [ 130.966555][ T79] __dentry_kill+0x20d/0x630 [ 130.968351][ T79] shrink_kill+0xa9/0x2c0 [ 130.970045][ T79] shrink_dentry_list+0x2c0/0x5b0 [ 130.972105][ T79] prune_dcache_sb+0x10f/0x180 [ 130.974132][ T79] super_cache_scan+0x34f/0x4b0 [ 130.976234][ T79] do_shrink_slab+0x701/0x1160 [ 130.978232][ T79] shrink_slab+0x1093/0x14d0 [ 130.980211][ T79] shrink_one+0x43b/0x850 [ 130.982010][ T79] shrink_node+0x3799/0x3de0 [ 130.983915][ T79] kswapd+0x1ca3/0x3700 [ 130.985688][ T79] kthread+0x2f0/0x390 [ 130.987421][ T79] ret_from_fork+0x4b/0x80 [ 130.989097][ T79] ret_from_fork_asm+0x1a/0x30 [ 130.991055][ T79] [ 130.991055][ T79] other info that might help us debug this: [ 130.991055][ T79] [ 130.994862][ T79] Possible unsafe locking scenario: [ 130.994862][ T79] [ 130.997745][ T79] CPU0 CPU1 [ 130.999841][ T79] ---- ---- [ 131.001915][ T79] lock(fs_reclaim); [ 131.003533][ T79] lock(&group->mark_mutex); [ 131.006339][ T79] lock(fs_reclaim); [ 131.008860][ T79] lock(&group->mark_mutex); [ 131.010540][ T79] [ 131.010540][ T79] *** DEADLOCK *** [ 131.010540][ T79] [ 131.013455][ T79] 2 locks held by kswapd0/79: [ 131.015318][ T79] #0: ffffffff8ea36740 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 131.018466][ T79] #1: ffff88803608c0e0 (&type->s_umount_key#47){.+.+}-{3:3}, at: super_cache_scan+0x94/0x4b0 [ 131.022568][ T79] [ 131.022568][ T79] stack backtrace: [ 131.024839][ T79] CPU: 0 UID: 0 PID: 79 Comm: kswapd0 Not tainted 6.11.0-syzkaller-08481-g88264981f208 #0 [ 131.028551][ T79] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 131.032558][ T79] Call Trace: [ 131.033861][ T79] [ 131.034972][ T79] dump_stack_lvl+0x241/0x360 [ 131.036668][ T79] ? __pfx_dump_stack_lvl+0x10/0x10 [ 131.038667][ T79] ? __pfx__printk+0x10/0x10 [ 131.040320][ T79] print_circular_bug+0x13a/0x1b0 [ 131.042134][ T79] check_noncircular+0x36a/0x4a0 [ 131.043883][ T79] ? __pfx_check_noncircular+0x10/0x10 [ 131.045768][ T79] validate_chain+0x18ef/0x5920 [ 131.047508][ T79] ? __pfx_validate_chain+0x10/0x10 [ 131.049458][ T79] ? __pfx_validate_chain+0x10/0x10 [ 131.051384][ T79] ? __pfx_validate_chain+0x10/0x10 [ 131.053280][ T79] ? mark_lock+0x9a/0x360 [ 131.054890][ T79] __lock_acquire+0x1384/0x2050 [ 131.056635][ T79] lock_acquire+0x1ed/0x550 [ 131.058332][ T79] ? fsnotify_destroy_mark+0x38/0x3c0 [ 131.060390][ T79] ? __pfx_lock_acquire+0x10/0x10 [ 131.062286][ T79] ? __pfx___might_resched+0x10/0x10 [ 131.063981][ T79] __mutex_lock+0x136/0xd70 [ 131.065665][ T79] ? fsnotify_destroy_mark+0x38/0x3c0 [ 131.067691][ T79] ? fsnotify_destroy_mark+0x38/0x3c0 [ 131.069584][ T79] ? __pfx___mutex_lock+0x10/0x10 [ 131.071343][ T79] ? __pfx_lock_release+0x10/0x10 [ 131.072958][ T79] fsnotify_destroy_mark+0x38/0x3c0 [ 131.074820][ T79] ? fsnotify_grab_connector+0x3e/0x240 [ 131.076687][ T79] fsnotify_destroy_marks+0x14a/0x660 [ 131.078575][ T79] dentry_unlink_inode+0x2e0/0x430 [ 131.080386][ T79] __dentry_kill+0x20d/0x630 [ 131.082008][ T79] ? shrink_kill+0x8d/0x2c0 [ 131.083489][ T79] shrink_kill+0xa9/0x2c0 [ 131.084994][ T79] shrink_dentry_list+0x2c0/0x5b0 [ 131.086831][ T79] prune_dcache_sb+0x10f/0x180 [ 131.088498][ T79] ? __pfx_prune_dcache_sb+0x10/0x10 [ 131.090446][ T79] ? list_lru_count_one+0x29/0x2e0 [ 131.092413][ T79] ? list_lru_count_one+0x283/0x2e0 [ 131.094076][ T79] ? list_lru_count_one+0x29/0x2e0 [ 131.095944][ T79] super_cache_scan+0x34f/0x4b0 [ 131.097808][ T79] do_shrink_slab+0x701/0x1160 [ 131.099632][ T79] ? shrink_slab+0x12b/0x14d0 [ 131.101428][ T79] shrink_slab+0x1093/0x14d0 [ 131.103205][ T79] ? shrink_slab+0x12b/0x14d0 [ 131.104948][ T79] ? __pfx_shrink_slab+0x10/0x10 [ 131.106780][ T79] ? shrink_node+0x3547/0x3de0 [ 131.108483][ T79] ? __pfx_lock_release+0x10/0x10 [ 131.110305][ T79] shrink_one+0x43b/0x850 [ 131.111948][ T79] ? shrink_node+0x3547/0x3de0 [ 131.113783][ T79] shrink_node+0x3799/0x3de0 [ 131.115555][ T79] ? shrink_node+0x3547/0x3de0 [ 131.117343][ T79] ? __pfx_lock_acquire+0x10/0x10 [ 131.119329][ T79] ? mem_cgroup_iter+0x3d/0x420 [ 131.121149][ T79] ? __pfx_lock_release+0x10/0x10 [ 131.123052][ T79] ? __pfx_shrink_node+0x10/0x10 [ 131.124888][ T79] ? mem_cgroup_iter+0x3d/0x420 [ 131.126792][ T79] kswapd+0x1ca3/0x3700 [ 131.128315][ T79] ? kswapd+0xbf1/0x3700 [ 131.129963][ T79] ? __pfx_kswapd+0x10/0x10 [ 131.131726][ T79] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 131.133838][ T79] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 131.136246][ T79] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 131.138685][ T79] ? __pfx_autoremove_wake_function+0x10/0x10 [ 131.140975][ T79] ? __kthread_parkme+0x169/0x1d0 [ 131.142825][ T79] ? __pfx_kswapd+0x10/0x10 [ 131.144222][ T79] kthread+0x2f0/0x390 [ 131.145690][ T79] ? __pfx_kswapd+0x10/0x10 [ 131.147332][ T79] ? __pfx_kthread+0x10/0x10 [ 131.149111][ T79] ret_from_fork+0x4b/0x80 [ 131.150580][ T79] ? __pfx_kthread+0x10/0x10 [ 131.152071][ T79] ret_from_fork_asm+0x1a/0x30 [ 131.153599][ T79]