./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1264507961 <...> Warning: Permanently added '10.128.10.7' (ECDSA) to the list of known hosts. execve("./syz-executor1264507961", ["./syz-executor1264507961"], 0x7ffebd616be0 /* 10 vars */) = 0 brk(NULL) = 0x55555655e000 brk(0x55555655ec40) = 0x55555655ec40 arch_prctl(ARCH_SET_FS, 0x55555655e300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor1264507961", 4096) = 28 brk(0x55555657fc40) = 0x55555657fc40 brk(0x555556580000) = 0x555556580000 mprotect(0x7f9a51257000, 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) = 0x7f9a48d9e000 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"..., 32768) = 32768 munmap(0x7f9a48d9e000, 32768) = 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", "hfs", 0, "") = 0 openat(AT_FDCWD, "./bus", O_RDONLY|O_DIRECTORY) = 3 chdir("./bus") = 0 ioctl(4, LOOP_CLR_FD) = 0 close(4) = 0 openat(AT_FDCWD, "cpu.stat", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 syzkaller login: [ 70.959245][ T4997] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=4997 'syz-executor126' [ 70.974371][ T4997] loop0: detected capacity change from 0 to 64 [ 71.073585][ T4997] [ 71.075957][ T4997] ============================================ [ 71.082095][ T4997] WARNING: possible recursive locking detected [ 71.088245][ T4997] 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 Not tainted [ 71.095258][ T4997] -------------------------------------------- [ 71.101441][ T4997] syz-executor126/4997 is trying to acquire lock: [ 71.107842][ T4997] ffff8880540280b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 71.117179][ T4997] [ 71.117179][ T4997] but task is already holding lock: [ 71.124533][ T4997] ffff8880540280b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 71.133854][ T4997] [ 71.133854][ T4997] other info that might help us debug this: [ 71.141919][ T4997] Possible unsafe locking scenario: [ 71.141919][ T4997] [ 71.149360][ T4997] CPU0 [ 71.152636][ T4997] ---- [ 71.155918][ T4997] lock(&tree->tree_lock/1); [ 71.160604][ T4997] lock(&tree->tree_lock/1); [ 71.165290][ T4997] [ 71.165290][ T4997] *** DEADLOCK *** [ 71.165290][ T4997] [ 71.173434][ T4997] May be due to missing lock nesting notation [ 71.173434][ T4997] [ 71.181764][ T4997] 5 locks held by syz-executor126/4997: [ 71.187320][ T4997] #0: ffff88802d08e460 (sb_writers#9){.+.+}-{0:0}, at: vfs_write+0x223/0xb20 [ 71.196228][ T4997] #1: ffff88807e6c1628 (&sb->s_type->i_mutex_key#14){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 [ 71.207559][ T4997] #2: ffff88807e6c1478 (&HFS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1440 [ 71.218276][ T4997] #3: ffff8880540280b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfs_find_init+0x16e/0x1f0 [ 71.228041][ T4997] #4: ffff88807e6c00f8 (&HFS_I(tree->inode)->extents_lock){+.+.}-{3:3}, at: hfs_extend_file+0xff/0x1440 [ 71.239271][ T4997] [ 71.239271][ T4997] stack backtrace: [ 71.245161][ T4997] CPU: 1 PID: 4997 Comm: syz-executor126 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 [ 71.255570][ T4997] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 71.265658][ T4997] Call Trace: [ 71.268939][ T4997] [ 71.271873][ T4997] dump_stack_lvl+0x1e7/0x2d0 [ 71.276573][ T4997] ? nf_tcp_handle_invalid+0x650/0x650 [ 71.282039][ T4997] ? panic+0x770/0x770 [ 71.286127][ T4997] validate_chain+0x473a/0x58f0 [ 71.290994][ T4997] ? __lock_acquire+0x1316/0x2070 [ 71.296027][ T4997] ? reacquire_held_locks+0x660/0x660 [ 71.301420][ T4997] ? mark_lock+0x9a/0x340 [ 71.305783][ T4997] ? mark_lock+0x9a/0x340 [ 71.310124][ T4997] __lock_acquire+0x1316/0x2070 [ 71.314993][ T4997] lock_acquire+0x1e3/0x520 [ 71.319508][ T4997] ? hfs_find_init+0x16e/0x1f0 [ 71.324283][ T4997] ? read_lock_is_recursive+0x20/0x20 [ 71.329664][ T4997] ? hfs_find_init+0x90/0x1f0 [ 71.334348][ T4997] ? hfs_extend_file+0x31b/0x1440 [ 71.339383][ T4997] ? __might_sleep+0xc0/0xc0 [ 71.343986][ T4997] ? hfs_get_block+0x3e4/0xb60 [ 71.348756][ T4997] ? __block_write_begin_int+0x548/0x1a50 [ 71.354487][ T4997] ? block_write_begin+0x9c/0x1f0 [ 71.359518][ T4997] ? cont_write_begin+0x643/0x880 [ 71.364548][ T4997] ? hfs_write_begin+0x8a/0xd0 [ 71.369321][ T4997] ? generic_perform_write+0x300/0x5e0 [ 71.374786][ T4997] ? __generic_file_write_iter+0x17a/0x400 [ 71.380597][ T4997] ? generic_file_write_iter+0xaf/0x310 [ 71.386149][ T4997] ? vfs_write+0x790/0xb20 [ 71.390577][ T4997] ? do_syscall_64+0x41/0xc0 [ 71.395177][ T4997] ? entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.401264][ T4997] __mutex_lock_common+0x1d8/0x2530 [ 71.406468][ T4997] ? hfs_find_init+0x16e/0x1f0 [ 71.411244][ T4997] ? hfs_find_init+0x16e/0x1f0 [ 71.416015][ T4997] ? mutex_lock_io_nested+0x60/0x60 [ 71.421217][ T4997] ? rcu_is_watching+0x15/0xb0 [ 71.425980][ T4997] ? hfs_find_init+0x90/0x1f0 [ 71.430663][ T4997] ? __kmalloc+0xe6/0x230 [ 71.434999][ T4997] mutex_lock_nested+0x1b/0x20 [ 71.439764][ T4997] hfs_find_init+0x16e/0x1f0 [ 71.444362][ T4997] hfs_extend_file+0x31b/0x1440 [ 71.449224][ T4997] ? hfs_get_block+0xb60/0xb60 [ 71.454012][ T4997] ? rcu_is_watching+0x15/0xb0 [ 71.458812][ T4997] ? __mutex_lock_common+0x42d/0x2530 [ 71.464184][ T4997] ? hfs_brec_find+0x197/0x570 [ 71.468958][ T4997] hfs_bmap_reserve+0xd9/0x3f0 [ 71.473734][ T4997] __hfs_ext_write_extent+0x22e/0x4f0 [ 71.479117][ T4997] __hfs_ext_cache_extent+0x6a/0x990 [ 71.484411][ T4997] ? mutex_lock_nested+0x1b/0x20 [ 71.489349][ T4997] ? hfs_find_init+0x16e/0x1f0 [ 71.494122][ T4997] hfs_extend_file+0x344/0x1440 [ 71.498989][ T4997] ? hfs_get_block+0xb60/0xb60 [ 71.503782][ T4997] ? find_lock_entries+0x10f0/0x10f0 [ 71.509108][ T4997] ? clean_bdev_aliases+0x7f9/0x920 [ 71.514313][ T4997] hfs_get_block+0x3e4/0xb60 [ 71.518918][ T4997] ? hfs_free_extents+0x420/0x420 [ 71.523953][ T4997] ? _raw_spin_unlock+0x28/0x40 [ 71.528809][ T4997] ? folio_create_buffers+0x132/0x250 [ 71.534187][ T4997] __block_write_begin_int+0x548/0x1a50 [ 71.539735][ T4997] ? folio_add_lru+0x353/0x6f0 [ 71.544533][ T4997] ? hfs_free_extents+0x420/0x420 [ 71.549655][ T4997] ? PageUptodate+0x290/0x290 [ 71.554338][ T4997] ? folio_test_hugetlb+0xa0/0x1d0 [ 71.559461][ T4997] ? pagecache_get_page+0xeb/0x220 [ 71.564573][ T4997] ? hfs_free_extents+0x420/0x420 [ 71.569624][ T4997] block_write_begin+0x9c/0x1f0 [ 71.574509][ T4997] ? cont_write_begin+0x626/0x880 [ 71.579542][ T4997] cont_write_begin+0x643/0x880 [ 71.584402][ T4997] ? fault_in_readable+0x165/0x2b0 [ 71.589604][ T4997] ? generic_cont_expand_simple+0x2a0/0x2a0 [ 71.595599][ T4997] ? fault_in_readable+0x1a6/0x2b0 [ 71.600725][ T4997] ? fault_in_safe_writeable+0x260/0x260 [ 71.606368][ T4997] hfs_write_begin+0x8a/0xd0 [ 71.610982][ T4997] ? hfs_free_extents+0x420/0x420 [ 71.616041][ T4997] generic_perform_write+0x300/0x5e0 [ 71.621365][ T4997] ? generic_file_direct_write+0x460/0x460 [ 71.627205][ T4997] ? __file_remove_privs+0x640/0x640 [ 71.632531][ T4997] ? generic_write_checks+0x160/0x1c0 [ 71.637926][ T4997] __generic_file_write_iter+0x17a/0x400 [ 71.643580][ T4997] generic_file_write_iter+0xaf/0x310 [ 71.648962][ T4997] vfs_write+0x790/0xb20 [ 71.653226][ T4997] ? file_end_write+0x250/0x250 [ 71.658100][ T4997] ? lockdep_hardirqs_on+0x98/0x140 [ 71.663309][ T4997] ? __fdget_pos+0x265/0x2f0 [ 71.667908][ T4997] ksys_write+0x1a0/0x2c0 [ 71.672253][ T4997] ? __ia32_sys_read+0x90/0x90 [ 71.677024][ T4997] ? syscall_enter_from_user_mode+0x32/0x230 [ 71.683010][ T4997] ? syscall_enter_from_user_mode+0x8c/0x230 [ 71.688997][ T4997] do_syscall_64+0x41/0xc0 [ 71.693420][ T4997] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 71.699323][ T4997] RIP: 0033:0x7f9a511ea7a9 [ 71.703741][ T4997] 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 [ 71.723350][ T4997] RSP: 002b:00007ffde16f8ea8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 71.731767][ T4997] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9a511ea7a9 [ 71.739739][ T4997] RDX: 000000000208e24b RSI: 0000000020000180 RDI: 0000000000000004 [ 71.747709][ T4997] RBP: 00007f9a511aa040 R08: 0000000000000000 R09: 0000000000000000 [ 71.755681][ T4997] R10: 00000000000002ba R11: 0000000000000246 R12: 00007f9a511aa0d0 [ 71.763652][ T4997] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 71.771628][ T4997] [ 76.022835][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.022835][ T10] loop0: rw=1048577, sector=95, nr_sectors = 1 limit=64 [ 76.036573][ T10] Buffer I/O error on dev loop0, logical block 95, lost async page write [ 76.045102][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.045102][ T10] loop0: rw=1048577, sector=96, nr_sectors = 1 limit=64 [ 76.058842][ T10] Buffer I/O error on dev loop0, logical block 96, lost async page write [ 76.067381][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.067381][ T10] loop0: rw=1048577, sector=98, nr_sectors = 1 limit=64 [ 76.081069][ T10] Buffer I/O error on dev loop0, logical block 98, lost async page write [ 76.089581][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.089581][ T10] loop0: rw=1048577, sector=100, nr_sectors = 1 limit=64 [ 76.103339][ T10] Buffer I/O error on dev loop0, logical block 100, lost async page write [ 76.111942][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.111942][ T10] loop0: rw=1048577, sector=101, nr_sectors = 1 limit=64 [ 76.125689][ T10] Buffer I/O error on dev loop0, logical block 101, lost async page write [ 76.134252][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.134252][ T10] loop0: rw=1048577, sector=102, nr_sectors = 1 limit=64 [ 76.148003][ T10] Buffer I/O error on dev loop0, logical block 102, lost async page write [ 76.156561][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.156561][ T10] loop0: rw=1048577, sector=103, nr_sectors = 1 limit=64 [ 76.170317][ T10] Buffer I/O error on dev loop0, logical block 103, lost async page write [ 76.178879][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.178879][ T10] loop0: rw=1048577, sector=104, nr_sectors = 1 limit=64 [ 76.192648][ T10] Buffer I/O error on dev loop0, logical block 104, lost async page write [ 76.204566][ T10] kworker/u4:0: attempt to access beyond end of device [ 76.204566][ T10] loop0: rw=1048577, sector=105, nr_sectors = 4064 limit=64