program: bpf$PROG_LOAD(0x5, &(0x7f0000000000)={0xa, 0x4, &(0x7f00000000c0)=ANY=[@ANYBLOB="b40500000000000071109b00000000000600"/28], &(0x7f00000003c0)='GPL\x00', 0x5, 0x0, 0x0, 0x0, 0x0, '\x00', 0x0, @fallback, 0xffffffffffffffff, 0x8, &(0x7f0000000240), 0x8, 0x10, &(0x7f0000000280), 0x10}, 0x94) socket$nl_netfilter(0x10, 0x3, 0xc) mkdirat(0xffffffffffffff9c, &(0x7f0000006700)='./debug\x00', 0x1ff) mount(0x0, &(0x7f0000006740)='./debug\x00', &(0x7f0000006780)='debugfs\x00', 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f00000067c0)='./debug/failslab/times\x00', 0x2, 0x0) write(r0, &(0x7f0000006800)='100', 0x3) syz_mount_image$hfs(&(0x7f0000000180), &(0x7f00000001c0)='./file0\x00', 0x800040, &(0x7f0000005c80)=ANY=[@ANYBLOB="71756965742c636f6465706167653d63703836302c696f636861727365743d63703836312c00808fead042bd35dc78f7f06333a5e7165b8271e41aee85e59cbb6c2df3d4e4c16b06c73f2e3b348a7fba46e286378a15ee516bac8d4813c9c3d9cee1ddb95d1bbcf504e065b3749a1cbd841e685a558598cf0db10b55885946e678d0a71877037a090000000700848879ef1604cadc1faca3aa22a576750d559c4e124d4cb7293e7393b77286a03d342382e84d6d3c29ab95cc923fbe25e134d1c421320a3bffaa17fcd6b5178e322cc47133b3811e3d3bc34998dc7ed029834ad591d9d55141063d8de2d50a4fa0e73ff2913a9fe8e954a4e4ca99ce24dba4e0812c2ccf8ab5737e57193c5f47fd63b16c8b34f256dbac0e5ebd009078df2cb1ca1051ad091adbfee5126d8a59fa5438734bc3e8cc7b7edc10716a0ace21dc04bd9c3248b598267822670a02be81f017e946a7e3359ce433ae42aae07518c3850cff4cf415bdb29ab165216a12899868d6857b732eafbab59fba36fca0b5cab2e717cd6ffef31a24add5f56b30c27b9e616892b60f4cde07eb9cb090ca25e5b8c6858a27e7e4d5cac6ed29218fcd35804fe2a5cb1ca503991051eb9c04a88bf02e8e240ee4c8b0ae80396aff9f8a913e8dc6b15e15b0a7c82953a87ef02b1e7abea95a7ae79eca2a536a59abfa3cccc1a6664d20344fedc524f3867f1dd8ba04bcd90aa43e024891f779210ec076e0b13ebf2bef2ac1a30f7a396a508b00000000000000", @ANYRESOCT=0x0, @ANYRESOCT, @ANYRESDEC=0x0, @ANYRES16=0x0, @ANYRES8], 0x1, 0x342, &(0x7f0000005f00)="$eJzs3U1r1E4cB/DvJLvd9N/91+2DCB6rBb2I1ot4WZF9C4J4EG27QjFU1ArqxV3xJKJ3774FX4QXxTdQTx7Eq9CCODKTSTYPM2m2T7H6/YCYTTLJbzKZze+3KAER/bOu9jbfXfyq/gjAhw+8vAx4AAKgAeA4TgSP1jfWNsL+atmBfN0C2xICUUtR2Gdlva//HmZXq3a6hdFRnxpop9fRwZBSXvmSW/fNqykYqo2e/RYe0DKzU28PDj2ycsMqO43u53a8sNk+oICOCLGFLTzGdN1xEBFRvdTzfxg9KX3znFT5u+cBi8Aw+FOf/9X8X1jzo5Y4DpMs3Zp6/usqSwo1vsf0plG9p0s4td2Lq8QqZ27mPk8gysEyCaawV5Wjkk/H4k3eWQv751buhasenqNrpBrMJ2cw1B26Q7QLltq0RIW+C2BQXBuF5TVVH5Yc8c/t8owlCuVbZkDEB/FJ3BQdvMVqkv81pFDR6oA7uZGK4j/vPt+UbqX2gvna6Ha7nj5QbEaf5GR2pNy91HdBYK9IEF/YGWR/INARlCW0utVsrlXUuwvWBq2k1Zy11VL8yXGu+Uwr1Zvkbi4Jc1/IZ64t4rW4LhbwHe/RS+X/nopvEcWZmRqE0awRi9FE03dG1J8J++ka+pidwpNjgBu5Eiy5ii1X6NtS8CehPYrH8BWWcQnTD588veuHYf+BWrhtWbjfTtY0XwDWfQ5pIR77/CYMRmtakFqhefwdmDnypFk5Rhj+GDGf3deLoCaie5+JaCGwXJ+4l/s6KOk7IZ6wgTPCIH/lyxfg1XWPue+Nn6l9eh/H6k4Y9qVfbe7Ilm0TOulZYGseuOL5JXfR92K+TH+n0aDXHQnVROVdIqr/dCZv8n2dr6ls4VrLXY3ERaYtZdOJozmiVDl2UgEFmfazeum/bBq9QwU0ZfIYSx03QKHmUs/+Qs116gxwuvoZOybOo8Gd/huih8+4xd//iYiIiIiIiIiIiIiIiIiIiIiIiIiOmvH/d8TkmK2a/JflRERERERERERERERERERERERERERERER7lLz/F/H7f1Ht/b/510uZ9/8G2OH9v8vFGArv/32zDjEA+P5fooP1OwAA//87iGqt") prlimit64(0x0, 0xe, &(0x7f0000006280)={0x9, 0x20000008b}, 0x0) sched_setscheduler(0x0, 0x1, &(0x7f00000062c0)=0x7) r1 = openat(0xffffffffffffff9c, &(0x7f0000006300)='./file1\x00', 0x42, 0x0) write$FUSE_WRITE(r1, &(0x7f0000006340)={0x18}, 0xfffffdef) r2 = openat(0xffffffffffffff9c, &(0x7f0000005c00)='./bus\x00', 0xc4042, 0x1ff) r3 = openat$nullb(0xffffffffffffff9c, &(0x7f0000005c40), 0x0, 0x0) sendfile(r2, r3, 0x0, 0xfffe82) [ 87.704327][ T4671] Bluetooth: hci0: command tx timeout [ 87.870662][ T5358] loop0: detected capacity change from 0 to 64 [ 87.876919][ T5358] ======================================================= [ 87.876919][ T5358] WARNING: The mand mount option has been deprecated and [ 87.876919][ T5358] and is ignored by this kernel. Remove the mand [ 87.876919][ T5358] option from the mount to silence this warning. [ 87.876919][ T5358] ======================================================= [ 88.945821][ T5358] hfs: request for non-existent node 8 in B*Tree [ 88.945840][ T5358] hfs: request for non-existent node 8 in B*Tree [ 88.946400][ T5358] hfs: request for non-existent node 9 in B*Tree [ 88.946409][ T5358] hfs: request for non-existent node 9 in B*Tree [ 88.980273][ T5358] syz.0.0: attempt to access beyond end of device [ 88.980273][ T5358] loop0: rw=34817, sector=24794, nr_sectors = 3 limit=64 [ 88.980338][ T5358] syz.0.0: attempt to access beyond end of device [ 88.980338][ T5358] loop0: rw=34817, sector=24799, nr_sectors = 2 limit=64 [ 88.980584][ T5358] hfs: request for non-existent node 10 in B*Tree [ 88.980594][ T5358] hfs: request for non-existent node 10 in B*Tree [ 88.980654][ T5358] syz.0.0: attempt to access beyond end of device [ 88.980654][ T5358] loop0: rw=34817, sector=24802, nr_sectors = 1 limit=64 [ 88.980692][ T5358] syz.0.0: attempt to access beyond end of device [ 88.980692][ T5358] loop0: rw=34817, sector=24804, nr_sectors = 1 limit=64 [ 88.980896][ T5358] hfs: request for non-existent node 11 in B*Tree [ 88.980902][ T5358] hfs: request for non-existent node 11 in B*Tree [ 89.020265][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.020265][ T76] loop0: rw=8388609, sector=161, nr_sectors = 1 limit=64 [ 89.020430][ T76] Buffer I/O error on dev loop0, logical block 161, lost async page write [ 89.048088][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.048088][ T76] loop0: rw=8388609, sector=162, nr_sectors = 1 limit=64 [ 89.048113][ T76] Buffer I/O error on dev loop0, logical block 162, lost async page write [ 89.048125][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.048125][ T76] loop0: rw=8388609, sector=163, nr_sectors = 1 limit=64 [ 89.048137][ T76] Buffer I/O error on dev loop0, logical block 163, lost async page write [ 89.048147][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.048147][ T76] loop0: rw=8388609, sector=167, nr_sectors = 1 limit=64 [ 89.048158][ T76] Buffer I/O error on dev loop0, logical block 167, lost async page write [ 89.048168][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.048168][ T76] loop0: rw=8388609, sector=169, nr_sectors = 1 limit=64 [ 89.048180][ T76] Buffer I/O error on dev loop0, logical block 169, lost async page write [ 89.048190][ T76] kworker/u4:5: attempt to access beyond end of device [ 89.048190][ T76] loop0: rw=8388609, sector=171, nr_sectors = 1 limit=64 [ 89.048202][ T76] Buffer I/O error on dev loop0, logical block 171, lost async page write [ 89.048213][ T76] Buffer I/O error on dev loop0, logical block 172, lost async page write [ 89.048225][ T76] Buffer I/O error on dev loop0, logical block 173, lost async page write [ 89.048258][ T76] Buffer I/O error on dev loop0, logical block 174, lost async page write [ 89.048271][ T76] Buffer I/O error on dev loop0, logical block 175, lost async page write [ 89.156256][ T25] audit: type=1800 audit(1795310997.472:2): pid=5358 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz.0.0" name="bus" dev="loop0" ino=22 res=0 errno=-22 [ 89.287933][ T76] hfs: request for non-existent node 14 in B*Tree [ 89.287948][ T76] hfs: request for non-existent node 14 in B*Tree [ 89.307143][ T76] hfs: request for non-existent node 15 in B*Tree [ 89.307161][ T76] hfs: request for non-existent node 15 in B*Tree [ 89.307217][ T76] hfs: request for non-existent node 16 in B*Tree [ 89.307223][ T76] hfs: request for non-existent node 16 in B*Tree [ 89.307415][ T76] hfs: request for non-existent node 17 in B*Tree [ 89.307423][ T76] hfs: request for non-existent node 17 in B*Tree [ 89.308711][ T76] [ 89.331174][ T76] ============================================ [ 89.333619][ T76] WARNING: possible recursive locking detected [ 89.336054][ T76] syzkaller #0 Not tainted [ 89.337959][ T76] -------------------------------------------- [ 89.340345][ T76] kworker/u4:5/76 is trying to acquire lock: [ 89.343046][ T76] ffff8880305e80a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 89.347401][ T76] [ 89.347401][ T76] but task is already holding lock: [ 89.350731][ T76] ffff8880305e80a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 89.354868][ T76] [ 89.354868][ T76] other info that might help us debug this: [ 89.358162][ T76] Possible unsafe locking scenario: [ 89.358162][ T76] [ 89.361278][ T76] CPU0 [ 89.362689][ T76] ---- [ 89.364145][ T76] lock(&tree->tree_lock/1); [ 89.366265][ T76] lock(&tree->tree_lock/1); [ 89.368611][ T76] [ 89.368611][ T76] *** DEADLOCK *** [ 89.368611][ T76] [ 89.372320][ T76] May be due to missing lock nesting notation [ 89.372320][ T76] [ 89.376128][ T76] locks held by kworker/u4:5/76: 5, on CPU#0: [ 89.378791][ T76] #0: ffff88801e339948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 89.383344][ T76] #1: ffffc90000e67c40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 89.388687][ T76] #2: ffff88803848e100 (&type->s_umount_key#52){.+.+}-{4:4}, at: super_trylock_shared+0x23/0xf0 [ 89.393317][ T76] #3: ffff8880305e80a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 89.397302][ T76] #4: ffff88805498c0a0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf9/0x1680 [ 89.402209][ T76] [ 89.402209][ T76] stack backtrace: [ 89.404891][ T76] CPU: 0 UID: 0 PID: 76 Comm: kworker/u4:5 Not tainted syzkaller #0 PREEMPT(full) [ 89.409031][ T76] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 89.413185][ T76] Workqueue: writeback wb_workfn (flush-7:0) [ 89.415853][ T76] Call Trace: [ 89.418192][ T76] [ 89.419547][ T76] dump_stack_lvl+0xe8/0x150 [ 89.421596][ T76] print_deadlock_bug+0x27a/0x290 [ 89.423787][ T76] __lock_acquire+0x25db/0x2de0 [ 89.425961][ T76] ? _raw_spin_unlock_irqrestore+0x76/0x80 [ 89.428440][ T76] ? stack_depot_save_flags+0x404/0x810 [ 89.430758][ T76] ? kasan_save_track+0x51/0x90 [ 89.436272][ T76] ? kasan_save_track+0x3f/0x90 [ 89.438620][ T76] ? __kasan_kmalloc+0x93/0xb0 [ 89.440771][ T76] ? __kmalloc_noprof+0x366/0x710 [ 89.443126][ T76] ? hfs_find_init+0x9d/0x300 [ 89.445310][ T76] ? hfs_extend_file+0x367/0x1680 [ 89.447563][ T76] ? hfs_bmap_reserve+0x108/0x430 [ 89.449847][ T76] ? __hfs_ext_write_extent+0x200/0x620 [ 89.452269][ T76] lock_acquire+0x115/0x350 [ 89.454247][ T76] ? hfs_find_init+0x18d/0x300 [ 89.456345][ T76] __mutex_lock+0x197/0x15a0 [ 89.458423][ T76] ? hfs_find_init+0x18d/0x300 [ 89.460506][ T76] ? hfs_find_init+0x18d/0x300 [ 89.462625][ T76] ? __pfx___mutex_lock+0x10/0x10 [ 89.464725][ T76] ? rcu_is_watching+0x16/0xb0 [ 89.466771][ T76] ? trace_kmalloc+0x2a/0xf0 [ 89.468918][ T76] ? __kmalloc_noprof+0x387/0x710 [ 89.471194][ T76] ? __kmalloc_noprof+0x1a6/0x710 [ 89.473234][ T76] ? hfs_find_init+0x9d/0x300 [ 89.475339][ T76] hfs_find_init+0x18d/0x300 [ 89.477457][ T76] hfs_extend_file+0x367/0x1680 [ 89.479660][ T76] ? hfs_bnode_read+0x3cf/0x810 [ 89.481870][ T76] ? __pfx_hfs_extend_file+0x10/0x10 [ 89.484216][ T76] ? __pfx___hfs_brec_find+0x10/0x10 [ 89.486655][ T76] ? hfs_brec_find+0x3cc/0x510 [ 89.488677][ T76] hfs_bmap_reserve+0x108/0x430 [ 89.490786][ T76] __hfs_ext_write_extent+0x200/0x620 [ 89.493014][ T76] hfs_ext_write_extent+0x17d/0x210 [ 89.495392][ T76] ? __pfx___mpage_writepages+0x10/0x10 [ 89.497902][ T76] ? __pfx_hfs_ext_write_extent+0x10/0x10 [ 89.500535][ T76] hfs_write_inode+0x117/0xa00 [ 89.502765][ T76] ? __pfx_hfs_write_inode+0x10/0x10 [ 89.505184][ T76] ? do_raw_spin_unlock+0x4d/0x200 [ 89.507494][ T76] __writeback_single_inode+0x69d/0x1220 [ 89.509944][ T76] writeback_sb_inodes+0x9de/0x1af0 [ 89.512339][ T76] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 89.514880][ T76] ? __pfx_down_read_trylock+0x10/0x10 [ 89.517308][ T76] __writeback_inodes_wb+0x114/0x250 [ 89.519647][ T76] wb_writeback+0x42f/0xad0 [ 89.521690][ T76] ? queue_io+0x1f1/0x470 [ 89.523597][ T76] ? __pfx_wb_writeback+0x10/0x10 [ 89.525807][ T76] ? do_raw_spin_lock+0x12b/0x2f0 [ 89.527757][ T76] wb_workfn+0x980/0x10f0 [ 89.529310][ T76] ? __lock_acquire+0x747/0x2de0 [ 89.531417][ T76] ? __pfx_wb_workfn+0x10/0x10 [ 89.533587][ T76] ? do_raw_spin_lock+0x12b/0x2f0 [ 89.535949][ T76] ? lock_acquire+0x115/0x350 [ 89.537969][ T76] ? rcu_is_watching+0x16/0xb0 [ 89.539961][ T76] ? process_scheduled_works+0x97a/0x1630 [ 89.542297][ T76] process_scheduled_works+0xc3d/0x1630 [ 89.544752][ T76] ? __pfx_process_scheduled_works+0x10/0x10 [ 89.547486][ T76] ? assign_work+0x3cf/0x5d0 [ 89.549704][ T76] worker_thread+0xa47/0xfb0 [ 89.551767][ T76] kthread+0x38b/0x480 [ 89.553563][ T76] ? __pfx_worker_thread+0x10/0x10 [ 89.555733][ T76] ? __pfx_kthread+0x10/0x10 [ 89.557620][ T76] ret_from_fork+0x514/0xb70 [ 89.559623][ T76] ? __pfx_ret_from_fork+0x10/0x10 [ 89.561800][ T76] ? __switch_to+0xc78/0x1410 [ 89.563827][ T76] ? __pfx_kthread+0x10/0x10 [ 89.565858][ T76] ret_from_fork_asm+0x1a/0x30 [ 89.567969][ T76]