program: syz_mount_image$hfsplus(&(0x7f0000000600), &(0x7f0000000040)='./file1\x00', 0x0, &(0x7f0000000080)={[{@part={'part', 0x3d, 0x40}}, {@nodecompose}, {@part={'part', 0x3d, 0x7}}, {@part={'part', 0x3d, 0xc}}, {@uid}, {@barrier}, {@nls={'nls', 0x3d, 'macinuit'}}, {@gid={'gid', 0x3d, 0xee00}}]}, 0x3, 0x5f4, &(0x7f0000000640)="$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") r0 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000080)='memory.events\x00', 0x275a, 0x0) write$binfmt_script(r0, &(0x7f0000000240)={'#! ', './file1', [], 0xa, "b26c45b0ba9f93e1b884d7ee0fa7c5c76f1c3fb93b37678feb7121427c1f78066c84fa85fce5d562792cbf969492b749b81ec1da8d58"}, 0x41) r1 = eventfd(0x1) r2 = bpf$PROG_LOAD(0x5, &(0x7f0000000080)={0x3, 0x8, &(0x7f00000003c0)=ANY=[@ANYBLOB="620af8ff0c200021bfa100000000000007010000f8ffffffb702000003000000bd1200000000000085000000d0000000b70000000000000095000000000000003fba6a7d36d9b18ed812a2e2c49e8020a6f4e0e4a9446ca2b5f1cc1a100a9af698393aa0f3881f9c24aa56f15199fad0093c59d66b5ece9f36c70d0f010c5077da80fb982c1e9400c603146cea484a415b76966118b64f751a0f241b072e90080008002d75593a280000c93e64c227c95aa0b784625704f07a72c2918451ebdcf4cef7f9606056fe5c34664c0af9360a1f7a5e6b607130c89f18c0c1089d8b85880000c29c48b45ef4adf634be763288d01aa27ae8b09e13e79ab20b0b8ed8fb7a68af2ad0000000000000006f803c6468082089b302d7bff8f06f7f918d65eae391cb41336023cdcedb5e0125ebbcebddcf10cb2364149215108355ee570f8078be5cab389cd65e7133719acd97cfa107d40224edc5465a932b77e74e802a0d42bc6099ad23000000803a90bce6dc3a13871765df961c2ed3b1006ef6c1ff0900000000000010c63a949e8b7955394ffa82b8e942c89112f40cfd7c3a1d37a6ab87b1586602d985430cea0162ab3fcf4591c926abfb076719237c8d0e60b0eea24492a660583eecdbf5bcd3de3a83209da17a0faf60fd6ad9b97aa5fa68480366c9c6fd6fa5043aa3926b81e3b59c9f081d6a08000000ea2b1a52496dfcaf99431412fd134a996382a1a04d5bb924cfe5f3185418d60532be9c4d2ec7c32f2095e63c8cdc28f74d043ed8dba2f23b01a9aeb980aff9fa3a64709270c701db801f44cf945b7632f32030916f89c6dad7603f2ba2a790d62d6faec2fed44da4928b30142bdda5e6c5d50b83bae616b5054d1e7c13b1355d6f4a8245eaa4997da9c77af4c0eb97fca585ec6bf58351d599e9b61e8caab9c70764b0a8a7583c90b3433b809bdb9fbd48bc873495cbff8a41326eea31ae4e0f75057df3c9d13330ca006bce1a84521f14518c9b476fccbd6c712016219848624b87cec2dbe98223a0eb4fa39f6b5c02e6d6d90756ff57902a8f57010000009700ce0b4b8bc22941330000000000000000000300000000000000000000000010008bc0d955f2a83366b99711e6e8861c46495ba585a4b2d02edc3e28dd279a896249ed85b9806f0b6c4a000000002b43dcacc413b48dafb7a2c8cb482bac0ac502d9ba96ffffff7f00000000df73be83bb7d5ad883ef3b7cda42013d53046da21b40216e14ba2d6af8656bfff17addaedab25b30002abbba7fa725f38400be7c1f001b2cd317902f19e385be9e48dccff72943327d830689da6b53ffffffff631c7771429d1200000033ed846197fcff5e1c7c3d1d6e3a52872baef9753fffffffffffffe09fec2271fe010cd7bb2366fde4a59429738fcc917a57f94f6c453cea623cc5ee0c2a5ff870ce5dfd3467decb05cfd9fcd41df54cdbd9d10a64c108285e71b5565b1768ee58969c41595229df17bcad70fb4021428ce978275d5bc8955778567bc79e13b78249788f11f708008b75d4fe32b561d46ea3abe0fa4d30dc94ef241875f3b4b6ab7929a57affe7d7fa29822aea68a660e717a04becff0f719107000000000000002d7e927123d8ecbbc55bf404571be54c72d978cf2804107f0238abccd32368e57040906df0042e19000000000000002c06f815312e086dd022c074eb8a322fb0bf47c0a8d154b405c37feaf3dd95f6ef44cd1fe582786105c7df8be4877084d4173731efe895efc71f665c4d75cf2458e35d2c9062ece84c99e061887a20639b41c8c12ee86c50804042b3eac1f879b136345cf67ca3fb2b5e518a75f9e7d7101d5e186c489b3a06fb99e0aa7f23a054de2f4d92d6bd72ee2c9fdc75aaaf1e3e483b4ad055e4af403269b4a39ce40293947d9a631bcbf3583784acbda216550d7aec6b79e30cbd128f54c2d3335457ac0eaaa99bf0bdc14ae358c3b377327ac9ecc34f24c9ae153ec60ac0694da85bff9f5f4df9b3fdf242b985bf16b99c9cc0ad1857036f1a985f369191ae954febb3df464bfe0f773ee9afe72f32a2befb89d3777399f5874c553a2ebe9061fe86e669642e09bb6d163118e4cbe024fd452277c3887d6116c6cc9d8046c216c1f8a9778cb26e22a2a998de5eaeadea2a40da8daccf080842a486721737390cbf3a74cb2003efb9a101b51ab63e9600040000b8a8c9ae3d14f93100c2e0893862eef552fcde2981f48c482bde6e4a4304e50c349f4f9ecee27defd83871c5191e10096e7e60fc3541a2c905a1a95e9571bf38aebd15172f94e3245c582909e2a3bce109b6000000000000000000d6d5210d7560eb92d6a97a27602b81f7636df1535bef1497f90100000000000000abf9010000007740890200d627e87306703be8672dc84eeadba6a41891c170d1ab57075228a9f46ed9bd1f08fb8191bbab2dc51de3a61f0868afc4294859323e7a45319f18101288a0268893373750d10a3fc22dd704e4214de5946912d6c98cd1a9fbe1e7ef8c08acaf30235b920500d2eca55f74a23641f61f2d5b308cf0d031b0c7f0ced69b93e9960ff5f76062adae283d9756237badf4e7965bbe2777e808fcba821aa8e8c5c39609ff85000000000000c1fee30a3f7a85d1b29e58c77685efc0ceb1c8e5729c66018d169fc03aa188546b3ad2a182068e1e3a0e2505bc7f41019645466a31c72ad53bc19faa5401120000793ac48c1b539c75ab40743b00020000a1f68df75cf43f8ecc8d3726602111b40e761fd210a1920382f14d12ca3c3431ee97471c781d0d1280fb00818654a53b6df4b2c97cc1c98d85fda8f80fe908b65550b441233151122b41a8d73062197655b7f0469250a5989cef0e10773920ed3ccee42d2c3eb80159da5c002511e6eb93842054cfce2ac306cb6e472db3fd67a49b6855a694a8d359add43907003223a47a7fae4f3748d5a432825bc40a03aaef1c8488d86dc211dd2a3ba71e0f45492ef1f8b65ccb3dcd251a61b152d02c29ca0a3328fa7753a5cddea1acaae55ae8263fb284b7a6ab2a8826c1b948207c498cf4824ab1ea3225c380fac12f8205d182f8999e0311da5b8378bc841e1787e3a8128dda381a26cb2b365702ff8a27831375b2ddaa2f56e21169f7ca4fd9655ccd4a584acd244e965a0afedaff7c415ff682a4044b3381cc2df28278c9a6824c52048a7cfabda294925cc0956bffa8e950ff5e49f41ae600d830207bf728cd9807933c3c16d80bbea611a18becc2dc38ca0a6f5740f340b76edcd1f539bd43007231dcef58c7b88b5aeedaf9626cb51ce1737c10ab37d4f98a934b0f900e0eb639878a1200629f5503cf679154d27681d7a3744cbcd42af59407c9c8e39c5271868917954e604352ba26171d004f1cb2976fab3fa19c7d3ef9678bff79f5155524f061378f94fb453786c3a6f78b10d383b49e31d1568bd43ee34ce6e6be235aa6207285665c2fba773671da41959f51610963b48930658e2d6125a26085001345b0473240b7e5e91811312c43663e76f711d7219ecdec75c7ea1cf0f8f8fff40247d59bbde2ebb8659197e0f37a71be1b12a182ed7de3acba28561a04b807f7a4647e2ea6d8fb92541d07c3d5e4ba077d3cad9f8ba1919592014c00c8eccb2ca5d48ba7b1c3fb185a4bb79700cf51f818b0c701c8de47d12281a67bdaf4b0c50bee9e8f5936250df2e15c1172e7ea6619f7db330700d1e9e42a035e6fd532f61fbfed9c4a7124a1e38eee50a6bbcd1d4e3f68c3f27dd9a70f1a7c6046237ddfb0b26e197322226367d998010458cd4df10af249ce717f6f45e5176e0ddae3054d7289d4e13ab0912703ee39ce264572b89194fdf7acecc35cf8309d4b680a08eed367dad855fce210f1a7c7222dd360eafb4bef7d58bf83362930af6e3f3f851abdc0003bdf9401b533019e90feb069189100007a82df8d9b5f44ebf9355e7b1b01c9470608d4f306d21004730396a4d6c6d46e1ffac97aa93c36123532a36186575266be4981c847160079421d0137801e553069f8d025c40f287378810defc7f2ed4e15f6af17b21153394f8bcfa6a23a77c8d61c9bbc127a57b8d631f36558d9093dee08bc53d97a8003363421738650a26c8fd87b13026799caf58e59951b125e7f161ca34e2c0dd65a23d01a3cb191e743de07247c7f993cf01166fa2ac1ba02f60550e63a7f50422e478c6b5d87f9bd0567a279a9d85a380db25c43bd0529ad783b9d64aaac1b793afb44b7126e17d2b7c0d6be650de7eeef3f3605af344015d03c3e7819145cb9fe1978c98bf9cf10773db59505ae33708c728844c872dfd2cb0b29754f928c59306ce105ca18cb72f0944d0e4fea0a0abd0285bdaf1b000000c089d640c2facb0d1e6243873ac4b1e1068c45c715b68effb7d58d1f9e726dbf6bd910ca4ce0e075658ede42192cf393a50dcc197b03402fed75083628e5dd38213d353b9049e71f037064b05e73ec00c710f1ffc5737d397d555d1cf8859cc05bea8dc3c6a5b3b6fa1c81707479db1833d593a271253aa11efdb36b74784f2fc286814848e92d8ee541bc179813297a0a4cc3c8f80c28701185bea091f32475e859479b734727afc110e1abcff460172fd1b42e3c0e2a4bf94a060069000010000087c7572a1e7596f89e5c3d5e70640c90815f77b7b13d0000000085a1e1e84900000000000000000000000000b422fc160a458ee5a91a2471e6e56fdabec6c73ce8983fc68f0b7cdcdde632e6f54a07620e8aa116ce9e84fc3cd5e8288a333dcebb233da9186796995ba69487d8f77d2f8800f02d690fc70a08b231cad1bdcf3740a95d4dd1cfe0f417f275493cf33b19ffff93dfdaf7eb00b8ad87cdf7c21bab5af8e2bac54ee5597e6508c1158124a538c36f9bb11fea7d8b8c7e954b1bc7811654a6636b33f271d0923e9ecd1b724b8feffadfc23c07000000f0785fb722f346d6a5dffe1884d4d0cd8f00000092c85ed44db68ab800000000000000406e6ed9b219ad07125381087298e75965d1cc5932ddf9e66351ba332a34bee3e3d562c914c629933f0b8724cf680889ade72558d191d96ee1b84bb64b14aebc6b5194c55dd6890c69a718f9018586c5131c8dc8e0379bafda1a0fd2997ff115215ce23dca8db7236c1554cdaaadcce2f31834c1bd1908d8e1b361034db56be76acb7654a195bc3e98df3a5dffd5b07838a3ef7da3433110e37f7c7cb7f3800de7f99abf910d6949e062747a9c87dcfcc716d6a9c0ec53b9cffe3cfd1df69a76f373d7f997edb9b80bdea1a99c2a6fbb25e035deadaadd7917ebfedd6304a19491769476208684e343f86b4d55a7dbbb07283cb1e35a139d24ebc5b4f8e35a82d3a7f84cb1e02a5a92b53567088be0b1ca023ccd518c0e0715b1c8760801a419ebd2e26440ff7493019bdb655cc88d72d6d7b6bca5a2e19b63ec52fcc49a729f11ab377f7132c543d29646a9378eea0761b7ed9d2172e33ed87c6513c843b180cc00000000006bedf2ed716ca43a941119b96d82b26d9061de240d85ec2cfa462bd52104489bb7a7548d7cc53627031e909c69cb824233975a1ea645de63522407c3a240a37e946f30ebf075ea97846a0a8d2286f3f446b1b99ab83a12ddf8a1c06294eadc3eb3e339591afd5c00000000000000000000000000000000000000000000000000579dad8347a3d16976bb7483840b32db0158fb6c809349333325a7866ca5d3133e33ef1a183cefdb65a79fa71800988c8445029e024822dbcfcab49c3a0aec9bd43e6e14078b260700d849a2aa14c9b593f6dcb1de334c065ecfd65031606e55949c185bcda9fde4f9b46a76b8a24bbcd31b22373eb0473248150cd179405ee1af1183b0c0ce3483dc1d9bf732b0751b78fb211d6706b55960c6431afbc02b3c7e08086573939290bb9e590a3875f02a828bf209d0ed9829dec16ab67a4f59a504e09f55ab82bbd405087a17a229a149c53ee9145500db213cb36489a10957739e481a756e65bde579bbbfb404213f661eeaaffacbcfbfd60b1a715c366da2b37ac7e9e3033f8ec04db1c2412e02ccd0617d9fb646c4897750d068c936c3558a94b05d7c65c0d458c0d70d0aa864bc1e324d3f69b1b4061627da875a4b5c2668ab0990623fe6f3b54cd1c79da4baf256f88750c18486330589473e267fa44e220cf40db662b570c2a2fbba9a34a3dd7bbd8368fe506daa62b45797d4b397905a69e58eb436c08cc78963197adb1b16ad83a1a9b4"], &(0x7f0000000100)='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @sched_cls, 0xffffffffffffffff, 0x8, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x48) bpf$PROG_LOAD(0x5, &(0x7f0000000180)={0x19, 0x4, &(0x7f00000003c0)=@framed={{0x18, 0x0, 0x0, 0x0, 0xfffffffe, 0x0, 0x0, 0x0, 0x8}, [@ldst={0x3, 0x0, 0x3, 0x1, 0x0, 0x1c}]}, &(0x7f0000000000)='GPL\x00', 0x0, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @cgroup_sockopt=0x15, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, @void, @value}, 0x94) bpf$BPF_PROG_DETACH(0x1c, &(0x7f0000000000)={@cgroup=r2, r2, 0x2e, 0x0, 0x0, @void, @value}, 0x20) bpf$LINK_GET_NEXT_ID(0x1f, &(0x7f0000000d00)={0x0, 0x0}, 0x8) r4 = bpf$LINK_GET_FD_BY_ID(0x1e, &(0x7f0000000000)=r3, 0x4) syz_mount_image$minix(&(0x7f0000000180), &(0x7f0000000340)='./file0\x00', 0x0, &(0x7f0000000300)=ANY=[@ANYRES64=0x0, @ANYRES16, @ANYRES64, @ANYRESDEC, @ANYBLOB=',\fscontext=syotem_u,\x00'], 0x1, 0x18b, &(0x7f0000000600)="$eJzs281OGlEYxvFnGEqBftHSdtF00aRp2k0ZPlKS7vRSCIyEOKgRNxAXcAUm3oDxGrwhL0AX7owLMUxm0MiMJBBnRvj/NnPIw7znJeHAGxIEYG1t6IcMGcpMHnzPFo6KRtwtAYjI2LvejgGsH/M67g4AxONyUzqXdHF12JSZmZkPJvnQz1OvHySj6epb2suNrHKP54tT6bd/v5GfrT+S8m6ebsp4E5j/+env/1bv9F4fVNBHfVLRy1vT+l+XmIQAAFgfhkrz8sAnmN41pa2OY5dD73/l5pXQPOPm1Tl5Lay45Oal5q7TCq0BIFhqwfPvM+ec/7R7SMPPP4D49PqD7Ybj2PtJW5x4vxUkpZ8kL46ViDaWX/yKftOzm5V7j+UkLV8n7k8mAM/NOujuWb3+4G+n22jbbXunWi7/r/+rVepVy53srafnewAv1/2XftydAAAAAAAAAAAAAACARX3Wl7hbAAAAABCRKP6WFLjxMPKXCgAAAAAAAAAAAAAAAADAyrgLAAD//5uEGpY=") unlink(&(0x7f0000000000)='./file0/file0\x00') bpf$LINK_DETACH(0x22, &(0x7f00000001c0)=r4, 0x4) bpf$BPF_LINK_UPDATE(0x1d, &(0x7f0000000040)={r4, r2, 0x4, r2}, 0x10) ioctl$VHOST_NET_SET_BACKEND(r0, 0x4008af30, &(0x7f0000000000)={0x2, r1}) [ 69.976686][ T4676] Bluetooth: hci0: command tx timeout [ 70.116352][ T5334] loop0: detected capacity change from 0 to 1024 [ 70.186956][ T5334] [ 70.187931][ T5334] ====================================================== [ 70.190560][ T5334] WARNING: possible circular locking dependency detected [ 70.193106][ T5334] 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0 Not tainted [ 70.195864][ T5334] ------------------------------------------------------ [ 70.198496][ T5334] syz.0.0/5334 is trying to acquire lock: [ 70.200432][ T5334] ffff88804315a8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xbb/0x4e0 [ 70.203892][ T5334] [ 70.203892][ T5334] but task is already holding lock: [ 70.206698][ T5334] ffff888042473708 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30a/0xc70 [ 70.210824][ T5334] [ 70.210824][ T5334] which lock already depends on the new lock. [ 70.210824][ T5334] [ 70.214720][ T5334] [ 70.214720][ T5334] the existing dependency chain (in reverse order) is: [ 70.218104][ T5334] [ 70.218104][ T5334] -> #1 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}: [ 70.221421][ T5334] lock_acquire+0x1ed/0x550 [ 70.223267][ T5334] __mutex_lock+0x136/0xd70 [ 70.225126][ T5334] hfsplus_get_block+0x383/0x14f0 [ 70.227160][ T5334] block_read_full_folio+0x418/0xcd0 [ 70.229277][ T5334] filemap_read_folio+0x14b/0x630 [ 70.231366][ T5334] do_read_cache_folio+0x3f5/0x850 [ 70.233381][ T5334] do_read_cache_page+0x30/0x200 [ 70.235388][ T5334] hfsplus_block_allocate+0xee/0x8c0 [ 70.237687][ T5334] hfsplus_file_extend+0xade/0x1b70 [ 70.239944][ T5334] hfsplus_get_block+0x406/0x14f0 [ 70.242095][ T5334] __block_write_begin_int+0x50c/0x1a70 [ 70.244379][ T5334] cont_write_begin+0x6e2/0x9d0 [ 70.246483][ T5334] hfsplus_write_begin+0x68/0xb0 [ 70.248510][ T5334] generic_perform_write+0x344/0x6d0 [ 70.250747][ T5334] generic_file_write_iter+0xae/0x310 [ 70.253001][ T5334] vfs_write+0xaeb/0xd30 [ 70.254816][ T5334] ksys_write+0x183/0x2b0 [ 70.256547][ T5334] do_syscall_64+0xf3/0x230 [ 70.258427][ T5334] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.260724][ T5334] [ 70.260724][ T5334] -> #0 (&sbi->alloc_mutex){+.+.}-{3:3}: [ 70.263295][ T5334] validate_chain+0x18ef/0x5920 [ 70.265062][ T5334] __lock_acquire+0x1384/0x2050 [ 70.266860][ T5334] lock_acquire+0x1ed/0x550 [ 70.268452][ T5334] __mutex_lock+0x136/0xd70 [ 70.270267][ T5334] hfsplus_block_free+0xbb/0x4e0 [ 70.271997][ T5334] hfsplus_free_extents+0x17a/0xae0 [ 70.274209][ T5334] hfsplus_file_truncate+0x86c/0xc70 [ 70.276413][ T5334] hfsplus_delete_inode+0x174/0x220 [ 70.278610][ T5334] hfsplus_unlink+0x512/0x790 [ 70.280467][ T5334] vfs_unlink+0x365/0x650 [ 70.282267][ T5334] do_unlinkat+0x4ae/0x830 [ 70.284102][ T5334] __x64_sys_unlink+0x47/0x50 [ 70.286132][ T5334] do_syscall_64+0xf3/0x230 [ 70.287829][ T5334] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.290236][ T5334] [ 70.290236][ T5334] other info that might help us debug this: [ 70.290236][ T5334] [ 70.293901][ T5334] Possible unsafe locking scenario: [ 70.293901][ T5334] [ 70.296621][ T5334] CPU0 CPU1 [ 70.298655][ T5334] ---- ---- [ 70.300845][ T5334] lock(&HFSPLUS_I(inode)->extents_lock); [ 70.303095][ T5334] lock(&sbi->alloc_mutex); [ 70.305754][ T5334] lock(&HFSPLUS_I(inode)->extents_lock); [ 70.308817][ T5334] lock(&sbi->alloc_mutex); [ 70.310611][ T5334] [ 70.310611][ T5334] *** DEADLOCK *** [ 70.310611][ T5334] [ 70.313576][ T5334] 5 locks held by syz.0.0/5334: [ 70.315454][ T5334] #0: ffff8880441ec420 (sb_writers#11){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 [ 70.318801][ T5334] #1: ffff888042473238 (&type->i_mutex_dir_key#6/1){+.+.}-{3:3}, at: do_unlinkat+0x26a/0x830 [ 70.322641][ T5334] #2: ffff8880424738f8 (&sb->s_type->i_mutex_key#19){+.+.}-{3:3}, at: vfs_unlink+0xe4/0x650 [ 70.326396][ T5334] #3: ffff88804315a998 (&sbi->vh_mutex){+.+.}-{3:3}, at: hfsplus_unlink+0x161/0x790 [ 70.329542][ T5334] #4: ffff888042473708 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x30a/0xc70 [ 70.333277][ T5334] [ 70.333277][ T5334] stack backtrace: [ 70.335317][ T5334] CPU: 0 UID: 0 PID: 5334 Comm: syz.0.0 Not tainted 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0 [ 70.338834][ T5334] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 70.342494][ T5334] Call Trace: [ 70.343754][ T5334] [ 70.344857][ T5334] dump_stack_lvl+0x241/0x360 [ 70.346838][ T5334] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.348654][ T5334] ? __pfx__printk+0x10/0x10 [ 70.350390][ T5334] print_circular_bug+0x13a/0x1b0 [ 70.352305][ T5334] check_noncircular+0x36a/0x4a0 [ 70.354420][ T5334] ? __pfx_check_noncircular+0x10/0x10 [ 70.356543][ T5334] ? lockdep_lock+0x123/0x2b0 [ 70.358389][ T5334] ? __pfx_check_noncircular+0x10/0x10 [ 70.360491][ T5334] validate_chain+0x18ef/0x5920 [ 70.362214][ T5334] ? __pfx_validate_chain+0x10/0x10 [ 70.363950][ T5334] ? __pfx_validate_chain+0x10/0x10 [ 70.365721][ T5334] ? mark_lock+0x9a/0x360 [ 70.367163][ T5334] __lock_acquire+0x1384/0x2050 [ 70.368836][ T5334] lock_acquire+0x1ed/0x550 [ 70.370422][ T5334] ? hfsplus_block_free+0xbb/0x4e0 [ 70.372153][ T5334] ? __pfx_lock_acquire+0x10/0x10 [ 70.374018][ T5334] ? __pfx___might_resched+0x10/0x10 [ 70.376035][ T5334] __mutex_lock+0x136/0xd70 [ 70.377678][ T5334] ? hfsplus_block_free+0xbb/0x4e0 [ 70.379628][ T5334] ? __pfx_lock_release+0x10/0x10 [ 70.381437][ T5334] ? rcu_is_watching+0x15/0xb0 [ 70.383205][ T5334] ? trace_contention_end+0x3c/0x120 [ 70.385184][ T5334] ? hfsplus_block_free+0xbb/0x4e0 [ 70.387113][ T5334] ? __pfx___mutex_lock+0x10/0x10 [ 70.388974][ T5334] ? __mutex_unlock_slowpath+0x21d/0x750 [ 70.390942][ T5334] ? __pfx___mutex_lock+0x10/0x10 [ 70.392837][ T5334] hfsplus_block_free+0xbb/0x4e0 [ 70.394534][ T5334] ? hfsplus_find_init+0x85/0x1c0 [ 70.396397][ T5334] ? hfsplus_find_init+0x85/0x1c0 [ 70.398477][ T5334] ? rcu_is_watching+0x15/0xb0 [ 70.400346][ T5334] hfsplus_free_extents+0x17a/0xae0 [ 70.402333][ T5334] hfsplus_file_truncate+0x86c/0xc70 [ 70.403964][ T5334] ? __pfx_hfsplus_file_truncate+0x10/0x10 [ 70.405951][ T5334] ? hfsplus_unlink+0x161/0x790 [ 70.407625][ T5334] hfsplus_delete_inode+0x174/0x220 [ 70.409332][ T5334] hfsplus_unlink+0x512/0x790 [ 70.410856][ T5334] ? generic_permission+0x1e0/0x550 [ 70.412620][ T5334] ? __pfx_hfsplus_unlink+0x10/0x10 [ 70.414391][ T5334] ? down_write+0x18c/0x220 [ 70.415954][ T5334] ? bpf_lsm_inode_unlink+0x9/0x10 [ 70.417768][ T5334] ? security_inode_unlink+0xd9/0x340 [ 70.419828][ T5334] vfs_unlink+0x365/0x650 [ 70.421486][ T5334] do_unlinkat+0x4ae/0x830 [ 70.423220][ T5334] ? __pfx_do_unlinkat+0x10/0x10 [ 70.425118][ T5334] ? __might_fault+0xaa/0x120 [ 70.426938][ T5334] ? __might_fault+0xc6/0x120 [ 70.428810][ T5334] ? strncpy_from_user+0x13a/0x260 [ 70.430843][ T5334] ? getname_flags+0x1e3/0x540 [ 70.432718][ T5334] __x64_sys_unlink+0x47/0x50 [ 70.434482][ T5334] do_syscall_64+0xf3/0x230 [ 70.436113][ T5334] ? clear_bhb_loop+0x35/0x90 [ 70.437980][ T5334] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 70.440312][ T5334] RIP: 0033:0x7f363577e719 [ 70.442151][ T5334] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 [ 70.448817][ T5334] RSP: 002b:00007f363656a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 [ 70.451673][ T5334] RAX: ffffffffffffffda RBX: 00007f3635935f80 RCX: 00007f363577e719 [ 70.454396][ T5334] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 [ 70.457423][ T5334] RBP: 00007f36357f175e R08: 0000000000000000 R09: 0000000000000000 [ 70.460419][ T5334] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 70.463334][ T5334] R13: 0000000000000000 R14: 00007f3635935f80 R15: 00007ffdb91af678 [ 70.466286][ T5334] [ 70.476974][ T5334] hfsplus: unable to mark blocks free: error -5 [ 70.479542][ T5334] hfsplus: can't free extent