./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor474920074 <...> forked to background, child pid 4640 no interfaces have a carrier [ 28.960650][ T4641] 8021q: adding VLAN 0 to HW filter on device bond0 [ 28.972763][ T4641] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.54' (ECDSA) to the list of known hosts. execve("./syz-executor474920074", ["./syz-executor474920074"], 0x7ffdc2ff10b0 /* 10 vars */) = 0 brk(NULL) = 0x555556d75000 brk(0x555556d75c40) = 0x555556d75c40 arch_prctl(ARCH_SET_FS, 0x555556d75300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor474920074", 4096) = 27 brk(0x555556d96c40) = 0x555556d96c40 brk(0x555556d97000) = 0x555556d97000 mprotect(0x7fac2368e000, 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) = 0x7fac1b1d5000 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(0x7fac1b1d5000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./file1", 0777) = 0 mount("/dev/loop0", "./file1", "hfsplus", MS_POSIXACL|MS_LAZYTIME, "") = 0 openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 chdir("./file1") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 syzkaller login: [ 53.199724][ T5068] loop0: detected capacity change from 0 to 1024 [ 53.222190][ T5068] hfsplus: xattr searching failed [ 53.228769][ T5068] [ 53.231107][ T5068] ============================================ [ 53.237259][ T5068] WARNING: possible recursive locking detected [ 53.243395][ T5068] 6.1.0-syzkaller-14446-g8395ae05cb5a #0 Not tainted [ 53.250051][ T5068] -------------------------------------------- [ 53.256266][ T5068] syz-executor474/5068 is trying to acquire lock: [ 53.262653][ T5068] ffff88807a049548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x27b/0x9b0 [ 53.273624][ T5068] [ 53.273624][ T5068] but task is already holding lock: [ 53.280975][ T5068] ffff888078540108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10d0 [ 53.292204][ T5068] [ 53.292204][ T5068] other info that might help us debug this: [ 53.300246][ T5068] Possible unsafe locking scenario: [ 53.300246][ T5068] [ 53.307677][ T5068] CPU0 [ 53.310939][ T5068] ---- [ 53.314200][ T5068] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.320079][ T5068] lock(&HFSPLUS_I(inode)->extents_lock); [ 53.325897][ T5068] [ 53.325897][ T5068] *** DEADLOCK *** [ 53.325897][ T5068] [ 53.334143][ T5068] May be due to missing lock nesting notation [ 53.334143][ T5068] [ 53.342706][ T5068] 4 locks held by syz-executor474/5068: [ 53.348250][ T5068] #0: ffff88802a0f6460 (sb_writers#9){.+.+}-{0:0}, at: path_openat+0x19b3/0x2a50 [ 53.357475][ T5068] #1: ffff888078540300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x131/0x200 [ 53.367917][ T5068] #2: ffff888078540108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10d0 [ 53.379672][ T5068] #3: ffff88802a9618f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xdd/0x500 [ 53.390027][ T5068] [ 53.390027][ T5068] stack backtrace: [ 53.395923][ T5068] CPU: 0 PID: 5068 Comm: syz-executor474 Not tainted 6.1.0-syzkaller-14446-g8395ae05cb5a #0 [ 53.406249][ T5068] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 53.416304][ T5068] Call Trace: [ 53.419574][ T5068] [ 53.422669][ T5068] dump_stack_lvl+0xd1/0x138 [ 53.427606][ T5068] __lock_acquire.cold+0x116/0x3a7 [ 53.432916][ T5068] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 53.438900][ T5068] ? save_trace+0x43/0xad0 [ 53.443481][ T5068] ? create_page_buffers+0x440/0x640 [ 53.448843][ T5068] lock_acquire+0x1e3/0x630 [ 53.453330][ T5068] ? hfsplus_get_block+0x27b/0x9b0 [ 53.458435][ T5068] ? lock_release+0x810/0x810 [ 53.463100][ T5068] __mutex_lock+0x12f/0x1360 [ 53.467688][ T5068] ? hfsplus_get_block+0x27b/0x9b0 [ 53.472792][ T5068] ? hfsplus_get_block+0x27b/0x9b0 [ 53.477892][ T5068] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 53.483431][ T5068] ? find_held_lock+0x2d/0x110 [ 53.488189][ T5068] ? create_page_buffers+0x440/0x640 [ 53.493548][ T5068] ? lock_downgrade+0x6e0/0x6e0 [ 53.498388][ T5068] hfsplus_get_block+0x27b/0x9b0 [ 53.503408][ T5068] block_read_full_folio+0x35b/0x9d0 [ 53.508960][ T5068] ? hfsplus_file_extend+0xf60/0xf60 [ 53.514322][ T5068] ? create_page_buffers+0x640/0x640 [ 53.519690][ T5068] ? folio_flags.constprop.0+0x53/0x150 [ 53.525241][ T5068] ? folio_add_lru+0x37b/0x680 [ 53.530010][ T5068] ? hfsplus_bmap+0x30/0x30 [ 53.534600][ T5068] filemap_read_folio+0xdb/0x2c0 [ 53.540413][ T5068] ? __folio_lock_killable+0x20/0x20 [ 53.545695][ T5068] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 53.551243][ T5068] ? __mutex_lock+0x231/0x1360 [ 53.556011][ T5068] do_read_cache_folio+0x1df/0x510 [ 53.561158][ T5068] ? hfsplus_bmap+0x30/0x30 [ 53.565675][ T5068] read_cache_page+0x5d/0x160 [ 53.570363][ T5068] hfsplus_block_free+0x13d/0x500 [ 53.575402][ T5068] ? hfsplus_find_init+0x95/0x230 [ 53.580437][ T5068] hfsplus_free_extents+0x1ff/0x4f0 [ 53.585633][ T5068] hfsplus_file_truncate+0xe36/0x10d0 [ 53.591019][ T5068] ? hfsplus_get_block+0x9b0/0x9b0 [ 53.596207][ T5068] ? unmap_mapping_pages+0x270/0x270 [ 53.601528][ T5068] ? setattr_prepare+0x13c/0xc30 [ 53.606745][ T5068] hfsplus_setattr+0x1f2/0x320 [ 53.611518][ T5068] ? hfsplus_file_fsync+0x5b0/0x5b0 [ 53.616731][ T5068] notify_change+0xca7/0x1420 [ 53.621503][ T5068] ? do_truncate+0x143/0x200 [ 53.626384][ T5068] do_truncate+0x143/0x200 [ 53.630889][ T5068] ? file_open_root+0x430/0x430 [ 53.635756][ T5068] ? process_measurement+0x18b0/0x18b0 [ 53.641223][ T5068] ? hfsplus_getattr+0x2e0/0x2e0 [ 53.646184][ T5068] path_openat+0x2157/0x2a50 [ 53.650775][ T5068] ? path_lookupat+0x840/0x840 [ 53.655535][ T5068] do_filp_open+0x1ba/0x410 [ 53.660036][ T5068] ? may_open_dev+0xf0/0xf0 [ 53.664714][ T5068] ? find_held_lock+0x2d/0x110 [ 53.669660][ T5068] ? do_raw_spin_lock+0x124/0x2b0 [ 53.674849][ T5068] ? rwlock_bug.part.0+0x90/0x90 [ 53.679794][ T5068] ? _raw_spin_unlock+0x28/0x40 [ 53.684723][ T5068] ? alloc_fd+0x2d8/0x6d0 [ 53.689060][ T5068] do_sys_openat2+0x16d/0x4c0 [ 53.693727][ T5068] ? find_held_lock+0x2d/0x110 [ 53.698950][ T5068] ? build_open_flags+0x6f0/0x6f0 [ 53.704681][ T5068] ? ptrace_notify+0xfe/0x140 [ 53.709348][ T5068] ? lock_downgrade+0x6e0/0x6e0 [ 53.714192][ T5068] __x64_sys_creat+0xcd/0x120 [ 53.718961][ T5068] ? __x64_compat_sys_openat+0x1f0/0x1f0 [ 53.724757][ T5068] ? _raw_spin_unlock_irq+0x2e/0x50 [ 53.730035][ T5068] ? ptrace_notify+0xfe/0x140 [ 53.734724][ T5068] ? syscall_trace_enter.constprop.0+0xb0/0x250 [ 53.740966][ T5068] do_syscall_64+0x39/0xb0 [ 53.745410][ T5068] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 53.751315][ T5068] RIP: 0033:0x7fac23621759 [ 53.755723][ T5068] 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.775773][ T5068] RSP: 002b:00007ffca16aee58 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 53.784629][ T5068] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007fac23621759 [ 53.793350][ T5068] RDX: 00007fac235dfdd3 RSI: 0000000000000000 RDI: 0000000020000000 creat("./file1", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 53.801570]