./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2482112898 <...> DUID 00:04:76:8b:f6:84:a4:3b:36:39:6c:68:e7:10:38:dd:b7:2c forked to background, child pid 4645 [ 30.197540][ T4646] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.208672][ T4646] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller Warning: Permanently added '10.128.0.237' (ECDSA) to the list of known hosts. execve("./syz-executor2482112898", ["./syz-executor2482112898"], 0x7ffc0573cbf0 /* 10 vars */) = 0 brk(NULL) = 0x5555563af000 brk(0x5555563afc40) = 0x5555563afc40 arch_prctl(ARCH_SET_FS, 0x5555563af300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2482112898", 4096) = 28 brk(0x5555563d0c40) = 0x5555563d0c40 brk(0x5555563d1000) = 0x5555563d1000 mprotect(0x7f0c460de000, 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) = 0x7f0c3dc25000 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(0x7f0c3dc25000, 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 syzkaller login: [ 55.040555][ T5067] loop0: detected capacity change from 0 to 1024 [ 55.050060][ T5067] ======================================================= [ 55.050060][ T5067] WARNING: The mand mount option has been deprecated and [ 55.050060][ T5067] and is ignored by this kernel. Remove the mand [ 55.050060][ T5067] option from the mount to silence this warning. [ 55.050060][ T5067] ======================================================= close(4) = 0 [ 55.098829][ T5067] [ 55.101202][ T5067] ============================================ [ 55.107354][ T5067] WARNING: possible recursive locking detected [ 55.113511][ T5067] 6.2.0-rc2-syzkaller #0 Not tainted [ 55.118791][ T5067] -------------------------------------------- [ 55.124923][ T5067] syz-executor248/5067 is trying to acquire lock: [ 55.131324][ T5067] ffff88801f199548 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_get_block+0x3a3/0x1560 [ 55.142197][ T5067] [ 55.142197][ T5067] but task is already holding lock: [ 55.149552][ T5067] ffff88801f19a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x280/0xbb0 [ 55.160671][ T5067] [ 55.160671][ T5067] other info that might help us debug this: [ 55.168712][ T5067] Possible unsafe locking scenario: [ 55.168712][ T5067] [ 55.176141][ T5067] CPU0 [ 55.179398][ T5067] ---- [ 55.182668][ T5067] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.188459][ T5067] lock(&HFSPLUS_I(inode)->extents_lock); [ 55.194256][ T5067] [ 55.194256][ T5067] *** DEADLOCK *** [ 55.194256][ T5067] [ 55.202396][ T5067] May be due to missing lock nesting notation [ 55.202396][ T5067] [ 55.210701][ T5067] 4 locks held by syz-executor248/5067: [ 55.216222][ T5067] #0: ffff88807e1a8460 (sb_writers#9){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 [ 55.225343][ T5067] #1: ffff88801f19ab80 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x1ec/0x2f0 [ 55.235672][ T5067] #2: ffff88801f19a988 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_truncate+0x280/0xbb0 [ 55.247223][ T5067] #3: ffff8880798630f8 (&sbi->alloc_mutex){+.+.}-{3:3}, at: hfsplus_block_free+0xb6/0x4e0 [ 55.257287][ T5067] [ 55.257287][ T5067] stack backtrace: [ 55.263172][ T5067] CPU: 1 PID: 5067 Comm: syz-executor248 Not tainted 6.2.0-rc2-syzkaller #0 [ 55.271823][ T5067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 55.281856][ T5067] Call Trace: [ 55.285206][ T5067] [ 55.288119][ T5067] dump_stack_lvl+0x1b1/0x290 [ 55.292803][ T5067] ? nf_tcp_handle_invalid+0x630/0x630 [ 55.298241][ T5067] ? panic+0x710/0x710 [ 55.302288][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 55.307119][ T5067] ? print_tainted+0x141/0x160 [ 55.311862][ T5067] ? lockdep_print_held_locks+0x10f/0x1b0 [ 55.317580][ T5067] validate_chain+0x4843/0x6ae0 [ 55.322425][ T5067] ? stack_trace_save+0x104/0x1e0 [ 55.327434][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.332805][ T5067] ? check_noncircular+0x1aa/0x390 [ 55.337895][ T5067] ? add_chain_block+0x850/0x850 [ 55.342814][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 55.347649][ T5067] ? lockdep_lock+0x290/0x290 [ 55.352653][ T5067] ? add_lock_to_list+0x1c7/0x2d0 [ 55.357658][ T5067] ? validate_chain+0x1478/0x6ae0 [ 55.362667][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.368020][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 55.372849][ T5067] ? lockdep_lock+0x290/0x290 [ 55.377504][ T5067] ? add_lock_to_list+0x1c7/0x2d0 [ 55.382514][ T5067] ? validate_chain+0x1478/0x6ae0 [ 55.387536][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.392888][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.398244][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.403603][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.408978][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.414330][ T5067] ? lockdep_unlock+0x144/0x2e0 [ 55.419159][ T5067] ? lockdep_lock+0x290/0x290 [ 55.423812][ T5067] ? add_lock_to_list+0x1c7/0x2d0 [ 55.428845][ T5067] ? validate_chain+0x1478/0x6ae0 [ 55.433850][ T5067] ? validate_chain+0x177/0x6ae0 [ 55.438865][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.444215][ T5067] ? try_to_wake_up+0x4e9/0xab0 [ 55.449044][ T5067] ? trace_lock_release+0x95/0x220 [ 55.454480][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.459830][ T5067] ? validate_chain+0x177/0x6ae0 [ 55.464751][ T5067] ? __lock_acquire+0x1f60/0x1f60 [ 55.469758][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.475402][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.481366][ T5067] ? do_raw_spin_unlock+0x134/0x8a0 [ 55.486544][ T5067] ? reacquire_held_locks+0x650/0x650 [ 55.491899][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.497511][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.503471][ T5067] ? mark_lock+0x9a/0x350 [ 55.507780][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.513392][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.519427][ T5067] ? rcu_lock_acquire+0x30/0x30 [ 55.524278][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.529975][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.535939][ T5067] ? stack_trace_save+0x1e0/0x1e0 [ 55.540950][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.546569][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.552531][ T5067] ? rcu_lock_release+0x5/0x20 [ 55.557279][ T5067] ? read_lock_is_recursive+0x10/0x10 [ 55.562631][ T5067] ? rcu_lock_release+0x5/0x20 [ 55.567374][ T5067] ? __lock_acquire+0x1f60/0x1f60 [ 55.572382][ T5067] ? deref_stack_reg+0x17a/0x210 [ 55.577304][ T5067] ? preempt_count_add+0x8d/0x180 [ 55.582310][ T5067] ? register_lock_class+0xc2/0x930 [ 55.587487][ T5067] ? is_bpf_text_address+0x253/0x270 [ 55.592754][ T5067] ? is_dynamic_key+0x1f0/0x1f0 [ 55.597581][ T5067] ? mark_lock+0x9a/0x350 [ 55.601891][ T5067] __lock_acquire+0x1292/0x1f60 [ 55.606727][ T5067] lock_acquire+0x182/0x3c0 [ 55.611209][ T5067] ? hfsplus_get_block+0x3a3/0x1560 [ 55.616388][ T5067] ? read_lock_is_recursive+0x10/0x10 [ 55.621745][ T5067] ? __might_sleep+0xc0/0xc0 [ 55.626314][ T5067] ? register_lock_class+0xc2/0x930 [ 55.631512][ T5067] ? create_page_buffers+0x1c8/0x4b0 [ 55.636779][ T5067] ? block_read_full_folio+0x177/0xfa0 [ 55.642237][ T5067] ? filemap_read_folio+0x187/0x7d0 [ 55.647419][ T5067] ? do_read_cache_folio+0x2d3/0x790 [ 55.652683][ T5067] ? read_cache_page+0x56/0x270 [ 55.657515][ T5067] ? hfsplus_free_extents+0x17f/0xad0 [ 55.662867][ T5067] ? hfsplus_file_truncate+0x827/0xbb0 [ 55.668308][ T5067] ? is_dynamic_key+0x1f0/0x1f0 [ 55.673138][ T5067] ? path_openat+0x272b/0x2dd0 [ 55.677885][ T5067] __mutex_lock_common+0x1bd/0x26e0 [ 55.683066][ T5067] ? hfsplus_get_block+0x3a3/0x1560 [ 55.688246][ T5067] ? __lock_acquire+0x1292/0x1f60 [ 55.693254][ T5067] ? hfsplus_get_block+0x3a3/0x1560 [ 55.698434][ T5067] ? mutex_lock_io_nested+0x60/0x60 [ 55.703613][ T5067] ? rcu_read_lock_sched_held+0x87/0x110 [ 55.709227][ T5067] ? __bpf_trace_rcu_stall_warning+0x10/0x10 [ 55.715188][ T5067] ? create_page_buffers+0x1c8/0x4b0 [ 55.720452][ T5067] ? trace_lock_release+0x95/0x220 [ 55.725543][ T5067] mutex_lock_nested+0x17/0x20 [ 55.730292][ T5067] hfsplus_get_block+0x3a3/0x1560 [ 55.735302][ T5067] ? __lock_acquire+0x1f60/0x1f60 [ 55.740309][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.746011][ T5067] ? do_raw_spin_unlock+0x134/0x8a0 [ 55.751197][ T5067] ? create_page_buffers+0x244/0x4b0 [ 55.756551][ T5067] block_read_full_folio+0x3b3/0xfa0 [ 55.761839][ T5067] ? hfsplus_ext_write_extent+0x1e0/0x1e0 [ 55.767540][ T5067] ? block_is_partially_uptodate+0x620/0x620 [ 55.773530][ T5067] ? folio_add_lru+0x480/0x960 [ 55.778281][ T5067] filemap_read_folio+0x187/0x7d0 [ 55.783289][ T5067] ? folio_alloc+0x47/0x50 [ 55.787684][ T5067] ? hfsplus_writepage+0x30/0x30 [ 55.792601][ T5067] ? maybe_unlock_mmap_for_io+0x130/0x130 [ 55.798307][ T5067] ? __mutex_lock_common+0x45f/0x26e0 [ 55.803661][ T5067] ? mutex_lock_io_nested+0x60/0x60 [ 55.808839][ T5067] ? __mutex_lock_common+0x45f/0x26e0 [ 55.814192][ T5067] do_read_cache_folio+0x2d3/0x790 [ 55.819286][ T5067] ? hfsplus_writepage+0x30/0x30 [ 55.824203][ T5067] read_cache_page+0x56/0x270 [ 55.828867][ T5067] hfsplus_block_free+0x123/0x4e0 [ 55.833876][ T5067] ? trace_kmalloc+0x30/0xf0 [ 55.838445][ T5067] hfsplus_free_extents+0x17f/0xad0 [ 55.843624][ T5067] hfsplus_file_truncate+0x827/0xbb0 [ 55.848889][ T5067] ? unmap_mapping_range+0xf3/0x2a0 [ 55.854071][ T5067] ? hfsplus_add_extent+0x860/0x860 [ 55.859249][ T5067] ? unmap_mapping_range+0xf3/0x2a0 [ 55.864427][ T5067] ? unmap_mapping_pages+0x190/0x190 [ 55.869690][ T5067] ? current_time+0x1ea/0x300 [ 55.874347][ T5067] ? setattr_prepare+0x1fc/0xc10 [ 55.879264][ T5067] ? truncate_setsize+0xcb/0xf0 [ 55.884093][ T5067] hfsplus_setattr+0x1b8/0x280 [ 55.888838][ T5067] ? hfsplus_fileattr_set+0x330/0x330 [ 55.894188][ T5067] notify_change+0xe50/0x1100 [ 55.898848][ T5067] do_truncate+0x200/0x2f0 [ 55.903250][ T5067] ? put_page_bootmem+0x2d0/0x2d0 [ 55.908256][ T5067] ? ima_bprm_check+0x270/0x270 [ 55.913088][ T5067] path_openat+0x272b/0x2dd0 [ 55.917671][ T5067] ? do_filp_open+0x4f0/0x4f0 [ 55.922331][ T5067] do_filp_open+0x264/0x4f0 [ 55.926817][ T5067] ? vfs_tmpfile+0x490/0x490 [ 55.931392][ T5067] ? do_raw_spin_unlock+0x134/0x8a0 [ 55.936577][ T5067] ? _raw_spin_unlock+0x24/0x40 [ 55.941408][ T5067] ? alloc_fd+0x5a7/0x640 [ 55.945719][ T5067] do_sys_openat2+0x124/0x4e0 [ 55.950374][ T5067] ? do_raw_spin_unlock+0x134/0x8a0 [ 55.955558][ T5067] ? do_sys_open+0x220/0x220 [ 55.960127][ T5067] ? _raw_spin_unlock_irq+0x2a/0x40 [ 55.965307][ T5067] ? ptrace_notify+0x245/0x340 [ 55.970057][ T5067] __x64_sys_creat+0x11f/0x160 [ 55.974802][ T5067] ? __x64_compat_sys_openat+0x290/0x290 [ 55.980414][ T5067] ? syscall_enter_from_user_mode+0x2e/0x1d0 [ 55.986391][ T5067] ? syscall_enter_from_user_mode+0x86/0x1d0 [ 55.992350][ T5067] do_syscall_64+0x3d/0xb0 [ 55.996754][ T5067] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 56.002630][ T5067] RIP: 0033:0x7f0c46071759 [ 56.007024][ 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 [ 56.026611][ T5067] RSP: 002b:00007ffdaadda1e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 [ 56.035002][ T5067] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0c46071759 [ 56.042956][ T5067] RDX: 00007f0c4602fdd3 RSI: 0000000000000000 RDI: 0000000020000280 creat("./file1", 000) = 4 exit_group(0) = ? +++ exited with 0 +++ [ 56.050904][ T5067] RBP: 00