./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3780643435 <...> Warning: Permanently added '10.128.1.48' (ECDSA) to the list of known hosts. execve("./syz-executor3780643435", ["./syz-executor3780643435"], 0x7ffd46bdda00 /* 10 vars */) = 0 brk(NULL) = 0x55555622f000 brk(0x55555622fc40) = 0x55555622fc40 arch_prctl(ARCH_SET_FS, 0x55555622f300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3780643435", 4096) = 28 brk(0x555556250c40) = 0x555556250c40 brk(0x555556251000) = 0x555556251000 mprotect(0x7f838e001000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8385a00000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 524288) = 524288 munmap(0x7f8385a00000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file0", 0777) = 0 mount("/dev/loop0", "./file0", "hfsplus", 0, "") = 0 openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 chdir("./file0") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 open("./file0/file0", O_RDWR|O_CREAT|O_SYNC|O_DIRECT|O_NOATIME|FASYNC, 000) = 4 syzkaller login: [ 55.145404][ T3638] loop0: detected capacity change from 0 to 1024 [ 55.171134][ T26] audit: type=1800 audit(1669338218.708:2): pid=3638 uid=0 auid=4294967295 ses=4294967295 subj=unconfined op=collect_data cause=failed(directio) comm="syz-executor378" name="file0" dev="loop0" ino=18 res=0 errno=0 [ 55.173719][ T3638] [ 55.194179][ T3638] ============================================ [ 55.200328][ T3638] WARNING: possible recursive locking detected [ 55.206483][ T3638] 6.1.0-rc6-syzkaller-00012-g4312098baf37 #0 Not tainted [ 55.213502][ T3638] -------------------------------------------- [ 55.219628][ T3638] syz-executor378/3638 is trying to acquire lock: [ 55.226030][ T3638] ffff888023aa1548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x3a3/0x1560 [ 55.237079][ T3638] [ 55.237079][ T3638] but task is already holding lock: [ 55.244433][ T3638] ffff888023aa3048 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1af/0x19d0 [ 55.255489][ T3638] [ 55.255489][ T3638] other info that might help us debug this: [ 55.263539][ T3638] Possible unsafe locking scenario: [ 55.263539][ T3638] [ 55.270983][ T3638] CPU0 [ 55.274254][ T3638] ---- [ 55.277522][ T3638] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.283328][ T3638] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.289218][ T3638] [ 55.289218][ T3638] *** DEADLOCK *** [ 55.289218][ T3638] [ 55.297382][ T3638] May be due to missing lock nesting notation [ 55.297382][ T3638] [ 55.305683][ T3638] 4 locks held by syz-executor378/3638: [ 55.311212][ T3638] #0: ffff888026644460 (sb_writers#9){.+.+}-{0:0}, at: do_sys_ftruncate+0x24f/0x380 [ 55.320694][ T3638] #1: ffff888023aa3240 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x1e7/0x2e0 [ 55.331151][ T3638] #2: ffff888023aa3048 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1af/0x19d0 [ 55.342657][ T3638] #3: ffff88807743d8f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_allocate+0x9f/0x900 [ 55.353019][ T3638] [ 55.353019][ T3638] stack backtrace: [ 55.358993][ T3638] CPU: 1 PID: 3638 Comm: syz-executor378 Not tainted 6.1.0-rc6-syzkaller-00012-g4312098baf37 #0 [ 55.369853][ T3638] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 55.379916][ T3638] Call Trace: [ 55.383194][ T3638] [ 55.386211][ T3638] dump_stack_lvl+0x1b1/0x28e [ 55.390898][ T3638] ? nf_tcp_handle_invalid+0x62e/0x62e [ 55.396355][ T3638] ? panic+0x710/0x710 [ 55.400416][ T3638] ? lockdep_unlock+0x144/0x2e0 [ 55.405259][ T3638] ? print_tainted+0x141/0x160 [ 55.410015][ T3638] ? lockdep_print_held_locks+0x10f/0x1b0 [ 55.415727][ T3638] validate_chain+0x4843/0x6ae0 [ 55.420574][ T3638] ? stack_trace_save+0x104/0x1e0 [ 55.425592][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.430965][ T3638] ? check_noncircular+0x1aa/0x390 [ 55.436079][ T3638] ? add_chain_block+0x850/0x850 [ 55.441017][ T3638] ? lockdep_unlock+0x144/0x2e0 [ 55.445877][ T3638] ? lockdep_lock+0x290/0x290 [ 55.450552][ T3638] ? add_lock_to_list+0x1c7/0x2d0 [ 55.455574][ T3638] ? validate_chain+0x1478/0x6ae0 [ 55.460597][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.465968][ T3638] ? lockdep_unlock+0x144/0x2e0 [ 55.470812][ T3638] ? lockdep_lock+0x290/0x290 [ 55.475483][ T3638] ? add_lock_to_list+0x1c7/0x2d0 [ 55.480500][ T3638] ? validate_chain+0x1478/0x6ae0 [ 55.485525][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.490901][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.496273][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.501646][ T3638] ? __lock_acquire+0x1f60/0x1f60 [ 55.506672][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.512048][ T3638] ? stack_trace_save+0x1e0/0x1e0 [ 55.517075][ T3638] ? validate_chain+0x177/0x6ae0 [ 55.522004][ T3638] ? arch_stack_walk+0x98/0xe0 [ 55.526756][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.532120][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.537484][ T3638] ? validate_chain+0x177/0x6ae0 [ 55.542415][ T3638] ? stack_trace_save+0x104/0x1e0 [ 55.547431][ T3638] ? stack_trace_snprint+0xf0/0xf0 [ 55.552543][ T3638] ? validate_chain+0x177/0x6ae0 [ 55.557488][ T3638] ? lockdep_lock+0x290/0x290 [ 55.562170][ T3638] ? add_lock_to_list+0x1c7/0x2d0 [ 55.567202][ T3638] ? validate_chain+0x1478/0x6ae0 [ 55.572228][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.577602][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.582965][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.588326][ T3638] ? reacquire_held_locks+0x650/0x650 [ 55.593688][ T3638] ? rcu_lock_release+0x5/0x20 [ 55.598443][ T3638] ? rcu_lock_release+0x5/0x20 [ 55.603194][ T3638] ? lock_release+0x81/0x820 [ 55.607778][ T3638] ? deref_stack_reg+0x17a/0x210 [ 55.612705][ T3638] ? deref_stack_reg+0x17a/0x210 [ 55.617729][ T3638] ? preempt_count_add+0x8d/0x180 [ 55.622856][ T3638] ? is_bpf_text_address+0x253/0x270 [ 55.628147][ T3638] ? stack_trace_save+0x1e0/0x1e0 [ 55.633170][ T3638] ? unwind_get_return_address+0x48/0x80 [ 55.638798][ T3638] ? arch_stack_walk+0x98/0xe0 [ 55.643556][ T3638] ? stack_trace_save+0x104/0x1e0 [ 55.648575][ T3638] ? stack_trace_save+0x1e0/0x1e0 [ 55.653595][ T3638] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.659214][ T3638] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.665188][ T3638] ? rcu_lock_release+0x5/0x20 [ 55.669947][ T3638] ? read_lock_is_recursive+0x10/0x10 [ 55.675326][ T3638] ? rcu_lock_release+0x5/0x20 [ 55.680088][ T3638] ? __lock_acquire+0x1f60/0x1f60 [ 55.685105][ T3638] ? deref_stack_reg+0x17a/0x210 [ 55.690040][ T3638] ? preempt_count_add+0x8d/0x180 [ 55.695064][ T3638] ? register_lock_class+0xc2/0x930 [ 55.700253][ T3638] ? stack_trace_save+0x1e0/0x1e0 [ 55.705269][ T3638] ? is_bpf_text_address+0x253/0x270 [ 55.710541][ T3638] ? is_dynamic_key+0x1f0/0x1f0 [ 55.715389][ T3638] ? mark_lock+0x9a/0x350 [ 55.719708][ T3638] __lock_acquire+0x1292/0x1f60 [ 55.724552][ T3638] lock_acquire+0x182/0x3c0 [ 55.729045][ T3638] ? hfsplus_get_block+0x3a3/0x1560 [ 55.734237][ T3638] ? read_lock_is_recursive+0x10/0x10 [ 55.739596][ T3638] ? __might_sleep+0xc0/0xc0 [ 55.744185][ T3638] ? register_lock_class+0xc2/0x930 [ 55.749368][ T3638] ? alloc_page_buffers+0x179/0x460 [ 55.754569][ T3638] ? create_empty_buffers+0x36/0xe30 [ 55.759842][ T3638] ? create_page_buffers+0x1c8/0x4b0 [ 55.765122][ T3638] ? block_read_full_folio+0x177/0xfa0 [ 55.770572][ T3638] ? filemap_read_folio+0x187/0x7d0 [ 55.775756][ T3638] ? read_cache_page+0x56/0x270 [ 55.780594][ T3638] ? hfsplus_block_allocate+0xf9/0x900 [ 55.786049][ T3638] ? is_dynamic_key+0x1f0/0x1f0 [ 55.790887][ T3638] ? block_write_begin+0x93/0x1e0 [ 55.795992][ T3638] __mutex_lock_common+0x1bd/0x26e0 [ 55.801184][ T3638] ? hfsplus_get_block+0x3a3/0x1560 [ 55.806372][ T3638] ? __lock_acquire+0x1292/0x1f60 [ 55.811384][ T3638] ? hfsplus_get_block+0x3a3/0x1560 [ 55.816573][ T3638] ? mutex_lock_io_nested+0x60/0x60 [ 55.821763][ T3638] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.827386][ T3638] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.833441][ T3638] ? create_page_buffers+0x1c8/0x4b0 [ 55.838733][ T3638] ? trace_lock_release+0x95/0x220 [ 55.843850][ T3638] mutex_lock_nested+0x17/0x20 [ 55.848617][ T3638] hfsplus_get_block+0x3a3/0x1560 [ 55.853641][ T3638] ? __lock_acquire+0x1f60/0x1f60 [ 55.858662][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.864378][ T3638] ? do_raw_spin_unlock+0x134/0x8a0 [ 55.869573][ T3638] ? create_page_buffers+0x244/0x4b0 [ 55.874856][ T3638] block_read_full_folio+0x3b3/0xfa0 [ 55.880140][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.885853][ T3638] ? block_is_partially_uptodate+0x620/0x620 [ 55.891826][ T3638] ? folio_add_lru+0x480/0x960 [ 55.896579][ T3638] filemap_read_folio+0x187/0x7d0 [ 55.901598][ T3638] ? hfsplus_writepage+0x30/0x30 [ 55.906526][ T3638] ? maybe_unlock_mmap_for_io+0x130/0x130 [ 55.912233][ T3638] ? filemap_alloc_folio+0x1ac/0x1c0 [ 55.917524][ T3638] do_read_cache_folio+0x2d3/0x790 [ 55.922627][ T3638] ? hfsplus_writepage+0x30/0x30 [ 55.927556][ T3638] read_cache_page+0x56/0x270 [ 55.932224][ T3638] hfsplus_block_allocate+0xf9/0x900 [ 55.937508][ T3638] hfsplus_file_extend+0x9d4/0x19d0 [ 55.942697][ T3638] ? hfsplus_get_block+0x1560/0x1560 [ 55.947984][ T3638] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 55.953973][ T3638] ? print_irqtrace_events+0x220/0x220 [ 55.959429][ T3638] ? submit_bio_noacct_nocheck+0xfb3/0x1050 [ 55.965325][ T3638] hfsplus_get_block+0x415/0x1560 [ 55.970351][ T3638] ? should_fail_request+0x70/0x70 [ 55.975478][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.981203][ T3638] ? submit_bio_noacct+0xf50/0x1880 [ 55.986406][ T3638] __block_write_begin_int+0x54c/0x1a80 [ 55.991975][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.997696][ T3638] ? page_zero_new_buffers+0x940/0x940 [ 56.003155][ T3638] ? PageHeadHuge+0x8a/0x1d0 [ 56.007756][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 56.013471][ T3638] block_write_begin+0x93/0x1e0 [ 56.018325][ T3638] ? cont_write_begin+0x5e5/0x860 [ 56.023352][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 56.029075][ T3638] cont_write_begin+0x606/0x860 [ 56.033931][ T3638] ? generic_cont_expand_simple+0x250/0x250 [ 56.039817][ T3638] ? rcu_read_lock_sched_held+0x87/0x110 [ 56.045436][ T3638] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 56.051405][ T3638] hfsplus_write_begin+0x86/0xd0 [ 56.056331][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 56.062042][ T3638] cont_write_begin+0x2cf/0x860 [ 56.066909][ T3638] ? generic_cont_expand_simple+0x250/0x250 [ 56.072806][ T3638] ? ktime_get_coarse_real_ts64+0x45/0x140 [ 56.078613][ T3638] ? lockdep_hardirqs_on+0x8d/0x130 [ 56.083812][ T3638] ? seqcount_lockdep_reader_access+0x1a2/0x1f0 [ 56.090048][ T3638] ? ktime_get_real_ts64+0x4b0/0x4b0 [ 56.095325][ T3638] hfsplus_write_begin+0x86/0xd0 [ 56.100252][ T3638] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 56.105962][ T3638] generic_cont_expand_simple+0x151/0x250 [ 56.111672][ T3638] ? submit_bh+0x20/0x20 [ 56.115908][ T3638] ? current_time+0x1d7/0x300 [ 56.120571][ T3638] ? setattr_prepare+0x210/0xd00 [ 56.125507][ T3638] hfsplus_setattr+0x168/0x280 [ 56.130260][ T3638] ? hfsplus_fileattr_set+0x330/0x330 [ 56.135621][ T3638] notify_change+0xe38/0x10f0 [ 56.140296][ T3638] do_truncate+0x1fb/0x2e0 [ 56.144700][ T3638] ? put_page_bootmem+0x2d0/0x2d0 [ 56.149717][ T3638] ? bpf_lsm_path_truncate+0x5/0x10 [ 56.154912][ T3638] do_sys_ftruncate+0x2eb/0x380 [ 56.159750][ T3638] do_syscall_64+0x3d/0xb0 [ 56.164152][ T3638] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.170034][ T3638] RIP: 0033:0x7f838df947c9 [ 56.174434][ T3638] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 ftruncate(4, 33587199) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [ 56.194026][ T3638] RSP: 002b:00007fffb8a18448 EFLAGS: 00000246 ORIG