./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3659261970 <...> forked to background, child pid 4641 no interfaces have a carrier [ 27.476661][ T4642] 8021q: adding VLAN 0 to HW filter on device bond0 [ 27.488320][ T4642] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.1.100' (ECDSA) to the list of known hosts. execve("./syz-executor3659261970", ["./syz-executor3659261970"], 0x7fffde517e60 /* 10 vars */) = 0 brk(NULL) = 0x555556cd6000 brk(0x555556cd6c40) = 0x555556cd6c40 arch_prctl(ARCH_SET_FS, 0x555556cd6300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3659261970", 4096) = 28 brk(0x555556cf7c40) = 0x555556cf7c40 brk(0x555556cf8000) = 0x555556cf8000 mprotect(0x7f41d4b5b000, 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) = 0x7f41cc6a2000 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(0x7f41cc6a2000, 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: [ 47.229347][ T5062] loop0: detected capacity change from 0 to 1024 [ 47.249182][ T5062] hfsplus: xattr searching failed [ 47.254975][ T5062] [ 47.257309][ T5062] ============================================ [ 47.263449][ T5062] WARNING: possible recursive locking detected [ 47.269571][ T5062] 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 Not tainted [ 47.276590][ T5062] -------------------------------------------- [ 47.282715][ T5062] syz-executor365/5062 is trying to acquire lock: [ 47.289100][ T5062] ffff88801de81548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x27b/0x9b0 [ 47.299884][ T5062] [ 47.299884][ T5062] but task is already holding lock: [ 47.307222][ T5062] ffff888028e50108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10d0 [ 47.318417][ T5062] [ 47.318417][ T5062] other info that might help us debug this: [ 47.326456][ T5062] Possible unsafe locking scenario: [ 47.326456][ T5062] [ 47.333885][ T5062] CPU0 [ 47.337143][ T5062] ---- [ 47.340407][ T5062] lock(&HFSPLUS_I(inode)->extents_lock); [ 47.346199][ T5062] lock(&HFSPLUS_I(inode)->extents_lock); [ 47.351989][ T5062] [ 47.351989][ T5062] *** DEADLOCK *** [ 47.351989][ T5062] [ 47.360135][ T5062] May be due to missing lock nesting notation [ 47.360135][ T5062] [ 47.368433][ T5062] 4 locks held by syz-executor365/5062: [ 47.373959][ T5062] #0: ffff88802a72a460 (sb_writers#9){.+.+}-{0:0}, at: path_openat+0x19b3/0x2a50 [ 47.383183][ T5062] #1: ffff888028e50300 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x131/0x200 [ 47.393532][ T5062] #2: ffff888028e50108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x205/0x10d0 [ 47.405177][ T5062] #3: ffff88802a3200f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xdd/0x500 [ 47.415182][ T5062] [ 47.415182][ T5062] stack backtrace: [ 47.421049][ T5062] CPU: 1 PID: 5062 Comm: syz-executor365 Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0 [ 47.431444][ T5062] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 47.441482][ T5062] Call Trace: [ 47.444745][ T5062] [ 47.447661][ T5062] dump_stack_lvl+0xd1/0x138 [ 47.452244][ T5062] __lock_acquire.cold+0x116/0x3a7 [ 47.457345][ T5062] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 47.463312][ T5062] ? save_trace+0x43/0xad0 [ 47.467723][ T5062] ? create_page_buffers+0x440/0x640 [ 47.473007][ T5062] lock_acquire+0x1e3/0x630 [ 47.477499][ T5062] ? hfsplus_get_block+0x27b/0x9b0 [ 47.482605][ T5062] ? lock_release+0x810/0x810 [ 47.487272][ T5062] __mutex_lock+0x12f/0x1360 [ 47.491857][ T5062] ? hfsplus_get_block+0x27b/0x9b0 [ 47.496958][ T5062] ? hfsplus_get_block+0x27b/0x9b0 [ 47.502063][ T5062] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 47.507601][ T5062] ? find_held_lock+0x2d/0x110 [ 47.512359][ T5062] ? create_page_buffers+0x440/0x640 [ 47.517631][ T5062] ? lock_downgrade+0x6e0/0x6e0 [ 47.522467][ T5062] hfsplus_get_block+0x27b/0x9b0 [ 47.527398][ T5062] block_read_full_folio+0x35b/0x9d0 [ 47.532690][ T5062] ? hfsplus_file_extend+0xf60/0xf60 [ 47.537964][ T5062] ? create_page_buffers+0x640/0x640 [ 47.543238][ T5062] ? folio_flags.constprop.0+0x53/0x150 [ 47.548774][ T5062] ? folio_add_lru+0x37b/0x680 [ 47.553528][ T5062] ? hfsplus_bmap+0x30/0x30 [ 47.558017][ T5062] filemap_read_folio+0xdb/0x2c0 [ 47.562943][ T5062] ? __folio_lock_killable+0x20/0x20 [ 47.568301][ T5062] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 47.573838][ T5062] ? __mutex_lock+0x231/0x1360 [ 47.578597][ T5062] do_read_cache_folio+0x1df/0x510 [ 47.583701][ T5062] ? hfsplus_bmap+0x30/0x30 [ 47.588192][ T5062] read_cache_page+0x5d/0x160 [ 47.592872][ T5062] hfsplus_block_free+0x13d/0x500 [ 47.597889][ T5062] ? hfsplus_find_init+0x95/0x230 [ 47.602905][ T5062] hfsplus_free_extents+0x1ff/0x4f0 [ 47.608096][ T5062] hfsplus_file_truncate+0xe36/0x10d0 [ 47.613463][ T5062] ? hfsplus_get_block+0x9b0/0x9b0 [ 47.618566][ T5062] ? unmap_mapping_pages+0x270/0x270 [ 47.623842][ T5062] ? setattr_prepare+0x13c/0xc30 [ 47.628774][ T5062] hfsplus_setattr+0x1f2/0x320 [ 47.633527][ T5062] ? hfsplus_file_fsync+0x5b0/0x5b0 [ 47.638712][ T5062] notify_change+0xca7/0x1420 [ 47.643385][ T5062] ? do_truncate+0x143/0x200 [ 47.647966][ T5062] do_truncate+0x143/0x200 [ 47.652378][ T5062] ? file_open_root+0x430/0x430 [ 47.657228][ T5062] ? process_measurement+0x18b0/0x18b0 [ 47.662694][ T5062] ? hfsplus_getattr+0x2e0/0x2e0 [ 47.667634][ T5062] path_openat+0x2157/0x2a50 [ 47.672220][ T5062] ? ___slab_alloc+0x901/0x1400 [ 47.677056][ T5062] ? path_lookupat+0x840/0x840 [ 47.681814][ T5062] do_filp_open+0x1ba/0x410 [ 47.686308][ T5062] ? may_open_dev+0xf0/0xf0 [ 47.690800][ T5062] ? find_held_lock+0x2d/0x110 [ 47.695560][ T5062] ? do_raw_spin_lock+0x124/0x2b0 [ 47.700573][ T5062] ? rwlock_bug.part.0+0x90/0x90 [ 47.705497][ T5062] ? _raw_spin_unlock+0x28/0x40 [ 47.710335][ T5062] ? alloc_fd+0x2d8/0x6d0 [ 47.714652][ T5062] do_sys_openat2+0x16d/0x4c0 [ 47.719311][ T5062] ? find_held_lock+0x2d/0x110 [ 47.724065][ T5062] ? build_open_flags+0x6f0/0x6f0 [ 47.729073][ T5062] ? ptrace_notify+0xfe/0x140 [ 47.733737][ T5062] ? lock_downgrade+0x6e0/0x6e0 [ 47.738663][ T5062] __x64_sys_creat+0xcd/0x120 [ 47.743325][ T5062] ? __x64_compat_sys_openat+0x1f0/0x1f0 [ 47.748942][ T5062] ? _raw_spin_unlock_irq+0x2e/0x50 [ 47.754133][ T5062] ? ptrace_notify+0xfe/0x140 [ 47.758795][ T5062] ? syscall_trace_enter.constprop.0+0xb0/0x250 [ 47.765024][ T5062] do_syscall_64+0x39/0xb0 [ 47.769433][ T5062] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.775311][ T5062] RIP: 0033:0x7f41d4aee759 [ 47.779709][ T5062] 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 [ 47.799307][ T5062] RSP: 002b:00007ffcc7020138 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 47.807706][ T5062] RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f41d4aee759 [ 47.815663][ T5062] RDX: 00007f41d4aacdd3 RSI: 0000000000000000 RDI: 0000000020000080 [ 47.823619][ T5062] RBP: 00007f41d4aadff0 R08: 00000000000005cd R09: 0000000000000000 creat("./file1", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 47.