program: openat$nci(0xffffffffffffff9c, &(0x7f0000000240), 0x2, 0x0) r0 = syz_open_procfs(0x0, &(0x7f0000000000)='fd/3\x00') syz_mount_image$hfs(&(0x7f0000000040), &(0x7f0000000080)='./file0\x00', 0x0, &(0x7f0000000280)=ANY=[@ANYBLOB="71756965742c636f6465706167653d63703836302c696f636861727365743d63703836312c00808fead042bd35dc78f7f06333a5e7165b8271e41aee85e59cbb6c2df3d4e4c16b06c73f2e3b348a7fba46e286378a15ee516bac8d4813c9c3d9cee1ddb95d1bbcf504e065b3749a1cbd841e685a558598cf0db10b55885946e678d0a71877037a090000000700848879ef1604cadc1faca3aa22a576750d559c4e124d4cb7293e7393b77286a03d342382e84d6d3c29ab95cc923fbe25e134d1c421320a3bffaa17fcd6b5178e322cc47133b3811e3d3bc34998dc7ed029834ad591d9d55141063d8de2d50a4fa0e73ff2913a9fe8e954a4e4ca99ce24dba4e0812c2ccf8ab5737e57193c5f47fd63b16c8b34f256dbac0e5ebd009078df2cb1ca1051ad091adbfee5126d8a59fa5438734bc3e8cc7b7edc10716a0ace21dc04bd9c3248b598267822670a02be81f017e946a7e3359ce433ae42aae07518c3850cff4cf415bdb29ab165216a12899868d6857b732eafbab59fba36fca0b5cab2e717cd6ffef31a24add5f56b30c27b9e616892b60f4cde07eb9cb090ca25e5b8c6858a27e7e4d5cac6ed29218fcd35804fe2a5cb1ca503991051eb9c04a88bf02e8e240ee4c8b0ae80396aff9f8a913e8dc6b15e15b0a7c82953a87ef02b1e7abea95a7ae79eca2a536a59abfa3cccc1a6664d20344fedc524f3867f1dd8ba04bcd90aa43e024891f779210ec076e0b13ebf2bef2ac1a30f7a396a508b00000000000000", @ANYRESOCT=0x0, @ANYRESOCT, @ANYRESDEC=0x0, @ANYRES16=0x0, @ANYRES8], 0x1, 0x32a, &(0x7f0000000500)="$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, &(0x7f0000000840)={0x8, 0x20000008b}, 0x0) sched_setscheduler(0x0, 0x1, &(0x7f0000000880)=0x7) r1 = openat(0xffffffffffffff9c, &(0x7f00000008c0)='./bus\x00', 0x141842, 0x0) r2 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000900)='cpuacct.usage_percpu\x00', 0x275a, 0x0) r3 = openat$cgroup_ro(0xffffffffffffff9c, &(0x7f0000000940)='cpuacct.usage_percpu\x00', 0x275a, 0x0) write$binfmt_script(r3, &(0x7f0000000980), 0xfea7) copy_file_range(r2, 0x0, r1, 0x0, 0xffffffffa003e459, 0x700000000000000) r4 = openat(0xffffffffffffff9c, &(0x7f00000009c0)='./file1\x00', 0x42, 0x0) write$FUSE_WRITE(r4, &(0x7f0000000a00)={0x18}, 0xfffffdef) write$RDMA_USER_CM_CMD_CREATE_ID(r4, &(0x7f0000000a40)={0x0, 0x18, 0xfa00, {0x3, 0x0, 0x2, 0x6}}, 0x20) syz_kvm_setup_syzos_vm$x86(r0, &(0x7f0000c00000/0x400000)=nil) [ 74.110859][ T4650] Bluetooth: hci0: command tx timeout [ 74.297010][ T5316] loop0: detected capacity change from 0 to 64 [ 74.401978][ T5316] syz.0.0: attempt to access beyond end of device [ 74.401978][ T5316] loop0: rw=8390657, sector=163, nr_sectors = 1 limit=64 [ 74.402053][ T5316] Buffer I/O error on dev loop0, logical block 163, lost async page write [ 74.402082][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402082][ T5316] loop0: rw=8390657, sector=167, nr_sectors = 1 limit=64 [ 74.402095][ T5316] Buffer I/O error on dev loop0, logical block 167, lost async page write [ 74.402117][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402117][ T5316] loop0: rw=8390657, sector=169, nr_sectors = 1 limit=64 [ 74.402130][ T5316] Buffer I/O error on dev loop0, logical block 169, lost async page write [ 74.402143][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402143][ T5316] loop0: rw=8390657, sector=171, nr_sectors = 1 limit=64 [ 74.402156][ T5316] Buffer I/O error on dev loop0, logical block 171, lost async page write [ 74.402167][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402167][ T5316] loop0: rw=8390657, sector=172, nr_sectors = 1 limit=64 [ 74.402179][ T5316] Buffer I/O error on dev loop0, logical block 172, lost async page write [ 74.402190][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402190][ T5316] loop0: rw=8390657, sector=173, nr_sectors = 1 limit=64 [ 74.402200][ T5316] Buffer I/O error on dev loop0, logical block 173, lost async page write [ 74.402211][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402211][ T5316] loop0: rw=8390657, sector=174, nr_sectors = 1 limit=64 [ 74.402222][ T5316] Buffer I/O error on dev loop0, logical block 174, lost async page write [ 74.402233][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402233][ T5316] loop0: rw=8390657, sector=175, nr_sectors = 1 limit=64 [ 74.402245][ T5316] Buffer I/O error on dev loop0, logical block 175, lost async page write [ 74.402669][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402669][ T5316] loop0: rw=8390657, sector=176, nr_sectors = 1 limit=64 [ 74.402690][ T5316] Buffer I/O error on dev loop0, logical block 176, lost async page write [ 74.402704][ T5316] syz.0.0: attempt to access beyond end of device [ 74.402704][ T5316] loop0: rw=8390657, sector=177, nr_sectors = 1 limit=64 [ 74.402717][ T5316] Buffer I/O error on dev loop0, logical block 177, lost async page write [ 75.295196][ T138] [ 75.296419][ T138] ============================================ [ 75.300108][ T138] WARNING: possible recursive locking detected [ 75.302620][ T138] syzkaller #0 Not tainted [ 75.304487][ T138] -------------------------------------------- [ 75.306998][ T138] kworker/u4:5/138 is trying to acquire lock: [ 75.309498][ T138] ffff888044e7e0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 75.313574][ T138] [ 75.313574][ T138] but task is already holding lock: [ 75.318485][ T138] ffff888044e7e0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 75.322234][ T138] [ 75.322234][ T138] other info that might help us debug this: [ 75.325564][ T138] Possible unsafe locking scenario: [ 75.325564][ T138] [ 75.328685][ T138] CPU0 [ 75.330126][ T138] ---- [ 75.331607][ T138] lock(&tree->tree_lock/1); [ 75.333491][ T138] lock(&tree->tree_lock/1); [ 75.335457][ T138] [ 75.335457][ T138] *** DEADLOCK *** [ 75.335457][ T138] [ 75.339050][ T138] May be due to missing lock nesting notation [ 75.339050][ T138] [ 75.342613][ T138] locks held by kworker/u4:5/138: 5, last CPU#0: [ 75.345340][ T138] #0: ffff88801d375940 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 75.350005][ T138] #1: ffffc9000173fc40 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 [ 75.354693][ T138] #2: ffff88801fa740e8 (&type->s_umount_key#54){.+.+}-{4:4}, at: super_trylock_shared+0x23/0xf0 [ 75.358595][ T138] #3: ffff888044e7e0a8 (&tree->tree_lock/1){+.+.}-{4:4}, at: hfs_find_init+0x18d/0x300 [ 75.362236][ T138] #4: ffff888053e480a0 (&HFS_I(tree->inode)->extents_lock){+.+.}-{4:4}, at: hfs_extend_file+0xf9/0x1680 [ 75.366625][ T138] [ 75.366625][ T138] stack backtrace: [ 75.369222][ T138] CPU: 0 UID: 0 PID: 138 Comm: kworker/u4:5 Not tainted syzkaller #0 PREEMPT(full) [ 75.373150][ T138] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 75.377014][ T138] Workqueue: writeback wb_workfn (flush-7:0) [ 75.379591][ T138] Call Trace: [ 75.381033][ T138] [ 75.382320][ T138] dump_stack_lvl+0xe8/0x150 [ 75.384186][ T138] print_deadlock_bug+0x27a/0x290 [ 75.386329][ T138] __lock_acquire+0x25db/0x2de0 [ 75.388503][ T138] ? _raw_spin_unlock_irqrestore+0x4c/0x80 [ 75.391120][ T138] ? stack_depot_save_flags+0x404/0x7f0 [ 75.393564][ T138] ? kasan_save_track+0x4f/0x80 [ 75.395490][ T138] ? kasan_save_track+0x3e/0x80 [ 75.397400][ T138] ? __kasan_kmalloc+0x93/0xb0 [ 75.399495][ T138] ? __kmalloc_noprof+0x36b/0x720 [ 75.401585][ T138] ? hfs_find_init+0x9d/0x300 [ 75.403411][ T138] ? hfs_extend_file+0x367/0x1680 [ 75.405342][ T138] ? hfs_bmap_reserve+0x108/0x430 [ 75.407368][ T138] ? __hfs_ext_write_extent+0x1fc/0x470 [ 75.409760][ T138] lock_acquire+0x115/0x350 [ 75.411613][ T138] ? hfs_find_init+0x18d/0x300 [ 75.413678][ T138] __mutex_lock+0x19d/0x1550 [ 75.415648][ T138] ? hfs_find_init+0x18d/0x300 [ 75.417516][ T138] ? hfs_find_init+0x18d/0x300 [ 75.419491][ T138] ? __pfx___mutex_lock+0x10/0x10 [ 75.421803][ T138] ? rcu_is_watching+0x16/0xb0 [ 75.426994][ T138] ? trace_kmalloc+0x2a/0xf0 [ 75.428966][ T138] ? __kmalloc_noprof+0x38c/0x720 [ 75.431180][ T138] ? __kmalloc_noprof+0x1ab/0x720 [ 75.433410][ T138] ? hfs_find_init+0x9d/0x300 [ 75.435551][ T138] hfs_find_init+0x18d/0x300 [ 75.437637][ T138] hfs_extend_file+0x367/0x1680 [ 75.439815][ T138] ? __pfx_hfs_extend_file+0x10/0x10 [ 75.442186][ T138] ? _raw_spin_unlock+0x28/0x50 [ 75.444365][ T138] ? hfs_brec_find+0x3db/0x510 [ 75.446492][ T138] hfs_bmap_reserve+0x108/0x430 [ 75.448600][ T138] __hfs_ext_write_extent+0x1fc/0x470 [ 75.450914][ T138] hfs_ext_write_extent+0x17d/0x210 [ 75.453431][ T138] ? __pfx___mpage_writepages+0x10/0x10 [ 75.456192][ T138] ? __pfx_hfs_ext_write_extent+0x10/0x10 [ 75.459251][ T138] hfs_write_inode+0x117/0xa00 [ 75.461610][ T138] ? __pfx_hfs_write_inode+0x10/0x10 [ 75.463977][ T138] ? do_raw_spin_unlock+0x4d/0x200 [ 75.466249][ T138] __writeback_single_inode+0x69d/0x1220 [ 75.468639][ T138] writeback_sb_inodes+0x9de/0x1b00 [ 75.470814][ T138] ? __pfx_writeback_sb_inodes+0x10/0x10 [ 75.473202][ T138] ? irqentry_exit+0x218/0x920 [ 75.475402][ T138] ? __pfx_down_read_trylock+0x10/0x10 [ 75.477959][ T138] __writeback_inodes_wb+0x114/0x240 [ 75.480330][ T138] wb_writeback+0x42f/0xad0 [ 75.482251][ T138] ? queue_io+0x2b1/0x470 [ 75.484119][ T138] ? __pfx_wb_writeback+0x10/0x10 [ 75.486369][ T138] ? do_raw_spin_lock+0x12b/0x2f0 [ 75.489922][ T138] wb_workfn+0x980/0x10f0 [ 75.491802][ T138] ? __pfx_wb_workfn+0x10/0x10 [ 75.493817][ T138] ? lockdep_hardirqs_on+0x7b/0x110 [ 75.496102][ T138] ? do_raw_spin_lock+0x12b/0x2f0 [ 75.498303][ T138] ? lock_acquire+0x115/0x350 [ 75.500365][ T138] ? rcu_is_watching+0x16/0xb0 [ 75.502402][ T138] ? process_scheduled_works+0x97a/0x1630 [ 75.504873][ T138] process_scheduled_works+0xc3d/0x1630 [ 75.507333][ T138] ? __pfx_process_scheduled_works+0x10/0x10 [ 75.509910][ T138] ? assign_work+0x3cf/0x5d0 [ 75.511967][ T138] worker_thread+0xa47/0xfb0 [ 75.513975][ T138] kthread+0x38b/0x480 [ 75.515770][ T138] ? __pfx_worker_thread+0x10/0x10 [ 75.517985][ T138] ? __pfx_kthread+0x10/0x10 [ 75.519819][ T138] ret_from_fork+0x514/0xb70 [ 75.522243][ T138] ? __pfx_ret_from_fork+0x10/0x10 [ 75.524422][ T138] ? __switch_to+0xc89/0x1420 [ 75.526422][ T138] ? __pfx_kthread+0x10/0x10 [ 75.528450][ T138] ret_from_fork_asm+0x1a/0x30 [ 75.530524][ T138] [ 76.169549][ T4650] Bluetooth: hci0: command tx timeout [ 76.811037][ T1333] ieee802154 phy0 wpan0: encryption failed: -22 [ 76.811087][ T1333] ieee802154 phy1 wpan1: encryption failed: -22 [ 78.249486][ T4650] Bluetooth: hci0: command tx timeout [ 80.329205][ T4650] Bluetooth: hci0: command tx timeout