./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3849195798 <...> Warning: Permanently added '10.128.1.24' (ED25519) to the list of known hosts. execve("./syz-executor3849195798", ["./syz-executor3849195798"], 0x7fff7ee7a640 /* 10 vars */) = 0 brk(NULL) = 0x555555782000 brk(0x555555782d00) = 0x555555782d00 arch_prctl(ARCH_SET_FS, 0x555555782380) = 0 set_tid_address(0x555555782650) = 5061 set_robust_list(0x555555782660, 24) = 0 rseq(0x555555782ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3849195798", 4096) = 28 getrandom("\x9d\xf7\xe7\x80\x1e\x6e\x06\x63", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555555782d00 brk(0x5555557a3d00) = 0x5555557a3d00 brk(0x5555557a4000) = 0x5555557a4000 mprotect(0x7fd22dcbc000, 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 unshare(CLONE_NEWPID) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x555555782650) = 5062 ./strace-static-x86_64: Process 5062 attached [pid 5062] set_robust_list(0x555555782660, 24) = 0 [pid 5062] mount(NULL, "/sys/fs/fuse/connections", "fusectl", 0, NULL) = -1 EBUSY (Device or resource busy) [pid 5062] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5062] setsid() = 1 [pid 5062] prlimit64(0, RLIMIT_AS, {rlim_cur=204800*1024, rlim_max=204800*1024}, NULL) = 0 [ 79.187504][ T27] audit: type=1400 audit(1701667515.307:83): avc: denied { execmem } for pid=5061 comm="syz-executor384" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 79.213696][ T27] audit: type=1400 audit(1701667515.327:84): avc: denied { mounton } for pid=5062 comm="syz-executor384" path="/sys/fs/fuse/connections" dev="fusectl" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fusefs_t tclass=dir permissive=1 [pid 5062] prlimit64(0, RLIMIT_MEMLOCK, {rlim_cur=32768*1024, rlim_max=32768*1024}, NULL) = 0 [pid 5062] prlimit64(0, RLIMIT_FSIZE, {rlim_cur=139264*1024, rlim_max=139264*1024}, NULL) = 0 [pid 5062] prlimit64(0, RLIMIT_STACK, {rlim_cur=1024*1024, rlim_max=1024*1024}, NULL) = 0 [pid 5062] prlimit64(0, RLIMIT_CORE, {rlim_cur=131072*1024, rlim_max=131072*1024}, NULL) = 0 [pid 5062] prlimit64(0, RLIMIT_NOFILE, {rlim_cur=256, rlim_max=256}, NULL) = 0 [pid 5062] unshare(CLONE_NEWNS) = 0 [pid 5062] mount(NULL, "/", NULL, MS_REC|MS_PRIVATE, NULL) = 0 [ 79.238427][ T27] audit: type=1400 audit(1701667515.337:85): avc: denied { mount } for pid=5062 comm="syz-executor384" name="/" dev="fusectl" ino=1 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fusefs_t tclass=filesystem permissive=1 [pid 5062] unshare(CLONE_NEWIPC) = 0 [pid 5062] unshare(CLONE_NEWCGROUP) = 0 [pid 5062] unshare(CLONE_NEWUTS) = 0 [pid 5062] unshare(CLONE_SYSVSEM) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/shmmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "16777216", 8) = 8 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/shmall", O_WRONLY|O_CLOEXEC) = 3 [ 79.291240][ T27] audit: type=1400 audit(1701667515.407:86): avc: denied { mounton } for pid=5062 comm="syz-executor384" path="/" dev="sda1" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:root_t tclass=dir permissive=1 [pid 5062] write(3, "536870912", 9) = 9 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/shmmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "1024", 4) = 4 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/msgmax", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "8192", 4) = 4 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/msgmni", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "1024", 4) = 4 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/msgmnb", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "1024", 4) = 4 [pid 5062] close(3) = 0 [pid 5062] openat(AT_FDCWD, "/proc/sys/kernel/sem", O_WRONLY|O_CLOEXEC) = 3 [pid 5062] write(3, "1024 1048576 500 1024", 21) = 21 [pid 5062] close(3) = 0 [pid 5062] getpid() = 1 [pid 5062] capget({version=_LINUX_CAPABILITY_VERSION_3, pid=1}, {effective=1<tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x16e/0x200 [ 79.929761][ T2472] [ 79.929761][ T2472] but task is already holding lock: [ 79.937116][ T2472] ffff888020c640b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x16e/0x200 [ 79.946860][ T2472] [ 79.946860][ T2472] other info that might help us debug this: [ 79.954913][ T2472] Possible unsafe locking scenario: [ 79.954913][ T2472] [ 79.962353][ T2472] CPU0 [ 79.965718][ T2472] ---- [ 79.968981][ T2472] lock(&tree->tree_lock/1); [ 79.973669][ T2472] lock(&tree->tree_lock/1); [ 79.978363][ T2472] [ 79.978363][ T2472] *** DEADLOCK *** [ 79.978363][ T2472] [ 79.986499][ T2472] May be due to missing lock nesting notation [ 79.986499][ T2472] [ 79.994807][ T2472] 5 locks held by kworker/u4:8/2472: [ 80.000081][ T2472] #0: ffff88814424b938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 [ 80.010728][ T2472] #1: ffffc9000a24fd80 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 [ 80.022573][ T2472] #2: ffff88806d328848 (&hip->extents_lock){+.+.}-{3:3}, at: hfsplus_ext_write_extent+0x82/0x200 [ 80.033191][ T2472] #3: ffff888020c640b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x16e/0x200 [ 80.043292][ T2472] #4: ffff88806ccdb588 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1c1/0x1090 [ 80.054768][ T2472] [ 80.054768][ T2472] stack backtrace: [ 80.060640][ T2472] CPU: 1 PID: 2472 Comm: kworker/u4:8 Not tainted 6.7.0-rc4-syzkaller #0 [ 80.069046][ T2472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 [ 80.079094][ T2472] Workqueue: writeback wb_workfn (flush-7:0) [ 80.085096][ T2472] Call Trace: [ 80.088469][ T2472] [ 80.091394][ T2472] dump_stack_lvl+0xd9/0x1b0 [ 80.096346][ T2472] __lock_acquire+0x20f8/0x3b20 [ 80.101201][ T2472] ? lockdep_hardirqs_on_prepare+0x420/0x420 [ 80.107208][ T2472] ? hfsplus_find_init+0x95/0x200 [ 80.112332][ T2472] lock_acquire+0x1ae/0x520 [ 80.116856][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.121972][ T2472] ? lock_sync+0x190/0x190 [ 80.126389][ T2472] ? preempt_count_sub+0x160/0x160 [ 80.131581][ T2472] __mutex_lock+0x175/0x9d0 [ 80.136106][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.141231][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.146341][ T2472] ? mutex_trylock+0x130/0x130 [ 80.151303][ T2472] ? rcu_is_watching+0x12/0xb0 [ 80.156089][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.161198][ T2472] hfsplus_find_init+0x16e/0x200 [ 80.166143][ T2472] hfsplus_ext_read_extent+0x18f/0x240 [ 80.171599][ T2472] ? __hfsplus_ext_cache_extent+0x9d0/0x9d0 [ 80.177487][ T2472] ? rcu_is_watching+0x12/0xb0 [ 80.182423][ T2472] hfsplus_file_extend+0x695/0x1090 [ 80.187619][ T2472] ? hfsplus_free_fork+0x820/0x820 [ 80.192723][ T2472] ? trace_contention_end+0xd6/0x100 [ 80.198008][ T2472] ? __mutex_lock+0x1a6/0x9d0 [ 80.202775][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.207886][ T2472] ? hfsplus_brec_find+0x3e8/0x520 [ 80.212997][ T2472] ? hfsplus_brec_remove+0x4f0/0x4f0 [ 80.218296][ T2472] ? mutex_trylock+0x130/0x130 [ 80.223061][ T2472] hfsplus_bmap_reserve+0x318/0x410 [ 80.228263][ T2472] __hfsplus_ext_write_extent+0x470/0x5e0 [ 80.233978][ T2472] ? hfsplus_find_init+0x16e/0x200 [ 80.239096][ T2472] hfsplus_ext_write_extent+0x1c5/0x200 [ 80.244644][ T2472] ? hfsplus_ext_cmp_key+0x300/0x300 [ 80.249930][ T2472] ? reacquire_held_locks+0x4c0/0x4c0 [ 80.255399][ T2472] ? do_raw_spin_lock+0x12e/0x2b0 [ 80.260518][ T2472] hfsplus_write_inode+0x22/0x4f0 [ 80.265563][ T2472] __writeback_single_inode+0xa91/0xe90 [ 80.271109][ T2472] ? __mark_inode_dirty+0xd60/0xd60 [ 80.276306][ T2472] ? _raw_spin_unlock+0x28/0x40 [ 80.281153][ T2472] ? wbc_attach_and_unlock_inode+0x561/0x910 [ 80.287309][ T2472] writeback_sb_inodes+0x599/0x1080 [ 80.292507][ T2472] ? sync_inode_metadata+0xe0/0xe0 [ 80.297629][ T2472] ? rcu_is_watching+0x12/0xb0 [ 80.302387][ T2472] ? queue_io+0x3ed/0x4e0 [ 80.306733][ T2472] wb_writeback+0x2a5/0xaa0 [ 80.311237][ T2472] ? __writeback_inodes_wb+0x2d0/0x2d0 [ 80.316692][ T2472] ? reacquire_held_locks+0x4c0/0x4c0 [ 80.322152][ T2472] ? mark_held_locks+0x9f/0xe0 [ 80.326925][ T2472] wb_workfn+0x29c/0xfe0 [ 80.331161][ T2472] ? lockdep_hardirqs_on_prepare+0x351/0x420 [ 80.337151][ T2472] ? inode_wait_for_writeback+0x30/0x30 [ 80.342788][ T2472] ? lock_sync+0x190/0x190 [ 80.347248][ T2472] ? lock_sync+0x190/0x190 [ 80.351680][ T2472] ? reacquire_held_locks+0x4c0/0x4c0 [ 80.357069][ T2472] process_one_work+0x886/0x15d0 [ 80.362015][ T2472] ? lock_sync+0x190/0x190 [ 80.366533][ T2472] ? workqueue_congested+0x300/0x300 [ 80.371823][ T2472] ? assign_work+0x1a0/0x250 [ 80.376427][ T2472] worker_thread+0x8b9/0x1290 [ 80.381111][ T2472] ? __kthread_parkme+0x14b/0x220 [ 80.386141][ T2472] ? process_one_work+0x15d0/0x15d0 [ 80.391429][ T2472] kthread+0x2c6/0x3a0 [ 80.395520][ T2472] ? _raw_spin_unlock_irq+0x23/0x50 [ 80.400716][ T2472] ? kthread_complete_and_exit+0x40/0x40 [ 80.407391][ T2472] ret_from_fork+0x45/0x80 [ 80.411803][ T2472] ? kthread_complete_and_exit+0x40/0x40 [ 80.417431][ T2472] ret_from_fork_asm+0x11/0x20 [ 80.422204][ T2472] [ 87.093921][ T26] cfg80211: failed to load regulatory.db