program: r0 = socket$nl_route(0x10, 0x3, 0x0) syz_mount_image$hfs(&(0x7f0000000040), &(0x7f0000000080)='./file0\x00', 0x0, &(0x7f0000000300)=ANY=[@ANYBLOB="71756965742c636f6465706167653d63703836302c696f636861727365743d63703836312c00808fead042bd35dc78f7f06333a5e7165b8271e41aee85e59cbb6c2df3d4e4c16b06c73f2e3b348a7fba46e286378a15ee516bac8d4813c9c3d9cee1ddb95d1bbcf504e065b3749a1cbd841e685a558598cf0db10b55885946e678d0a71877037a090000000700848879ef1604cadc1faca3aa22a576750d559c4e124d4cb7293e7393b77286a03d342382e84d6d3c29ab95cc923fbe25e134d1c421320a3bffaa17fcd6b5178e322cc47133b3811e3d3bc34998dc7ed029834ad591d9d55141063d8de2d50a4fa0e73ff2913a9fe8e954a4e4ca99ce24dba4e0812c2ccf8ab5737e57193c5f47fd63b16c8b34f256dbac0e5ebd009078df2cb1ca1051ad091adbfee5126d8a59fa5438734bc3e8cc7b7edc10716a0ace21dc04bd9c3248b598267822670a02be81f017e946a7e3359ce433ae42aae07518c3850cff4cf415bdb29ab165216a12899868d6857b732eafbab59fba36fca0b5cab2e717cd6ffef31a24add5f56b30c27b9e616892b60f4cde07eb9cb090ca25e5b8c6858a27e7e4d5cac6ed29218fcd35804fe2a5cb1ca503991051eb9c04a88bf02e8e240ee4c8b0ae80396aff9f8a913e8dc6b15e15b0a7c82953a87ef02b1e7abea95a7ae79eca2a536a59abfa3cccc1a6664d20344fedc524f3867f1dd8ba04bcd90aa43e024891f779210ec076e0b13ebf2bef2ac1a30f7a396a508b00000000000000", @ANYRESOCT=0x0, @ANYRESOCT, @ANYRESDEC=0x0, @ANYRES16=0x0, @ANYRES8], 0x1, 0x32a, &(0x7f0000000580)="$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, &(0x7f00000008c0)={0x8, 0x20000008b}, 0x0) sched_setscheduler(0x0, 0x1, &(0x7f0000000900)=0x7) r1 = openat(0xffffffffffffff9c, &(0x7f0000000940)='./bus\x00', 0x141842, 0x0) r2 = socket$inet6_icmp(0xa, 0x2, 0x3a) ioctl$sock_SIOCGPGRP(r2, 0x8904, &(0x7f00000000c0)) r3 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000980)='cpuacct.usage_percpu\x00', 0x275a, 0x0) r4 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f00000009c0)='cpuacct.usage_percpu\x00', 0x275a, 0x0) write$binfmt_script(r4, &(0x7f0000000a00), 0xfea7) copy_file_range(r3, 0x0, r1, 0x0, 0xffffffffa003e459, 0x700000000000000) r5 = openat(0xffffffffffffff9c, &(0x7f0000000a40)='./file1\x00', 0x42, 0x0) write$FUSE_WRITE(r5, &(0x7f0000000a80)={0x18}, 0xfffffdef) sendmsg$nl_route(r0, &(0x7f00000002c0)={0x0, 0x0, &(0x7f0000000100)={&(0x7f0000000000)=@newlink={0x3c, 0x10, 0x401, 0x0, 0x0, {}, [@IFLA_LINKINFO={0x14, 0x12, 0x0, 0x1, @vlan={{0x9}, {0x4}}}, @IFLA_AF_SPEC={0x8, 0x1a, 0x0, 0x1, [@AF_INET6={0x4}]}]}, 0x3c}}, 0x0) [ 93.467202][ T5277] Bluetooth: hci0: command tx timeout [ 93.482790][ T10] cfg80211: failed to load regulatory.db [ 93.536220][ T5314] loop0: detected capacity change from 0 to 64 [ 93.646884][ T5314] syz.0.0: attempt to access beyond end of device [ 93.646884][ T5314] loop0: rw=8390657, sector=163, nr_sectors = 1 limit=64 [ 93.646944][ T5314] Buffer I/O error on dev loop0, logical block 163, lost async page write [ 93.646969][ T5314] syz.0.0: attempt to access beyond end of device [ 93.646969][ T5314] loop0: rw=8390657, sector=167, nr_sectors = 1 limit=64 [ 93.646982][ T5314] Buffer I/O error on dev loop0, logical block 167, lost async page write [ 93.646994][ T5314] syz.0.0: attempt to access beyond end of device [ 93.646994][ T5314] loop0: rw=8390657, sector=169, nr_sectors = 1 limit=64 [ 93.647006][ T5314] Buffer I/O error on dev loop0, logical block 169, lost async page write [ 93.647017][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647017][ T5314] loop0: rw=8390657, sector=171, nr_sectors = 1 limit=64 [ 93.647030][ T5314] Buffer I/O error on dev loop0, logical block 171, lost async page write [ 93.647042][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647042][ T5314] loop0: rw=8390657, sector=172, nr_sectors = 1 limit=64 [ 93.647053][ T5314] Buffer I/O error on dev loop0, logical block 172, lost async page write [ 93.647065][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647065][ T5314] loop0: rw=8390657, sector=173, nr_sectors = 1 limit=64 [ 93.647075][ T5314] Buffer I/O error on dev loop0, logical block 173, lost async page write [ 93.647086][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647086][ T5314] loop0: rw=8390657, sector=174, nr_sectors = 1 limit=64 [ 93.647097][ T5314] Buffer I/O error on dev loop0, logical block 174, lost async page write [ 93.647108][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647108][ T5314] loop0: rw=8390657, sector=175, nr_sectors = 1 limit=64 [ 93.647118][ T5314] Buffer I/O error on dev loop0, logical block 175, lost async page write [ 93.647639][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647639][ T5314] loop0: rw=8390657, sector=176, nr_sectors = 1 limit=64 [ 93.647657][ T5314] Buffer I/O error on dev loop0, logical block 176, lost async page write [ 93.647669][ T5314] syz.0.0: attempt to access beyond end of device [ 93.647669][ T5314] loop0: rw=8390657, sector=177, nr_sectors = 1 limit=64 [ 93.647681][ T5314] Buffer I/O error on dev loop0, logical block 177, lost async page write [ 94.467414][ T130] [ 94.468424][ T130] ============================================ [ 94.470909][ T130] WARNING: possible recursive locking detected [ 94.473462][ T130] syzkaller #0 Not tainted [ 94.475365][ T130] -------------------------------------------- [ 94.477990][ T130] kworker/u4:5/130 is trying to acquire lock: [ 94.480603][ T130] ffff88804027c0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 94.486059][ T130] [ 94.486059][ T130] but task is already holding lock: [ 94.489155][ T130] ffff88804027c0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 94.493008][ T130] [ 94.493008][ T130] other info that might help us debug this: [ 94.496469][ T130] Possible unsafe locking scenario: [ 94.496469][ T130] [ 94.499641][ T130] CPU0 [ 94.501118][ T130] ---- [ 94.502559][ T130] lock(&tree->tree_lock/1); [ 94.504566][ T130] lock(&tree->tree_lock/1); [ 94.506623][ T130] [ 94.506623][ T130] *** DEADLOCK *** [ 94.506623][ T130] [ 94.510267][ T130] May be due to missing lock nesting notation [ 94.510267][ T130] [ 94.514126][ T130] locks held by kworker/u4:5/130: 5, last CPU#0: [ 94.517106][ T130] #0: ffff88801d37d940 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 94.521631][ T130] #1: ffffc9000170fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 94.526501][ T130] #2: ffff8880133960e8 (&type->s_umount_key#54){.+.+}-{4:4}, at: super_trylock_shared+0x23/0xf0 [ 94.530789][ T130] #3: ffff88804027c0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 94.534556][ T130] #4: ffff888052f8c0a0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf9/0x1680 [ 94.538879][ T130] [ 94.538879][ T130] stack backtrace: [ 94.541287][ T130] CPU: 0 UID: 0 PID: 130 Comm: kworker/u4:5 Not tainted syzkaller #0 PREEMPT(full) [ 94.544980][ T130] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 94.548923][ T130] Workqueue: writeback wb_workfn (flush-7:0) [ 94.551455][ T130] Call Trace: [ 94.552907][ T130] [ 94.554154][ T130] dump_stack_lvl+0xe8/0x150 [ 94.556038][ T130] print_deadlock_bug+0x27a/0x290 [ 94.558003][ T130] __lock_acquire+0x25db/0x2de0 [ 94.560057][ T130] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 94.565072][ T130] ? stack_depot_save_flags+0x404/0x7f0 [ 94.567393][ T130] ? kasan_save_track+0x4f/0x80 [ 94.569450][ T130] ? kasan_save_track+0x3e/0x80 [ 94.571526][ T130] ? __kasan_kmalloc+0x93/0xb0 [ 94.573735][ T130] ? __kmalloc_noprof+0x36b/0x720 [ 94.575842][ T130] ? hfs_find_init+0x9d/0x300 [ 94.577894][ T130] ? hfs_extend_file+0x367/0x1680 [ 94.580164][ T130] ? hfs_bmap_reserve+0x108/0x430 [ 94.582485][ T130] ? __hfs_ext_write_extent+0x1fc/0x470 [ 94.585037][ T130] lock_acquire+0x115/0x350 [ 94.587027][ T130] ? hfs_find_init+0x18d/0x300 [ 94.589205][ T130] __mutex_lock+0x19d/0x1550 [ 94.591325][ T130] ? hfs_find_init+0x18d/0x300 [ 94.593549][ T130] ? hfs_find_init+0x18d/0x300 [ 94.595533][ T130] ? __pfx___mutex_lock+0x10/0x10 [ 94.597543][ T130] ? rcu_is_watching+0x16/0xb0 [ 94.599575][ T130] ? trace_kmalloc+0x2a/0xf0 [ 94.601584][ T130] ? __kmalloc_noprof+0x38c/0x720 [ 94.603814][ T130] ? __kmalloc_noprof+0x1ab/0x720 [ 94.605972][ T130] ? hfs_find_init+0x9d/0x300 [ 94.608026][ T130] hfs_find_init+0x18d/0x300 [ 94.610056][ T130] hfs_extend_file+0x367/0x1680 [ 94.612236][ T130] ? __pfx_hfs_extend_file+0x10/0x10 [ 94.614541][ T130] ? _raw_spin_unlock+0x28/0x50 [ 94.616782][ T130] ? hfs_brec_find+0x3db/0x510 [ 94.618866][ T130] hfs_bmap_reserve+0x108/0x430 [ 94.620910][ T130] __hfs_ext_write_extent+0x1fc/0x470 [ 94.623032][ T130] hfs_ext_write_extent+0x17d/0x210 [ 94.625172][ T130] ? __pfx___mpage_writepages+0x10/0x10 [ 94.627579][ T130] ? __pfx_hfs_ext_write_extent+0x10/0x10 [ 94.630092][ T130] hfs_write_inode+0x117/0xa00 [ 94.632240][ T130] ? __pfx_hfs_write_inode+0x10/0x10 [ 94.634549][ T130] ? do_raw_spin_unlock+0x4d/0x200 [ 94.636764][ T130] __writeback_single_inode+0x69d/0x1220 [ 94.639220][ T130] writeback_sb_inodes+0x9de/0x1b00 [ 94.641463][ T130] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 94.643986][ T130] ? __pfx_down_read_trylock+0x10/0x10 [ 94.646338][ T130] ? __pfx___up_read+0x10/0x10 [ 94.648476][ T130] __writeback_inodes_wb+0x114/0x240 [ 94.650775][ T130] wb_writeback+0x42f/0xad0 [ 94.652799][ T130] ? queue_io+0x2b1/0x470 [ 94.654715][ T130] ? __pfx_wb_writeback+0x10/0x10 [ 94.656721][ T130] ? do_raw_spin_lock+0x12b/0x2f0 [ 94.659006][ T130] wb_workfn+0x980/0x10f0 [ 94.660936][ T130] ? __pfx_wb_workfn+0x10/0x10 [ 94.663028][ T130] ? do_raw_spin_lock+0x12b/0x2f0 [ 94.665126][ T130] ? lock_acquire+0x115/0x350 [ 94.667112][ T130] ? rcu_is_watching+0x16/0xb0 [ 94.669117][ T130] ? process_scheduled_works+0x97a/0x1630 [ 94.671492][ T130] process_scheduled_works+0xc3d/0x1630 [ 94.673900][ T130] ? __pfx_process_scheduled_works+0x10/0x10 [ 94.676435][ T130] ? assign_work+0x3cf/0x5d0 [ 94.678437][ T130] worker_thread+0xa47/0xfb0 [ 94.680392][ T130] ? __kthread_parkme+0x71/0x1f0 [ 94.682538][ T130] kthread+0x38b/0x480 [ 94.684302][ T130] ? __pfx_worker_thread+0x10/0x10 [ 94.686455][ T130] ? __pfx_kthread+0x10/0x10 [ 94.688450][ T130] ret_from_fork+0x514/0xb70 [ 94.690455][ T130] ? __pfx_ret_from_fork+0x10/0x10 [ 94.692627][ T130] ? __switch_to+0xc89/0x1420 [ 94.694665][ T130] ? __pfx_kthread+0x10/0x10 [ 94.696621][ T130] ret_from_fork_asm+0x1a/0x30 [ 94.698573][ T130] [ 95.518501][ T5277] Bluetooth: hci0: command tx timeout [ 97.598684][ T5277] Bluetooth: hci0: command tx timeout