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) r1 = openat(0xffffffffffffff9c, &(0x7f0000006840)='./debug/failslab/probability\x00', 0x2, 0x0) write(r1, &(0x7f0000006880)='5\x00', 0x1) 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) r2 = openat(0xffffffffffffff9c, &(0x7f0000006300)='./file1\x00', 0x42, 0x0) write$FUSE_WRITE(r2, &(0x7f0000006340)={0x18}, 0xfffffdef) openat(0xffffffffffffff9c, &(0x7f0000006380)='./file1\x00', 0x42, 0x0) r3 = openat(0xffffffffffffff9c, &(0x7f0000005c00)='./bus\x00', 0xc4042, 0x1ff) r4 = openat$nullb(0xffffffffffffff9c, &(0x7f0000005c40), 0x0, 0x0) sendfile(r3, r4, 0x0, 0xfffe82) [ 103.975938][ T5303] Bluetooth: hci0: command tx timeout [ 104.136741][ T5357] loop0: detected capacity change from 0 to 64 [ 104.145219][ T5357] ======================================================= [ 104.145219][ T5357] WARNING: The mand mount option has been deprecated and [ 104.145219][ T5357] and is ignored by this kernel. Remove the mand [ 104.145219][ T5357] option from the mount to silence this warning. [ 104.145219][ T5357] ======================================================= [ 105.005805][ T5357] hfs: request for non-existent node 8 in B*Tree [ 105.005820][ T5357] hfs: request for non-existent node 8 in B*Tree [ 105.006458][ T5357] hfs: request for non-existent node 9 in B*Tree [ 105.006469][ T5357] hfs: request for non-existent node 9 in B*Tree qemu-system-x86_64: ahci: PRDT length for NCQ command (0x0) is smaller than the requested size (0x127000) [ 105.176239][ T5357] syz.0.0: attempt to access beyond end of device [ 105.176239][ T5357] loop0: rw=34817, sector=24794, nr_sectors = 3 limit=64 [ 105.176443][ T5357] syz.0.0: attempt to access beyond end of device [ 105.176443][ T5357] loop0: rw=34817, sector=24799, nr_sectors = 2 limit=64 [ 105.176732][ T5357] hfs: request for non-existent node 10 in B*Tree [ 105.176744][ T5357] hfs: request for non-existent node 10 in B*Tree [ 105.176851][ T5357] syz.0.0: attempt to access beyond end of device [ 105.176851][ T5357] loop0: rw=34817, sector=24802, nr_sectors = 1 limit=64 [ 105.176897][ T5357] syz.0.0: attempt to access beyond end of device [ 105.176897][ T5357] loop0: rw=34817, sector=24804, nr_sectors = 1 limit=64 [ 105.177158][ T5357] hfs: request for non-existent node 11 in B*Tree [ 105.177165][ T5357] hfs: request for non-existent node 11 in B*Tree [ 105.224310][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224310][ T1061] loop0: rw=8388609, sector=161, nr_sectors = 1 limit=64 [ 105.224788][ T1061] Buffer I/O error on dev loop0, logical block 161, lost async page write [ 105.224818][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224818][ T1061] loop0: rw=8388609, sector=162, nr_sectors = 1 limit=64 [ 105.224832][ T1061] Buffer I/O error on dev loop0, logical block 162, lost async page write [ 105.224842][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224842][ T1061] loop0: rw=8388609, sector=163, nr_sectors = 1 limit=64 [ 105.224854][ T1061] Buffer I/O error on dev loop0, logical block 163, lost async page write [ 105.224865][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224865][ T1061] loop0: rw=8388609, sector=167, nr_sectors = 1 limit=64 [ 105.224877][ T1061] Buffer I/O error on dev loop0, logical block 167, lost async page write [ 105.224888][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224888][ T1061] loop0: rw=8388609, sector=169, nr_sectors = 1 limit=64 [ 105.224899][ T1061] Buffer I/O error on dev loop0, logical block 169, lost async page write [ 105.224910][ T1061] kworker/u4:8: attempt to access beyond end of device [ 105.224910][ T1061] loop0: rw=8388609, sector=171, nr_sectors = 1 limit=64 [ 105.224918][ T1061] Buffer I/O error on dev loop0, logical block 171, lost async page write [ 105.224926][ T1061] Buffer I/O error on dev loop0, logical block 172, lost async page write [ 105.224934][ T1061] Buffer I/O error on dev loop0, logical block 173, lost async page write [ 105.224954][ T1061] Buffer I/O error on dev loop0, logical block 174, lost async page write [ 105.224962][ T1061] Buffer I/O error on dev loop0, logical block 175, lost async page write [ 105.343007][ T25] audit: type=1800 audit(1795323512.921:2): pid=5357 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 [ 105.521389][ T1061] hfs: request for non-existent node 14 in B*Tree [ 105.521409][ T1061] hfs: request for non-existent node 14 in B*Tree [ 105.534147][ T1061] hfs: request for non-existent node 15 in B*Tree [ 105.534168][ T1061] hfs: request for non-existent node 15 in B*Tree [ 105.534223][ T1061] hfs: request for non-existent node 16 in B*Tree [ 105.534229][ T1061] hfs: request for non-existent node 16 in B*Tree [ 105.534287][ T1061] hfs: request for non-existent node 17 in B*Tree [ 105.534293][ T1061] hfs: request for non-existent node 17 in B*Tree [ 105.717988][ T1031] ata1.00: Read log 0x10 page 0x00 failed, Emask 0x1 [ 105.718010][ T1031] ata1: failed to read log page 10h (errno=-5) [ 105.718023][ T1031] ata1.00: exception Emask 0x1 SAct 0x40000001 SErr 0x0 action 0x0 [ 105.718035][ T1031] ata1.00: irq_stat 0x41000000 [ 105.718045][ T1031] ata1.00: failed command: WRITE FPDMA QUEUED [ 105.718052][ T1031] ata1.00: cmd 61/60:00:06:23:08/02:00:00:00:00/40 tag 0 ncq dma 311296 out [ 105.718052][ T1031] res 50/00:00:00:00:00/00:00:00:00:00/00 Emask 0x1 (device error) [ 105.718079][ T1031] ata1.00: status: { DRDY } [ 105.718091][ T1031] ata1.00: failed command: WRITE FPDMA QUEUED [ 105.718098][ T1031] ata1.00: cmd 61/38:f0:ce:19:08/09:00:00:00:00/40 tag 30 ncq dma 1208320 ou [ 105.718098][ T1031] res 50/00:00:00:00:00/00:00:00:00:00/00 Emask 0x1 (device error) [ 105.718128][ T1031] ata1.00: status: { DRDY } [ 105.719354][ T1031] ata1.00: configured for UDMA/100 [ 105.762895][ T1031] ata1: EH complete [ 105.812193][ T80] [ 105.813361][ T80] ============================================ [ 105.816006][ T80] WARNING: possible recursive locking detected [ 105.818747][ T80] syzkaller #0 Not tainted [ 105.820833][ T80] -------------------------------------------- [ 105.823450][ T80] kworker/u4:5/80 is trying to acquire lock: [ 105.826086][ T80] ffff8880139cc0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 105.830351][ T80] [ 105.830351][ T80] but task is already holding lock: [ 105.839482][ T80] ffff8880139cc0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 105.843782][ T80] [ 105.843782][ T80] other info that might help us debug this: [ 105.847328][ T80] Possible unsafe locking scenario: [ 105.847328][ T80] [ 105.850735][ T80] CPU0 [ 105.852215][ T80] ---- [ 105.853646][ T80] lock(&tree->tree_lock/1); [ 105.855680][ T80] lock(&tree->tree_lock/1); [ 105.857796][ T80] [ 105.857796][ T80] *** DEADLOCK *** [ 105.857796][ T80] [ 105.861310][ T80] May be due to missing lock nesting notation [ 105.861310][ T80] [ 105.865129][ T80] locks held by kworker/u4:5/80: 5, on CPU#0: [ 105.867958][ T80] #0: ffff88801e3d9948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 105.873114][ T80] #1: ffffc90000e97c40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 105.878753][ T80] #2: ffff8880139d4100 (&type->s_umount_key#52){.+.+}-{4:4}, at: super_trylock_shared+0x23/0xf0 [ 105.883334][ T80] #3: ffff8880139cc0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 105.887569][ T80] #4: ffff8880145b80a0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf9/0x1680 [ 105.892490][ T80] [ 105.892490][ T80] stack backtrace: [ 105.895058][ T80] CPU: 0 UID: 0 PID: 80 Comm: kworker/u4:5 Not tainted syzkaller #0 PREEMPT(full) [ 105.899004][ T80] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 105.903118][ T80] Workqueue: writeback wb_workfn (flush-7:0) [ 105.905757][ T80] Call Trace: [ 105.907319][ T80] [ 105.908635][ T80] dump_stack_lvl+0xe8/0x150 [ 105.910663][ T80] print_deadlock_bug+0x27a/0x290 [ 105.912769][ T80] __lock_acquire+0x25db/0x2de0 [ 105.914790][ T80] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 105.917376][ T80] ? stack_depot_save_flags+0x404/0x810 [ 105.919780][ T80] ? kasan_save_track+0x51/0x90 [ 105.921853][ T80] ? kasan_save_track+0x3f/0x90 [ 105.923972][ T80] ? __kasan_kmalloc+0x93/0xb0 [ 105.926044][ T80] ? __kmalloc_noprof+0x366/0x710 [ 105.928335][ T80] ? hfs_find_init+0x9d/0x300 [ 105.930385][ T80] ? hfs_extend_file+0x367/0x1680 [ 105.932619][ T80] ? hfs_bmap_reserve+0x108/0x430 [ 105.934814][ T80] ? __hfs_ext_write_extent+0x200/0x620 [ 105.937314][ T80] lock_acquire+0x115/0x350 [ 105.939290][ T80] ? hfs_find_init+0x18d/0x300 [ 105.941375][ T80] __mutex_lock+0x197/0x15a0 [ 105.943423][ T80] ? hfs_find_init+0x18d/0x300 [ 105.945551][ T80] ? hfs_find_init+0x18d/0x300 [ 105.947737][ T80] ? __pfx___mutex_lock+0x10/0x10 [ 105.949978][ T80] ? rcu_is_watching+0x16/0xb0 [ 105.952217][ T80] ? trace_kmalloc+0x2a/0xf0 [ 105.954265][ T80] ? __kmalloc_noprof+0x387/0x710 [ 105.956547][ T80] ? __kmalloc_noprof+0x1a6/0x710 [ 105.958717][ T80] ? hfs_find_init+0x9d/0x300 [ 105.960857][ T80] hfs_find_init+0x18d/0x300 [ 105.965954][ T80] hfs_extend_file+0x367/0x1680 [ 105.968069][ T80] ? hfs_bnode_read+0x3cf/0x810 [ 105.970254][ T80] ? __pfx_hfs_extend_file+0x10/0x10 [ 105.972677][ T80] ? __pfx___hfs_brec_find+0x10/0x10 [ 105.975187][ T80] ? hfs_brec_find+0x3cc/0x510 [ 105.977273][ T80] hfs_bmap_reserve+0x108/0x430 [ 105.979460][ T80] __hfs_ext_write_extent+0x200/0x620 [ 105.981815][ T80] hfs_ext_write_extent+0x17d/0x210 [ 105.984281][ T80] ? __pfx___mpage_writepages+0x10/0x10 [ 105.986761][ T80] ? __pfx_hfs_ext_write_extent+0x10/0x10 [ 105.989313][ T80] hfs_write_inode+0x117/0xa00 [ 105.991440][ T80] ? __pfx_hfs_write_inode+0x10/0x10 [ 105.993857][ T80] ? do_raw_spin_unlock+0x4d/0x200 [ 105.996216][ T80] __writeback_single_inode+0x69d/0x1220 [ 105.998798][ T80] writeback_sb_inodes+0x9de/0x1af0 [ 106.001190][ T80] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 106.003749][ T80] ? __pfx_down_read_trylock+0x10/0x10 [ 106.006108][ T80] __writeback_inodes_wb+0x114/0x250 [ 106.008468][ T80] wb_writeback+0x42f/0xad0 [ 106.010613][ T80] ? queue_io+0x1f1/0x470 [ 106.012742][ T80] ? __pfx_wb_writeback+0x10/0x10 [ 106.014984][ T80] ? do_raw_spin_lock+0x12b/0x2f0 [ 106.017346][ T80] wb_workfn+0x980/0x10f0 [ 106.019375][ T80] ? __pfx_wb_workfn+0x10/0x10 [ 106.021666][ T80] ? trace_hrtimer_start+0x82/0x200 [ 106.024069][ T80] ? do_raw_spin_lock+0x12b/0x2f0 [ 106.026414][ T80] ? lock_acquire+0x115/0x350 [ 106.028765][ T80] ? rcu_is_watching+0x16/0xb0 [ 106.031000][ T80] ? process_scheduled_works+0x97a/0x1630 [ 106.033447][ T80] process_scheduled_works+0xc3d/0x1630 [ 106.035861][ T80] ? __pfx_process_scheduled_works+0x10/0x10 [ 106.038472][ T80] ? assign_work+0x3cf/0x5d0 [ 106.040487][ T80] worker_thread+0xa47/0xfb0 [ 106.042570][ T80] ? __kthread_parkme+0x71/0x1f0 [ 106.044906][ T80] kthread+0x38b/0x480 [ 106.046827][ T80] ? __pfx_worker_thread+0x10/0x10 [ 106.049100][ T80] ? __pfx_kthread+0x10/0x10 [ 106.051241][ T80] ret_from_fork+0x514/0xb70 [ 106.053394][ T80] ? __pfx_ret_from_fork+0x10/0x10 [ 106.055780][ T80] ? __switch_to+0xc78/0x1410 [ 106.058011][ T80] ? __pfx_kthread+0x10/0x10 [ 106.060126][ T80] ret_from_fork_asm+0x1a/0x30 [ 106.062297][ T80]