program: syz_mount_image$hfs(&(0x7f0000000200), &(0x7f0000000340)='./file0\x00', 0x0, &(0x7f0000000380)=ANY=[@ANYBLOB="71756965742c636f6465706167653d63703836302c696f636861727365743d63703836312c00808fead042bd35dc78f7f06333a5e7165b8271e41aee85e59cbb6c2df3d4e4c16b06c73f2e3b348a7fba46e286378a15ee516bac8d4813c9c3d9cee1ddb95d1bbcf504e065b3749a1cbd841e685a558598cf0db10b55885946e678d0a71877037a090000000700848879ef1604cadc1faca3aa22a576750d559c4e124d4cb7293e7393b77286a03d342382e84d6d3c29ab95cc923fbe25e134d1c421320a3bffaa17fcd6b5178e322cc47133b3811e3d3bc34998dc7ed029834ad591d9d55141063d8de2d50a4fa0e73ff2913a9fe8e954a4e4ca99ce24dba4e0812c2ccf8ab5737e57193c5f47fd63b16c8b34f256dbac0e5ebd009078df2cb1ca1051ad091adbfee5126d8a59fa5438734bc3e8cc7b7edc10716a0ace21dc04bd9c3248b598267822670a02be81f017e946a7e3359ce433ae42aae07518c3850cff4cf415bdb29ab165216a12899868d6857b732eafbab59fba36fca0b5cab2e717cd6ffef31a24add5f56b30c27b9e616892b60f4cde07eb9cb090ca25e5b8c6858a27e7e4d5cac6ed29218fcd35804fe2a5cb1ca503991051eb9c04a88bf02e8e240ee4c8b0ae80396aff9f8a913e8dc6b15e15b0a7c82953a87ef02b1e7abea95a7ae79eca2a536a59abfa3cccc1a6664d20344fedc524f3867f1dd8ba04bcd90aa43e024891f779210ec076e0b13ebf2bef2ac1a30f7a396a508b00000000000000", @ANYRESOCT=0x0, @ANYRESOCT, @ANYRESDEC=0x0, @ANYRES16=0x0, @ANYRES8], 0x1, 0x32a, &(0x7f00000007c0)="$eJzs3U1rE08cB/DvTJJm+2/+dfsggsdqQS+i9SJeIpK3IIgH0bYRiqGiVlAvJuJJRO/efQu+CC+Kb0BPHsSr0F4cmdnZTXZ39iFt2jX6/YC42d3J/CYzk/1NUAZE9M+62vny7uI3/UcANdSAl5cBCcAD6gCO44T3aHtna6fX3cx7o5opgT0FgaCkSN2zsd01fw/ip3U5U8Ly9as6WqPn6HAopa58TZz7LisKhipjZr+DBJp2dprr3pFHlm9Q5ibHeO4fQizTROxiF48xX3UcRERULf38HwRPSv2cb9n8XUpgFRh4f+rzv5z/U2d+VhLHUVK5V0ee/2aVpYTu32Pm0nC9Z5Zw+roMV4llam4kXs8gyMFiCaZwryqHSz4Ti5y9s9Xrntu419uUeI62NVJgOarB0iO0INoVx9o0R4m2C2dGGYQlG7oNaxnxL+2zxhypdDfWIeKD+CRuCh9vsRnlf3UldLQmYD/RU0H857PrmzOl9F2wXxvtdluaNwotmEpOxnsqu5VmFHjuFQnCD3YB8R8I/KI4TanFRKmgdRecBZpRqSVnqbXwVUZdy7FSujXRaM6OcjLUs6wr4rW4LlbwA+/RGcn/pY5vFemZOdIJw1kjVoOJZj7xoD0z7urq5j391JOjjxut+JnoU2xmhb6nBH8SOqCwD19hHZcw//DJ07u1Xq/7QB/cdhzcb0VnGi8A5z0VH6A/PNOEMlI3h9+BseKz9uQYldbGCOzsRFuqJ2LhzXqWJS+FrZzoJz86EsIJO7E+hax+aOWNjc7HxEAqPFC1cnNHNZ0j3C/u94xLv9Q+2p7Ol+nvNOz0qiOhiui8SwTrP5PJ23zf5Gs6W7jWzF6NhItMV8pmEkf7jkrn2NEKyIuVXzRH/8XT6IIV0JzNYxzruD5Say797E+tuU6dAU6Xr9G3cU6H7PTfEh18xi3+/k9ERERERERERERERERERERERERENG3G/98Rs2OWavBflhMRERERERERERERERERERERERERERERHVC0/y/C/X9Rbv/f5PZSdv9fDwX7/66nY0jt//tmG6IPcP9fosP1OwAA//+1UnIe") prlimit64(0x0, 0xe, &(0x7f0000000b00)={0x8, 0x20000008b}, 0x0) sched_setscheduler(0x0, 0x1, &(0x7f0000000b40)=0x7) r0 = openat(0xffffffffffffff9c, &(0x7f0000000b80)='./file1\x00', 0x42, 0x0) write$FUSE_WRITE(r0, &(0x7f0000000bc0)={0x18}, 0xfffffdef) ioctl$FIBMAP(r0, 0x1, &(0x7f0000000c00)=0x101) r1 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f00000006c0)='memory.events\x00', 0x275a, 0x0) r2 = syz_usb_connect$hid(0x0, 0x3f, &(0x7f0000000000)={{0x12, 0x1, 0x0, 0x0, 0x0, 0x0, 0x40, 0x47f, 0xffffffff, 0x0, 0x0, 0x0, 0x0, 0x1, [{{0x9, 0x2, 0x2d, 0x1, 0x0, 0x0, 0x0, 0x0, "", [{{0x9, 0x4, 0x0, 0x0, 0x2, 0x3, 0x0, 0x0, 0x0, {0x9, 0x21, 0x0, 0x0, 0x1, {0x22, 0x18}}, {{}, [{{0x9, 0x5, 0x2, 0x3, 0x8}}]}}}]}}]}}, 0x0) syz_usb_control_io$hid(r2, 0x0, 0x0) syz_usb_control_io$hid(r2, &(0x7f0000000040)={0x24, 0x0, 0x0, &(0x7f0000000080)={0x0, 0x22, 0x18, {[@global=@item_012={0x1, 0x1, 0x8, "01"}, @global=@item_012={0x1, 0x1, 0x1, '\x00'}, @global=@item_012={0x1, 0x1, 0x1, "ff"}, @local=@item_012={0x1, 0x2, 0x0, "04"}, @main=@item_012={0x1, 0x0, 0xa, "01"}, @local=@item_012={0x1, 0x2, 0x0, "01"}, @main=@item_012={0x1, 0x0, 0xa, '\x00'}, @global=@item_012={0x1, 0x1, 0x7, '\b'}, @global=@item_012={0x1, 0x1, 0x7, "01"}, @local=@item_012={0x1, 0x2, 0x0, '0'}, @main=@item_012={0x1, 0x0, 0x9, "02"}, @main=@item_012={0x0, 0x0, 0xc}, @main=@item_012={0x0, 0x0, 0xc}]}}, 0x0}, 0x0) r3 = syz_open_dev$hiddev(&(0x7f00000000c0), 0x0, 0x0) ioctl$HIDIOCSREPORT(r3, 0x400c4808, &(0x7f0000000100)={0x2, 0x100}) pread64(r3, 0x0, 0x0, 0x7f) r4 = bpf$MAP_CREATE(0x0, 0x0, 0x0) close(0x3) syz_fuse_handle_req(0xffffffffffffffff, 0x0, 0x0, 0x0) r5 = syz_open_dev$evdev(&(0x7f0000000140), 0x20c3, 0x94400) r6 = socket$nl_audit(0x10, 0x3, 0x9) poll(&(0x7f0000000180)=[{r3, 0x4040}, {r4, 0x8400}, {r4, 0x2000}, {r5, 0x2080}, {r4, 0x100}, {r6, 0x4000}], 0x6, 0x80) write$cgroup_subtree(r1, &(0x7f0000000e00)=ANY=[], 0x10448) [ 110.524012][ T5300] Bluetooth: hci0: command tx timeout [ 110.650717][ T5348] loop0: detected capacity change from 0 to 64 [ 111.676682][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676682][ T5348] loop0: rw=8388608, sector=25900, nr_sectors = 1 limit=64 [ 111.676761][ T5348] Buffer I/O error on dev loop0, logical block 25900, async page read [ 111.676794][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676794][ T5348] loop0: rw=8388608, sector=25901, nr_sectors = 1 limit=64 [ 111.676807][ T5348] Buffer I/O error on dev loop0, logical block 25901, async page read [ 111.676816][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676816][ T5348] loop0: rw=8388608, sector=26983, nr_sectors = 1 limit=64 [ 111.676824][ T5348] Buffer I/O error on dev loop0, logical block 26983, async page read [ 111.676832][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676832][ T5348] loop0: rw=8388608, sector=26984, nr_sectors = 1 limit=64 [ 111.676840][ T5348] Buffer I/O error on dev loop0, logical block 26984, async page read [ 111.676848][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676848][ T5348] loop0: rw=8388608, sector=26985, nr_sectors = 1 limit=64 [ 111.676858][ T5348] Buffer I/O error on dev loop0, logical block 26985, async page read [ 111.676870][ T5348] syz.0.0: attempt to access beyond end of device [ 111.676870][ T5348] loop0: rw=8388608, sector=26986, nr_sectors = 1 limit=64 [ 111.676881][ T5348] Buffer I/O error on dev loop0, logical block 26986, async page read [ 111.840418][ T5348] syz.0.0: attempt to access beyond end of device [ 111.840418][ T5348] loop0: rw=8388608, sector=25900, nr_sectors = 1 limit=64 [ 111.840448][ T5348] Buffer I/O error on dev loop0, logical block 25900, async page read [ 111.840460][ T5348] syz.0.0: attempt to access beyond end of device [ 111.840460][ T5348] loop0: rw=8388608, sector=25901, nr_sectors = 1 limit=64 [ 111.840469][ T5348] Buffer I/O error on dev loop0, logical block 25901, async page read [ 111.840477][ T5348] syz.0.0: attempt to access beyond end of device [ 111.840477][ T5348] loop0: rw=8388608, sector=26983, nr_sectors = 1 limit=64 [ 111.840487][ T5348] Buffer I/O error on dev loop0, logical block 26983, async page read [ 111.840498][ T5348] syz.0.0: attempt to access beyond end of device [ 111.840498][ T5348] loop0: rw=8388608, sector=26984, nr_sectors = 1 limit=64 [ 111.840510][ T5348] Buffer I/O error on dev loop0, logical block 26984, async page read [ 112.085233][ T10] usb 5-1: new high-speed USB device number 2 using dummy_hcd [ 112.238112][ T10] usb 5-1: New USB device found: idVendor=047f, idProduct=ffff, bcdDevice=0.00 [ 112.239971][ T10] usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 0, changing to 7 [ 112.239994][ T10] usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x81 has invalid wMaxPacketSize 0 [ 112.240006][ T10] usb 5-1: config 0 interface 0 altsetting 0 endpoint 0x2 has an invalid bInterval 0, changing to 7 [ 112.240031][ T10] usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 112.271208][ T10] usb 5-1: config 0 descriptor?? [ 112.566273][ T4664] Bluetooth: hci0: command tx timeout [ 112.730559][ T10] plantronics 0003:047F:FFFF.0002: hiddev0,hidraw1: USB HID v0.00 Device [HID 047f:ffff] on usb-dummy_hcd.0-1/input0 [ 114.646149][ T4664] Bluetooth: hci0: command tx timeout [ 115.842723][ T184] [ 115.843914][ T184] ============================================ [ 115.846806][ T184] WARNING: possible recursive locking detected [ 115.849521][ T184] syzkaller #0 Not tainted [ 115.851575][ T184] -------------------------------------------- [ 115.854407][ T184] kworker/u4:6/184 is trying to acquire lock: [ 115.857221][ T184] ffff88803f9b00a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 115.862154][ T184] [ 115.862154][ T184] but task is already holding lock: [ 115.865550][ T184] ffff88803f9b00a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 115.869630][ T184] [ 115.869630][ T184] other info that might help us debug this: [ 115.873073][ T184] Possible unsafe locking scenario: [ 115.873073][ T184] [ 115.876273][ T184] CPU0 [ 115.877790][ T184] ---- [ 115.879180][ T184] lock(&tree->tree_lock/1); [ 115.881139][ T184] lock(&tree->tree_lock/1); [ 115.883144][ T184] [ 115.883144][ T184] *** DEADLOCK *** [ 115.883144][ T184] [ 115.886362][ T184] May be due to missing lock nesting notation [ 115.886362][ T184] [ 115.889913][ T184] locks held by kworker/u4:6/184: 5, on CPU#0: [ 115.892346][ T184] #0: ffff88801e33a148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 115.897202][ T184] #1: ffffc90001a67c40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 115.902955][ T184] #2: ffff888034e62100 (&type->s_umount_key#53){.+.+}-{4:4}, at: super_trylock_shared+0x23/0xf0 [ 115.907746][ T184] #3: ffff88803f9b00a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 115.911760][ T184] #4: ffff8880530d40a0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf9/0x1680 [ 115.916316][ T184] [ 115.916316][ T184] stack backtrace: [ 115.918714][ T184] CPU: 0 UID: 0 PID: 184 Comm: kworker/u4:6 Not tainted syzkaller #0 PREEMPT(full) [ 115.922547][ T184] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 115.926616][ T184] Workqueue: writeback wb_workfn (flush-7:0) [ 115.929060][ T184] Call Trace: [ 115.930514][ T184] [ 115.931835][ T184] dump_stack_lvl+0xe8/0x150 [ 115.933840][ T184] print_deadlock_bug+0x27a/0x290 [ 115.936031][ T184] __lock_acquire+0x25db/0x2de0 [ 115.937982][ T184] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 115.940344][ T184] ? stack_depot_save_flags+0x404/0x810 [ 115.942615][ T184] ? kasan_save_track+0x51/0x90 [ 115.944862][ T184] ? kasan_save_track+0x3f/0x90 [ 115.947047][ T184] ? __kasan_kmalloc+0x93/0xb0 [ 115.949137][ T184] ? __kmalloc_noprof+0x366/0x710 [ 115.951408][ T184] ? hfs_find_init+0x9d/0x300 [ 115.953530][ T184] ? hfs_extend_file+0x367/0x1680 [ 115.955634][ T184] ? hfs_bmap_reserve+0x108/0x430 [ 115.957732][ T184] ? __hfs_ext_write_extent+0x200/0x620 [ 115.959820][ T184] lock_acquire+0x115/0x350 [ 115.961489][ T184] ? hfs_find_init+0x18d/0x300 [ 115.963280][ T184] __mutex_lock+0x197/0x15a0 [ 115.965111][ T184] ? hfs_find_init+0x18d/0x300 [ 115.967209][ T184] ? hfs_find_init+0x18d/0x300 [ 115.969175][ T184] ? __pfx___mutex_lock+0x10/0x10 [ 115.971271][ T184] ? rcu_is_watching+0x16/0xb0 [ 115.973209][ T184] ? trace_kmalloc+0x2a/0xf0 [ 115.975113][ T184] ? __kmalloc_noprof+0x387/0x710 [ 115.977157][ T184] ? __kmalloc_noprof+0x1a6/0x710 [ 115.979219][ T184] ? hfs_find_init+0x9d/0x300 [ 115.981217][ T184] hfs_find_init+0x18d/0x300 [ 115.983270][ T184] hfs_extend_file+0x367/0x1680 [ 115.985446][ T184] ? hfs_bnode_read+0x3cf/0x810 [ 115.987510][ T184] ? __pfx_hfs_extend_file+0x10/0x10 [ 115.989869][ T184] ? __pfx___hfs_brec_find+0x10/0x10 [ 115.992168][ T184] ? hfs_brec_find+0x3cc/0x510 [ 115.994206][ T184] hfs_bmap_reserve+0x108/0x430 [ 115.996314][ T184] __hfs_ext_write_extent+0x200/0x620 [ 115.998551][ T184] hfs_ext_write_extent+0x17d/0x210 [ 116.000821][ T184] ? __pfx___mpage_writepages+0x10/0x10 [ 116.003171][ T184] ? __pfx_hfs_ext_write_extent+0x10/0x10 [ 116.005649][ T184] hfs_write_inode+0x117/0xa00 [ 116.007848][ T184] ? __pfx_hfs_write_inode+0x10/0x10 [ 116.010323][ T184] ? do_raw_spin_unlock+0x4d/0x200 [ 116.012464][ T184] __writeback_single_inode+0x69d/0x1220 [ 116.015010][ T184] writeback_sb_inodes+0x9de/0x1af0 [ 116.017384][ T184] ? save_trace+0x2c4/0x390 [ 116.019464][ T184] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 116.021968][ T184] ? irqentry_exit+0x2a0/0x9b0 [ 116.024083][ T184] ? __pfx_down_read_trylock+0x10/0x10 [ 116.026600][ T184] ? __pfx___up_read+0x10/0x10 [ 116.028702][ T184] __writeback_inodes_wb+0x114/0x250 [ 116.031183][ T184] wb_writeback+0x42f/0xad0 [ 116.033278][ T184] ? queue_io+0x1e1/0x470 [ 116.035234][ T184] ? __pfx_wb_writeback+0x10/0x10 [ 116.037507][ T184] wb_workfn+0xd5b/0x10f0 [ 116.039517][ T184] ? __pfx_wb_workfn+0x10/0x10 [ 116.041625][ T184] ? lockdep_hardirqs_on+0x7b/0x110 [ 116.043949][ T184] ? do_raw_spin_lock+0x12b/0x2f0 [ 116.046176][ T184] ? lock_acquire+0x115/0x350 [ 116.048145][ T184] ? rcu_is_watching+0x16/0xb0 [ 116.050188][ T184] ? process_scheduled_works+0x97a/0x1630 [ 116.052654][ T184] process_scheduled_works+0xc3d/0x1630 [ 116.055362][ T184] ? __pfx_process_scheduled_works+0x10/0x10 [ 116.058384][ T184] ? assign_work+0x3cf/0x5d0 [ 116.060680][ T184] worker_thread+0xa47/0xfb0 [ 116.062774][ T184] kthread+0x38b/0x480 [ 116.064576][ T184] ? __pfx_worker_thread+0x10/0x10 [ 116.066876][ T184] ? __pfx_kthread+0x10/0x10 [ 116.068925][ T184] ret_from_fork+0x514/0xb70 [ 116.070972][ T184] ? __pfx_ret_from_fork+0x10/0x10 [ 116.073184][ T184] ? __switch_to+0xc78/0x1410 [ 116.075241][ T184] ? __pfx_kthread+0x10/0x10 [ 116.077263][ T184] ret_from_fork_asm+0x1a/0x30 [ 116.079502][ T184] [ 116.915027][ T1975] rxe_eth0 speed is unknown, defaulting to 1000