./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3708506422 <...> Warning: Permanently added '10.128.0.57' (ECDSA) to the list of known hosts. execve("./syz-executor3708506422", ["./syz-executor3708506422"], 0x7ffe9ba2d620 /* 10 vars */) = 0 brk(NULL) = 0x555556405000 brk(0x555556405c40) = 0x555556405c40 arch_prctl(ARCH_SET_FS, 0x555556405300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor3708506422", 4096) = 28 brk(0x555556426c40) = 0x555556426c40 brk(0x555556427000) = 0x555556427000 mprotect(0x7f3f540a9000, 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) = 0x7f3f4bbf0000 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(0x7f3f4bbf0000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./bus", 0777) = 0 syzkaller login: [ 54.677955][ T4992] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4992 'syz-executor370' [ 54.695721][ T4992] loop0: detected capacity change from 0 to 1024 [ 54.704864][ T4992] ======================================================= [ 54.704864][ T4992] WARNING: The mand mount option has been deprecated and [ 54.704864][ T4992] and is ignored by this kernel. Remove the mand 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 [ 54.704864][ T4992] option from the mount to silence this warning. [ 54.704864][ T4992] ======================================================= [ 54.772459][ T4992] [ 54.774807][ T4992] ============================================ [ 54.780931][ T4992] WARNING: possible recursive locking detected [ 54.787064][ T4992] 6.4.0-rc5-syzkaller-00305-g022ce8862dff #0 Not tainted [ 54.794063][ T4992] -------------------------------------------- [ 54.800190][ T4992] syz-executor370/4992 is trying to acquire lock: [ 54.806593][ T4992] ffff888016768108 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d6/0x1b10 [ 54.817676][ T4992] [ 54.817676][ T4992] but task is already holding lock: [ 54.825018][ T4992] ffff88801676a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d6/0x1b10 [ 54.836041][ T4992] [ 54.836041][ T4992] other info that might help us debug this: [ 54.844078][ T4992] Possible unsafe locking scenario: [ 54.844078][ T4992] [ 54.851510][ T4992] CPU0 [ 54.854769][ T4992] ---- [ 54.858023][ T4992] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.863810][ T4992] lock(&HFSPLUS_I(inode)->extents_lock); [ 54.869590][ T4992] [ 54.869590][ T4992] *** DEADLOCK *** [ 54.869590][ T4992] [ 54.877714][ T4992] May be due to missing lock nesting notation [ 54.877714][ T4992] [ 54.886014][ T4992] 4 locks held by syz-executor370/4992: [ 54.891537][ T4992] #0: ffff88807e288460 (sb_writers#9){.+.+}-{0:0}, at: do_sys_ftruncate+0x24c/0x380 [ 54.901020][ T4992] #1: ffff88801676ab80 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: do_truncate+0x20c/0x300 [ 54.911361][ T4992] #2: ffff88801676a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1d6/0x1b10 [ 54.922825][ T4992] #3: ffff88807e28a0b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x14a/0x1c0 [ 54.932907][ T4992] [ 54.932907][ T4992] stack backtrace: [ 54.938777][ T4992] CPU: 0 PID: 4992 Comm: syz-executor370 Not tainted 6.4.0-rc5-syzkaller-00305-g022ce8862dff #0 [ 54.949168][ T4992] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 [ 54.959204][ T4992] Call Trace: [ 54.962473][ T4992] [ 54.965391][ T4992] dump_stack_lvl+0x1e7/0x2d0 [ 54.970067][ T4992] ? nf_tcp_handle_invalid+0x650/0x650 [ 54.975517][ T4992] ? panic+0x770/0x770 [ 54.979575][ T4992] validate_chain+0x473a/0x58f0 [ 54.984418][ T4992] ? stack_trace_save+0x1c0/0x1c0 [ 54.989430][ T4992] ? kernel_text_address+0xa3/0xe0 [ 54.994527][ T4992] ? __kernel_text_address+0xd/0x40 [ 54.999712][ T4992] ? unwind_get_return_address+0x4d/0x90 [ 55.005333][ T4992] ? reacquire_held_locks+0x660/0x660 [ 55.010701][ T4992] ? mark_lock+0x9a/0x340 [ 55.015022][ T4992] ? look_up_lock_class+0x77/0x140 [ 55.020120][ T4992] ? register_lock_class+0x104/0x990 [ 55.025391][ T4992] ? __lock_acquire+0x1316/0x2070 [ 55.030405][ T4992] ? is_dynamic_key+0x1f0/0x1f0 [ 55.035244][ T4992] ? mark_lock+0x9a/0x340 [ 55.039561][ T4992] __lock_acquire+0x1316/0x2070 [ 55.044406][ T4992] lock_acquire+0x1e3/0x520 [ 55.048896][ T4992] ? hfsplus_file_extend+0x1d6/0x1b10 [ 55.054251][ T4992] ? read_lock_is_recursive+0x20/0x20 [ 55.059610][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.064196][ T4992] ? finish_task_switch+0x1f1/0x650 [ 55.069385][ T4992] __mutex_lock_common+0x1d8/0x2530 [ 55.074568][ T4992] ? hfsplus_file_extend+0x1d6/0x1b10 [ 55.079927][ T4992] ? print_irqtrace_events+0x220/0x220 [ 55.085373][ T4992] ? hfsplus_file_extend+0x1d6/0x1b10 [ 55.090729][ T4992] ? mutex_lock_io_nested+0x60/0x60 [ 55.095917][ T4992] ? release_firmware_map_entry+0x190/0x190 [ 55.101801][ T4992] mutex_lock_nested+0x1b/0x20 [ 55.106556][ T4992] hfsplus_file_extend+0x1d6/0x1b10 [ 55.111744][ T4992] ? hfsplus_get_block+0x14e0/0x14e0 [ 55.117010][ T4992] ? __mutex_trylock_common+0x182/0x2e0 [ 55.122544][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.127191][ T4992] ? trace_raw_output_contention_end+0xd0/0xd0 [ 55.133332][ T4992] ? preempt_schedule_thunk+0x1a/0x20 [ 55.138695][ T4992] ? hfsplus_brec_find+0x19d/0x570 [ 55.143802][ T4992] hfsplus_bmap_reserve+0x105/0x4e0 [ 55.148989][ T4992] __hfsplus_ext_write_extent+0x2a4/0x5b0 [ 55.154694][ T4992] __hfsplus_ext_cache_extent+0x84/0xe00 [ 55.160312][ T4992] ? mutex_lock_nested+0x1b/0x20 [ 55.165243][ T4992] hfsplus_file_extend+0x439/0x1b10 [ 55.170518][ T4992] ? hfsplus_get_block+0x14e0/0x14e0 [ 55.175786][ T4992] ? lru_cache_disable+0x30/0x30 [ 55.180710][ T4992] ? __might_sleep+0xc0/0xc0 [ 55.185296][ T4992] ? clean_bdev_aliases+0x80a/0x920 [ 55.190484][ T4992] hfsplus_get_block+0x406/0x14e0 [ 55.195503][ T4992] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.201209][ T4992] ? _raw_spin_unlock+0x28/0x40 [ 55.206052][ T4992] ? folio_create_buffers+0x132/0x250 [ 55.211407][ T4992] __block_write_begin_int+0x548/0x1a50 [ 55.216935][ T4992] ? folio_add_lru+0x353/0x6f0 [ 55.221693][ T4992] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.227396][ T4992] ? PageUptodate+0x290/0x290 [ 55.232059][ T4992] ? folio_test_hugetlb+0xa0/0x1d0 [ 55.237160][ T4992] ? pagecache_get_page+0xeb/0x220 [ 55.242255][ T4992] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.247957][ T4992] block_write_begin+0x9c/0x1f0 [ 55.252791][ T4992] ? cont_write_begin+0x626/0x880 [ 55.257803][ T4992] cont_write_begin+0x643/0x880 [ 55.262644][ T4992] ? generic_cont_expand_simple+0x2a0/0x2a0 [ 55.268525][ T4992] hfsplus_write_begin+0x8a/0xd0 [ 55.273453][ T4992] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.279159][ T4992] cont_write_begin+0x316/0x880 [ 55.283999][ T4992] ? generic_cont_expand_simple+0x2a0/0x2a0 [ 55.289877][ T4992] ? smk_access+0x477/0x4b0 [ 55.294373][ T4992] ? smk_tskacc+0x2ff/0x360 [ 55.298866][ T4992] hfsplus_write_begin+0x8a/0xd0 [ 55.303794][ T4992] ? hfsplus_ext_write_extent+0x1f0/0x1f0 [ 55.309509][ T4992] generic_cont_expand_simple+0x18b/0x2a0 [ 55.315213][ T4992] ? submit_bh+0x20/0x20 [ 55.319438][ T4992] ? current_time+0x1e0/0x300 [ 55.324109][ T4992] ? atime_needs_update+0x6d0/0x6d0 [ 55.329298][ T4992] hfsplus_setattr+0x16d/0x280 [ 55.334050][ T4992] ? hfsplus_fileattr_set+0x330/0x330 [ 55.339411][ T4992] notify_change+0xc8b/0xf40 [ 55.343993][ T4992] do_truncate+0x220/0x300 [ 55.348397][ T4992] ? put_page_bootmem+0x2e0/0x2e0 [ 55.353410][ T4992] ? print_irqtrace_events+0x220/0x220 [ 55.358872][ T4992] do_sys_ftruncate+0x2e4/0x380 [ 55.363731][ T4992] do_syscall_64+0x41/0xc0 [ 55.368138][ T4992] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 55.374032][ T4992] RIP: 0033:0x7f3f5403c7a9 [ 55.378443][ T4992] 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 [ 55.398048][ T4992] RSP: 002b:00007ffdb7ecc478 EFLAGS: 00000246 ORIG_RAX: 000000000000004d [ 55.406455][ T4992] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3f5403c7a9 [ 55.414419][ T4992] RDX: 0000000000000000 RSI: 0000000002007ffb RDI: 0000000000000004 ftruncate(4, 33587195) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [ 55.422380][ T4992] RBP: 00007f3f