./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor874202060 <...> Warning: Permanently added '10.128.10.56' (ED25519) to the list of known hosts. execve("./syz-executor874202060", ["./syz-executor874202060"], 0x7ffc345d7060 /* 10 vars */) = 0 brk(NULL) = 0x55555692f000 brk(0x55555692fd00) = 0x55555692fd00 arch_prctl(ARCH_SET_FS, 0x55555692f380) = 0 set_tid_address(0x55555692f650) = 5021 set_robust_list(0x55555692f660, 24) = 0 rseq(0x55555692fca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor874202060", 4096) = 27 getrandom("\xa2\xa7\xd8\x84\xad\x76\x20\x9d", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555692fd00 brk(0x555556950d00) = 0x555556950d00 brk(0x555556951000) = 0x555556951000 mprotect(0x7f6e1732c000, 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 [ 62.707897][ T26] audit: type=1400 audit(1690822062.276:83): avc: denied { write } for pid=5018 comm="strace-static-x" path="pipe:[30090]" dev="pipefs" ino=30090 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:sshd_t tclass=fifo_file permissive=1 [ 62.734438][ T26] audit: type=1400 audit(1690822062.306:84): avc: denied { execmem } for pid=5021 comm="syz-executor874" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6e0ee7c000 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(0x7f6e0ee7c000, 524288) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 62.735229][ T5021] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5021 'syz-executor874' [ 62.771997][ T26] audit: type=1400 audit(1690822062.336:85): avc: denied { read write } for pid=5021 comm="syz-executor874" name="loop0" dev="devtmpfs" ino=648 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 62.774521][ T5021] loop0: detected capacity change from 0 to 1024 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 mkdir("./bus", 0777) = 0 [ 62.796913][ T26] audit: type=1400 audit(1690822062.336:86): avc: denied { open } for pid=5021 comm="syz-executor874" path="/dev/loop0" dev="devtmpfs" ino=648 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 [ 62.806849][ T5021] ======================================================= [ 62.806849][ T5021] WARNING: The mand mount option has been deprecated and [ 62.806849][ T5021] and is ignored by this kernel. Remove the mand [ 62.806849][ T5021] option from the mount to silence this warning. [ 62.806849][ T5021] ======================================================= [ 62.827510][ T26] audit: type=1400 audit(1690822062.336:87): avc: denied { ioctl } for pid=5021 comm="syz-executor874" path="/dev/loop0" dev="devtmpfs" ino=648 ioctlcmd=0x4c00 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:fixed_disk_device_t tclass=blk_file permissive=1 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 [ 62.888211][ T26] audit: type=1400 audit(1690822062.376:88): avc: denied { mounton } for pid=5021 comm="syz-executor874" path="/root/bus" dev="sda1" ino=1927 scontext=root:sysadm_r:sysadm_t tcontext=root:object_r:user_home_t tclass=dir permissive=1 [ 62.911340][ T26] audit: type=1400 audit(1690822062.456:89): avc: denied { mount } for pid=5021 comm="syz-executor874" name="/" dev="loop0" ino=2 scontext=root:sysadm_r:sysadm_t tcontext=system_u:object_r:dosfs_t tclass=filesystem permissive=1 [ 62.956320][ T5021] [ 62.958690][ T5021] ============================================ [ 62.964837][ T5021] WARNING: possible recursive locking detected [ 62.971054][ T5021] 6.5.0-rc4-syzkaller #0 Not tainted [ 62.976318][ T5021] -------------------------------------------- [ 62.982447][ T5021] syz-executor874/5021 is trying to acquire lock: [ 62.988840][ T5021] ffff888079fbd588 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1c5/0xf90 [ 62.999796][ T5021] [ 62.999796][ T5021] but task is already holding lock: [ 63.007143][ T5021] ffff88802988e848 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1c5/0xf90 [ 63.018088][ T5021] [ 63.018088][ T5021] other info that might help us debug this: [ 63.026134][ T5021] Possible unsafe locking scenario: [ 63.026134][ T5021] [ 63.033563][ T5021] CPU0 [ 63.036840][ T5021] ---- [ 63.040100][ T5021] lock(&HFSPLUS_I(inode)->extents_lock); [ 63.045889][ T5021] lock(&HFSPLUS_I(inode)->extents_lock); [ 63.051692][ T5021] [ 63.051692][ T5021] *** DEADLOCK *** [ 63.051692][ T5021] [ 63.059815][ T5021] May be due to missing lock nesting notation [ 63.059815][ T5021] [ 63.068113][ T5021] 4 locks held by syz-executor874/5021: [ 63.074767][ T5021] #0: ffff88801f5f8410 (sb_writers#10){.+.+}-{0:0}, at: do_syscall_64+0x38/0xb0 [ 63.083990][ T5021] #1: ffff88802988ea40 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: do_truncate+0x14b/0x220 [ 63.094334][ T5021] #2: ffff88802988e848 (&HFSPLUS_I(inode)->extents_lock){+.+.}-{3:3}, at: hfsplus_file_extend+0x1c5/0xf90 [ 63.105710][ T5021] #3: ffff88801f3d40b0 (&tree->tree_lock/1){+.+.}-{3:3}, at: hfsplus_find_init+0x16d/0x200 [ 63.115792][ T5021] [ 63.115792][ T5021] stack backtrace: [ 63.121747][ T5021] CPU: 1 PID: 5021 Comm: syz-executor874 Not tainted 6.5.0-rc4-syzkaller #0 [ 63.130402][ T5021] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 [ 63.140442][ T5021] Call Trace: [ 63.143708][ T5021] [ 63.146624][ T5021] dump_stack_lvl+0xd9/0x1b0 [ 63.151201][ T5021] __lock_acquire+0x2971/0x5de0 [ 63.156058][ T5021] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 63.162040][ T5021] ? stack_trace_save+0x96/0xd0 [ 63.166888][ T5021] ? filter_irq_stacks+0x90/0x90 [ 63.171822][ T5021] lock_acquire+0x1ae/0x510 [ 63.176346][ T5021] ? hfsplus_file_extend+0x1c5/0xf90 [ 63.181627][ T5021] ? lock_sync+0x190/0x190 [ 63.186031][ T5021] ? preempt_count_sub+0x150/0x150 [ 63.191135][ T5021] __mutex_lock+0x181/0x1340 [ 63.195717][ T5021] ? hfsplus_file_extend+0x1c5/0xf90 [ 63.200993][ T5021] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 63.206962][ T5021] ? hfsplus_file_extend+0x1c5/0xf90 [ 63.212239][ T5021] ? _raw_spin_unlock_irqrestore+0x3b/0x70 [ 63.218057][ T5021] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 63.223601][ T5021] ? lock_sync+0x190/0x190 [ 63.228024][ T5021] ? hfsplus_file_extend+0x1c5/0xf90 [ 63.233307][ T5021] hfsplus_file_extend+0x1c5/0xf90 [ 63.238412][ T5021] ? trace_contention_end+0xd6/0x100 [ 63.243685][ T5021] ? hfsplus_free_fork+0x820/0x820 [ 63.248785][ T5021] ? hfsplus_find_init+0x16d/0x200 [ 63.253889][ T5021] ? hfsplus_brec_find+0x3e8/0x520 [ 63.258994][ T5021] ? hfsplus_brec_remove+0x4f0/0x4f0 [ 63.264298][ T5021] hfsplus_bmap_reserve+0x318/0x410 [ 63.269487][ T5021] __hfsplus_ext_write_extent+0x470/0x5e0 [ 63.275192][ T5021] hfsplus_ext_read_extent+0x84c/0xb00 [ 63.280645][ T5021] ? hfsplus_free_extents+0x510/0x510 [ 63.286016][ T5021] hfsplus_file_extend+0x699/0xf90 [ 63.291125][ T5021] ? hfsplus_free_fork+0x820/0x820 [ 63.296229][ T5021] ? __lock_buffer+0x70/0x70 [ 63.300803][ T5021] ? spin_bug+0x1d0/0x1d0 [ 63.305128][ T5021] hfsplus_get_block+0x1ae/0x9e0 [ 63.310058][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.315334][ T5021] __block_write_begin_int+0x3c0/0x1470 [ 63.320868][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.326137][ T5021] ? invalidate_bh_lrus_cpu+0x170/0x170 [ 63.331667][ T5021] ? __filemap_get_folio+0x1e7/0x990 [ 63.336939][ T5021] block_write_begin+0xb1/0x490 [ 63.341804][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.347087][ T5021] ? reacquire_held_locks+0x4b0/0x4b0 [ 63.352489][ T5021] cont_write_begin+0x52f/0x730 [ 63.357340][ T5021] ? folio_flags.constprop.0+0x56/0x150 [ 63.362899][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.368174][ T5021] ? block_write_begin+0x490/0x490 [ 63.373270][ T5021] ? rcu_is_watching+0x12/0xb0 [ 63.378025][ T5021] ? __mark_inode_dirty+0x297/0xd50 [ 63.383224][ T5021] ? folio_flags.constprop.0+0x56/0x150 [ 63.388758][ T5021] hfsplus_write_begin+0x87/0x140 [ 63.393769][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.399037][ T5021] cont_write_begin+0x336/0x730 [ 63.403872][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.409146][ T5021] ? block_write_begin+0x490/0x490 [ 63.414256][ T5021] ? avc_has_perm_noaudit+0x3b0/0x3b0 [ 63.419615][ T5021] ? preempt_count_sub+0x150/0x150 [ 63.424717][ T5021] hfsplus_write_begin+0x87/0x140 [ 63.429815][ T5021] ? hfsplus_file_extend+0xf90/0xf90 [ 63.435086][ T5021] generic_cont_expand_simple+0x11f/0x200 [ 63.440796][ T5021] ? end_bio_bh_io_sync+0x130/0x130 [ 63.445983][ T5021] ? inode_newsize_ok+0x13c/0x200 [ 63.450993][ T5021] ? setattr_prepare+0x140/0x9b0 [ 63.455928][ T5021] hfsplus_setattr+0x193/0x310 [ 63.460678][ T5021] ? hfsplus_file_fsync+0x5d0/0x5d0 [ 63.465862][ T5021] notify_change+0x670/0x1160 [ 63.470541][ T5021] do_truncate+0x15c/0x220 [ 63.474954][ T5021] ? file_open_root+0x450/0x450 [ 63.479798][ T5021] do_sys_ftruncate+0x6a2/0x790 [ 63.484640][ T5021] do_syscall_64+0x38/0xb0 [ 63.489043][ T5021] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 63.494930][ T5021] RIP: 0033:0x7f6e172b95f9 [ 63.499329][ T5021] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48 [ 63.518923][ T5021] RSP: 002b:00007ffcc99afd08 EFLAGS: 00000246 ORIG_RAX: 000000000000004d [ 63.527327][ T5021] RAX: ffffffffffffffda RBX: 00007ffcc99afed8 RCX: 00007f6e172b95f9 [ 63.535294][ T5021] RDX: 00007f6e172f49b3 RSI: 0000000002007ffb RDI: 0000000000000004 [ 63.543246][ T5021] RBP: 00007f6e1732c610 R08: 0000000000000000 R09: 00007ffcc99afed8 [ 63.551199][ T5021] R10: 0000000000000603 R11: 0000000000000246 R12: 0000000000000001 ftruncate(4, 33587195) = -1 ENOSPC (No space left on device) exit_group(0) = ? +++ exited with 0 +++ [