./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1535676269 <...> Warning: Permanently added '10.128.1.191' (ECDSA) to the list of known hosts. execve("./syz-executor1535676269", ["./syz-executor1535676269"], 0x7ffca5acf850 /* 10 vars */) = 0 brk(NULL) = 0x5555555c5000 brk(0x5555555c5c40) = 0x5555555c5c40 arch_prctl(ARCH_SET_FS, 0x5555555c5300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1535676269", 4096) = 28 brk(0x5555555e6c40) = 0x5555555e6c40 brk(0x5555555e7000) = 0x5555555e7000 mprotect(0x7fd41343d000, 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) = 0x7fd40af84000 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(0x7fd40af84000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./bus", 0777) = 0 mount("/dev/loop0", "./bus", "hfsplus", MS_SYNCHRONOUS|MS_MANDLOCK, "") = 0 openat(AT_FDCWD, "./bus", O_RDONLY|O_DIRECTORY) = 3 chdir("./bus") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME|FASYNC, 000) = 4 creat(NULL, 000) = -1 EFAULT (Bad address) [ 52.103684][ T5067] loop0: detected capacity change from 0 to 1024 [ 52.112805][ T5067] ======================================================= [ 52.112805][ T5067] WARNING: The mand mount option has been deprecated and [ 52.112805][ T5067] and is ignored by this kernel. Remove the mand [ 52.112805][ T5067] option from the mount to silence this warning. [ 52.112805][ T5067] ======================================================= [ 52.184352][ T5067] [ 52.186707][ T5067] ============================================ [ 52.192833][ T5067] WARNING: possible recursive locking detected [ 52.198977][ T5067] 6.1.0-syzkaller-13822-g6feb57c2fd7c #0 Not tainted [ 52.205622][ T5067] -------------------------------------------- [ 52.211747][ T5067] syz-executor153/5067 is trying to acquire lock: [ 52.218135][ T5067] ffff8880750a8108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1af/0x19d0 [ 52.229167][ T5067] [ 52.229167][ T5067] but task is already holding lock: [ 52.236510][ T5067] ffff8880750aa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1af/0x19d0 [ 52.247525][ T5067] [ 52.247525][ T5067] other info that might help us debug this: [ 52.255560][ T5067] Possible unsafe locking scenario: [ 52.255560][ T5067] [ 52.263005][ T5067] CPU0 [ 52.266276][ T5067] ---- [ 52.269533][ T5067] lock(&HFSPLUS_I(inode)->extents_lock); [ 52.275318][ T5067] lock(&HFSPLUS_I(inode)->extents_lock); [ 52.281102][ T5067] [ 52.281102][ T5067] *** DEADLOCK *** [ 52.281102][ T5067] [ 52.289236][ T5067] May be due to missing lock nesting notation [ 52.289236][ T5067] [ 52.297532][ T5067] 4 locks held by syz-executor153/5067: [ 52.303068][ T5067] #0: ffff88802b4c6460 (sb_writers#9){.+.+}-{0:0}, at: do_sys_ftruncate+0x243/0x350 [ 52.312547][ T5067] #1: ffff8880750aab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x1ec/0x2f0 [ 52.322867][ T5067] #2: ffff8880750aa988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1af/0x19d0 [ 52.334315][ T5067] #3: ffff88802b4440b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x143/0x1b0 [ 52.344381][ T5067] [ 52.344381][ T5067] stack backtrace: [ 52.350258][ T5067] CPU: 0 PID: 5067 Comm: syz-executor153 Not tainted 6.1.0-syzkaller-13822-g6feb57c2fd7c #0 [ 52.360292][ T5067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 52.370324][ T5067] Call Trace: [ 52.373583][ T5067] [ 52.376501][ T5067] dump_stack_lvl+0x1b1/0x290 [ 52.381174][ T5067] ? nf_tcp_handle_invalid+0x630/0x630 [ 52.386615][ T5067] ? panic+0x710/0x710 [ 52.390659][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.395489][ T5067] ? print_tainted+0x141/0x160 [ 52.400242][ T5067] ? lockdep_print_held_locks+0x10f/0x1b0 [ 52.405941][ T5067] validate_chain+0x4843/0x6ae0 [ 52.410775][ T5067] ? stack_trace_save+0x1e0/0x1e0 [ 52.415780][ T5067] ? stack_trace_save+0x1e0/0x1e0 [ 52.420788][ T5067] ? kernel_text_address+0x9e/0xd0 [ 52.425879][ T5067] ? __kernel_text_address+0x9/0x40 [ 52.431062][ T5067] ? unwind_get_return_address+0x48/0x80 [ 52.436674][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.442024][ T5067] ? arch_stack_walk+0x98/0xe0 [ 52.446767][ T5067] ? stack_trace_save+0x104/0x1e0 [ 52.451858][ T5067] ? stack_trace_snprint+0xf0/0xf0 [ 52.456948][ T5067] ? check_noncircular+0x1aa/0x390 [ 52.462039][ T5067] ? add_chain_block+0x850/0x850 [ 52.466973][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.471823][ T5067] ? lockdep_lock+0x290/0x290 [ 52.476480][ T5067] ? add_lock_to_list+0x1c7/0x2d0 [ 52.481494][ T5067] ? validate_chain+0x1478/0x6ae0 [ 52.486505][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.491858][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.497211][ T5067] ? stack_trace_save+0x104/0x1e0 [ 52.502216][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.507566][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.512492][ T5067] ? add_chain_block+0x850/0x850 [ 52.517408][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.522331][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.527164][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.532092][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.537007][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.542360][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.547278][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.552632][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.557991][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.562909][ T5067] ? check_path+0x40/0x40 [ 52.567219][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.572568][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.577492][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.582847][ T5067] ? check_path+0x21/0x40 [ 52.587157][ T5067] ? check_noncircular+0x1aa/0x390 [ 52.592248][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.597599][ T5067] ? add_chain_block+0x850/0x850 [ 52.602517][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.607870][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.612705][ T5067] ? _find_first_zero_bit+0xe8/0x110 [ 52.617970][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.622887][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.628240][ T5067] ? validate_chain+0x177/0x6ae0 [ 52.633169][ T5067] ? trace_lock_release+0x95/0x220 [ 52.638260][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.643616][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.648967][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.654320][ T5067] ? reacquire_held_locks+0x650/0x650 [ 52.659674][ T5067] ? lockdep_hardirqs_on_prepare+0x428/0x790 [ 52.665632][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.671243][ T5067] ? mark_lock+0x9a/0x350 [ 52.675552][ T5067] ? __lock_acquire+0x1292/0x1f60 [ 52.680559][ T5067] ? rcu_preempt_deferred_qs_irqrestore+0x849/0xc10 [ 52.687128][ T5067] ? mark_lock+0x9a/0x350 [ 52.691441][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.697747][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.703726][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.709343][ T5067] ? stack_trace_save+0x1e0/0x1e0 [ 52.714349][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.719975][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.725962][ T5067] ? rcu_lock_release+0x5/0x20 [ 52.730722][ T5067] ? trace_lock_release+0x95/0x220 [ 52.735820][ T5067] ? rcu_lock_release+0x5/0x20 [ 52.740567][ T5067] ? lock_release+0x81/0x820 [ 52.745137][ T5067] ? register_lock_class+0xc2/0x930 [ 52.750338][ T5067] ? __lock_acquire+0x1f60/0x1f60 [ 52.755341][ T5067] ? is_dynamic_key+0x1f0/0x1f0 [ 52.760170][ T5067] ? mark_lock+0x9a/0x350 [ 52.764498][ T5067] __lock_acquire+0x1292/0x1f60 [ 52.769331][ T5067] lock_acquire+0x182/0x3c0 [ 52.773820][ T5067] ? hfsplus_file_extend+0x1af/0x19d0 [ 52.779175][ T5067] ? read_lock_is_recursive+0x10/0x10 [ 52.784550][ T5067] ? __might_sleep+0xc0/0xc0 [ 52.789134][ T5067] ? stack_trace_save+0x104/0x1e0 [ 52.794173][ T5067] ? stack_trace_snprint+0xf0/0xf0 [ 52.799289][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.804178][ T5067] ? lockdep_lock+0x290/0x290 [ 52.808842][ T5067] __mutex_lock_common+0x1bd/0x26e0 [ 52.814022][ T5067] ? hfsplus_file_extend+0x1af/0x19d0 [ 52.819378][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 52.824208][ T5067] ? lockdep_lock+0x290/0x290 [ 52.828868][ T5067] ? hfsplus_file_extend+0x1af/0x19d0 [ 52.834233][ T5067] ? mark_lock+0x2a1/0x350 [ 52.838637][ T5067] ? mutex_lock_io_nested+0x60/0x60 [ 52.843819][ T5067] ? __lock_acquire+0x1292/0x1f60 [ 52.848836][ T5067] mutex_lock_nested+0x17/0x20 [ 52.853601][ T5067] hfsplus_file_extend+0x1af/0x19d0 [ 52.858795][ T5067] ? hfsplus_get_block+0x1560/0x1560 [ 52.864062][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 52.869676][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 52.875645][ T5067] ? trace_raw_output_contention_end+0xd0/0xd0 [ 52.881789][ T5067] ? hfsplus_find_init+0x80/0x1b0 [ 52.886799][ T5067] ? trace_contention_end+0x72/0x1d0 [ 52.892067][ T5067] ? __mutex_lock_common+0x45f/0x26e0 [ 52.897420][ T5067] ? hfsplus_brec_find+0x15f/0x520 [ 52.902531][ T5067] hfsplus_bmap_reserve+0x123/0x500 [ 52.907718][ T5067] __hfsplus_ext_write_extent+0x28e/0x590 [ 52.913417][ T5067] __hfsplus_ext_cache_extent+0x8d/0x810 [ 52.919029][ T5067] ? mutex_lock_nested+0x17/0x20 [ 52.923947][ T5067] hfsplus_file_extend+0x3cc/0x19d0 [ 52.929128][ T5067] ? hfsplus_get_block+0x1560/0x1560 [ 52.934396][ T5067] ? lru_cache_disable+0x30/0x30 [ 52.939311][ T5067] ? __might_sleep+0xc0/0xc0 [ 52.943901][ T5067] hfsplus_get_block+0x415/0x1560 [ 52.948911][ T5067] ? create_empty_buffers+0xe30/0xe30 [ 52.954275][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 52.959975][ T5067] ? do_raw_spin_unlock+0x134/0x8a0 [ 52.965153][ T5067] ? folio_alloc+0x47/0x50 [ 52.969552][ T5067] ? create_page_buffers+0x244/0x4b0 [ 52.974821][ T5067] __block_write_begin_int+0x54c/0x1a80 [ 52.980353][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 52.986056][ T5067] ? page_zero_new_buffers+0x940/0x940 [ 52.991494][ T5067] ? PageHeadHuge+0x8a/0x1d0 [ 52.996069][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 53.001770][ T5067] block_write_begin+0x93/0x1e0 [ 53.006600][ T5067] ? cont_write_begin+0x5e5/0x860 [ 53.011604][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 53.017302][ T5067] cont_write_begin+0x606/0x860 [ 53.022138][ T5067] ? generic_cont_expand_simple+0x250/0x250 [ 53.028010][ T5067] ? trace_writeback_dirty_inode+0xdf/0x2b0 [ 53.033885][ T5067] ? __mark_inode_dirty+0x24a/0x600 [ 53.039063][ T5067] hfsplus_write_begin+0x86/0xd0 [ 53.043982][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 53.049684][ T5067] cont_write_begin+0x2cf/0x860 [ 53.054519][ T5067] ? generic_cont_expand_simple+0x250/0x250 [ 53.060394][ T5067] ? ktime_get_coarse_real_ts64+0x45/0x140 [ 53.066188][ T5067] ? lockdep_hardirqs_on+0x8d/0x130 [ 53.071393][ T5067] ? seqcount_lockdep_reader_access+0x1a2/0x1f0 [ 53.077617][ T5067] ? ktime_get_real_ts64+0x4b0/0x4b0 [ 53.082885][ T5067] hfsplus_write_begin+0x86/0xd0 [ 53.087804][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 53.093505][ T5067] generic_cont_expand_simple+0x151/0x250 [ 53.099270][ T5067] ? submit_bh+0x20/0x20 [ 53.103500][ T5067] ? current_time+0x1ea/0x300 [ 53.108155][ T5067] ? setattr_prepare+0x1fc/0xc10 [ 53.113074][ T5067] hfsplus_setattr+0x168/0x280 [ 53.117819][ T5067] ? hfsplus_fileattr_set+0x330/0x330 [ 53.123169][ T5067] notify_change+0xe50/0x1100 [ 53.127835][ T5067] do_truncate+0x200/0x2f0 [ 53.132227][ T5067] ? put_page_bootmem+0x2d0/0x2d0 [ 53.137232][ T5067] do_sys_ftruncate+0x2b0/0x350 [ 53.142068][ T5067] do_syscall_64+0x3d/0xb0 [ 53.146468][ T5067] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.152346][ T5067] RIP: 0033:0x7fd4133d0799 [ 53.156742][ T5067] 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 [ 53.176504][ T5067] RSP: 002b:00007fff1f3c3e78 EFLAGS: 00000246 ORIG_RAX: 000000000000004d ftruncate(4, 33587195) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [ 53.184893][ T5067] RAX: ffffffffffffffda