Extracting prog: 3m16.315663336s Minimizing prog: 38m25.558904285s Simplifying prog options: 2m24.38689543s Extracting C: 1m35.950571642s Simplifying C: 6m1.291418551s 1 programs, timeouts [30s 6m0s] extracting reproducer from 1 programs testing a last program of every proc single: executing 1 programs separately with timeout 30s testing program (duration=30s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program did not crash single: failed to extract reproducer single: executing 1 programs separately with timeout 6m0s testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program crashed: possible deadlock in hfs_find_init single: successfully extracted reproducer found reproducer with 5 syscalls minimizing guilty program testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) ftruncate(r0, 0x100c17a) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(0xffffffffffffffff, 0x100c17a) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, 0x0, 0x275a, 0x0) prlimit64(0x0, 0xe, &(0x7f0000000140)={0x8, 0x8b}, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program did not crash testing program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, 0x0, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program crashed: possible deadlock in hfs_find_init extracting C reproducer testing compiled C program (duration=6m0s, {Threaded:true Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: no output from test machine a never seen crash title: no output from test machine, ignore simplifying guilty program options testing program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate detailed listing: executing program 0: syz_mount_image$hfs(&(0x7f0000000180), &(0x7f0000000100)='\x13\x13w\xc5\xfc5\xd4\x14T\xd5\xd4\x1d)\xad\x1a`)Y\x81F\xe6\xbe\x16nA\xad\r\xbd@T\x03<\x9f3\xbb\xda\x82$\xa2\xf3\xd7r\xe7cnH\xb3<\xbfp\x83r\xe8\xf1\xb9\x93>\xc5\x12wC\xbe\"\x06 \x9e\xf0-\xf9\xcb\xf2\xf6\xe8\x80\xd38/\x00', 0x3000080, &(0x7f0000000500)=ANY=[@ANYBLOB="71756965742c636f6465706167653d69736f383835392d31352c706172743d3078303030303030300000000000000000662c00a20000000700000000ede9debf530c3cc4d04b548919aca0c2937d4da1fc31dc42fc2e3e"], 0x11, 0x2b6, &(0x7f0000000600)="$eJzs3c1qE10cx/HfmaRtnqehTl9EcFkt6EZq3YibiOQixIWoTYRiqKgV1I1VXIno3r234EW4UbwBXbnyAupq5Jw5ee28pKGZafD7gYTJzDlz/ifzcs4/0I4A/LNuNH98uvLLvoxUUUV6e00KJNWkqqTTOlN7uru3s9dpt7J2VHE17MsormkOldnebSdVtfVcDS+0n6qqD67DdERRdP1n2UGgdO7qTxBIC/7qdNtrhUeW7dWE9faPOY5ZYw50oGdaKjsOAEC5/Pgf+HG+7ufvQSBt+GH/RI7/kzooO4CpizK3Doz/LsuKjD2+p9ymfr7nUji7PehmieO0PDfyeV7xmTU0wTR5WaWLJfjv/k6nfWn7YacV6LUa3kCxNffeik/drpxo1xNy0wxj9N0kzygXXR/mbB+2UuJfnbDFiZkv5pu5bUJ9VKs3/6tGxh4md6TCkSMVx7+ZvkfXy9CWkr9tNBqNYKjIsmvkrG/By+llLTkjUfeMWtbwDwRhXpyu1spIrbh3l3NqrSbW2up+Sqm1NlTL9qZ3Nqe3N23mvblp1vVbn9UcmP8HNr4NZV6Z/avGbMRDgfvG4/7MJzdXdfsMD40c+7pVH17T+xYX0kL/k31PwxG80z1d1dKT5y8eVDqd9mO7cDdh4VG9t2bujZRYpuQF7ffXLChyDhXuDkpFBnbxWHdo7x+5he1VVkgHT+SZUNRC82uxJ1IZCyXfn1CI/kEvOxKUxM67TJz/DeQrm26yZ9/CjHl67oTM7zGyc+xeBlQbqr/ilv4/Uga3mJ7BjZtznbsgnR+/xdDHORuilzkFTFPfdYff/wEAAAAAAAAAAAAAAAAAAGZNEX9OUHYfAQAAAAAAAAAAAAAAAAAAAACYdb3n/6r7/F+N9/zf0f/8fZzP//2wK57/C0zf3wAAAP//TraANQ==") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='cpuset.memory_pressure_enabled\x00', 0x275a, 0x0) prlimit64(0x0, 0xe, 0x0, 0x0) sched_setscheduler(0x0, 0x1, 0x0) ftruncate(r0, 0x100c17a) program crashed: possible deadlock in hfs_find_init extracting C reproducer testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:5 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init simplifying C reproducer testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox:none SandboxArg:0 Leak:false NetInjection:true NetDevices:true NetReset:true Cgroups:true BinfmtMisc:true CloseFDs:true KCSAN:false DevlinkPCI:false NicVF:false USB:true VhciInjection:true Wifi:true IEEE802154:true Sysctl:true Swap:true UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:true Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:true HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:false HandleSegv:true Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:true Swap:false UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init testing compiled C program (duration=6m0s, {Threaded:false Repeat:true RepeatTimes:0 Procs:1 Slowdown:1 Sandbox: SandboxArg:0 Leak:false NetInjection:false NetDevices:false NetReset:false Cgroups:false BinfmtMisc:false CloseFDs:false KCSAN:false DevlinkPCI:false NicVF:false USB:false VhciInjection:false Wifi:false IEEE802154:false Sysctl:false Swap:false UseTmpDir:false HandleSegv:false Trace:false LegacyOptions:{Collide:false Fault:false FaultCall:0 FaultNth:0}}): syz_mount_image$hfs-openat$cgroup_ro-prlimit64-sched_setscheduler-ftruncate program crashed: possible deadlock in hfs_find_init reproducing took 56m25.586248646s repro crashed as (corrupted=false): loop0: detected capacity change from 0 to 64 ============================================ WARNING: possible recursive locking detected 6.11.0-rc7-syzkaller-g5f5673607153 #0 Not tainted -------------------------------------------- syz-executor207/6408 is trying to acquire lock: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 but task is already holding lock: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tree->tree_lock/1); lock(&tree->tree_lock/1); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz-executor207/6408: #0: ffff0000c2fba420 (sb_writers#8){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc fs/open.c:178 #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_truncate fs/open.c:63 [inline] #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc fs/open.c:181 #2: ffff0000c43b1478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 fs/hfs/extent.c:397 #3: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 #4: ffff0000c43b00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 fs/hfs/extent.c:397 stack backtrace: CPU: 1 UID: 0 PID: 6408 Comm: syz-executor207 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 dump_stack+0x1c/0x28 lib/dump_stack.c:128 print_deadlock_bug+0x4e4/0x660 kernel/locking/lockdep.c:3011 check_deadlock kernel/locking/lockdep.c:3061 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x6160/0x779c kernel/locking/lockdep.c:5142 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5759 __mutex_lock_common+0x190/0x21a0 kernel/locking/mutex.c:608 __mutex_lock kernel/locking/mutex.c:752 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:804 hfs_find_init+0x148/0x1c8 hfs_ext_read_extent fs/hfs/extent.c:200 [inline] hfs_extend_file+0x270/0x1130 fs/hfs/extent.c:401 hfs_bmap_reserve+0xd0/0x3b4 fs/hfs/btree.c:234 __hfs_ext_write_extent+0x1a0/0x468 fs/hfs/extent.c:121 __hfs_ext_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x29c/0x1130 fs/hfs/extent.c:401 hfs_get_block+0x3b8/0x9e0 fs/hfs/extent.c:353 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin fs/buffer.c:2235 [inline] cont_write_begin+0x79c/0xc40 fs/buffer.c:2587 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:53 cont_expand_zero fs/buffer.c:2514 [inline] cont_write_begin+0x2d8/0xc40 fs/buffer.c:2577 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:53 hfs_file_truncate+0x1a4/0xeb0 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x558 fs/hfs/inode.c:655 notify_change+0x9f0/0xca0 fs/attr.c:503 do_truncate fs/open.c:65 [inline] do_ftruncate+0x3e4/0x4cc fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __arm64_sys_ftruncate+0x94/0xec fs/open.c:205 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 final repro crashed as (corrupted=false): loop0: detected capacity change from 0 to 64 ============================================ WARNING: possible recursive locking detected 6.11.0-rc7-syzkaller-g5f5673607153 #0 Not tainted -------------------------------------------- syz-executor207/6408 is trying to acquire lock: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 but task is already holding lock: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&tree->tree_lock/1); lock(&tree->tree_lock/1); *** DEADLOCK *** May be due to missing lock nesting notation 5 locks held by syz-executor207/6408: #0: ffff0000c2fba420 (sb_writers#8){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc fs/open.c:178 #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_truncate fs/open.c:63 [inline] #1: ffff0000c43b1620 (&sb->s_type->i_mutex_key#16){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc fs/open.c:181 #2: ffff0000c43b1478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 fs/hfs/extent.c:397 #3: ffff0000c1d4e0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x148/0x1c8 #4: ffff0000c43b00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xe4/0x1130 fs/hfs/extent.c:397 stack backtrace: CPU: 1 UID: 0 PID: 6408 Comm: syz-executor207 Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:119 dump_stack+0x1c/0x28 lib/dump_stack.c:128 print_deadlock_bug+0x4e4/0x660 kernel/locking/lockdep.c:3011 check_deadlock kernel/locking/lockdep.c:3061 [inline] validate_chain kernel/locking/lockdep.c:3855 [inline] __lock_acquire+0x6160/0x779c kernel/locking/lockdep.c:5142 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5759 __mutex_lock_common+0x190/0x21a0 kernel/locking/mutex.c:608 __mutex_lock kernel/locking/mutex.c:752 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:804 hfs_find_init+0x148/0x1c8 hfs_ext_read_extent fs/hfs/extent.c:200 [inline] hfs_extend_file+0x270/0x1130 fs/hfs/extent.c:401 hfs_bmap_reserve+0xd0/0x3b4 fs/hfs/btree.c:234 __hfs_ext_write_extent+0x1a0/0x468 fs/hfs/extent.c:121 __hfs_ext_cache_extent+0x84/0x754 fs/hfs/extent.c:174 hfs_ext_read_extent fs/hfs/extent.c:202 [inline] hfs_extend_file+0x29c/0x1130 fs/hfs/extent.c:401 hfs_get_block+0x3b8/0x9e0 fs/hfs/extent.c:353 __block_write_begin_int+0x580/0x166c fs/buffer.c:2125 __block_write_begin fs/buffer.c:2174 [inline] block_write_begin fs/buffer.c:2235 [inline] cont_write_begin+0x79c/0xc40 fs/buffer.c:2587 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:53 cont_expand_zero fs/buffer.c:2514 [inline] cont_write_begin+0x2d8/0xc40 fs/buffer.c:2577 hfs_write_begin+0x98/0xe4 fs/hfs/inode.c:53 hfs_file_truncate+0x1a4/0xeb0 fs/hfs/extent.c:494 hfs_inode_setattr+0x3a0/0x558 fs/hfs/inode.c:655 notify_change+0x9f0/0xca0 fs/attr.c:503 do_truncate fs/open.c:65 [inline] do_ftruncate+0x3e4/0x4cc fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __arm64_sys_ftruncate+0x94/0xec fs/open.c:205 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598