./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor669408860 <...> [ 35.768650][ T3209] 8021q: adding VLAN 0 to HW filter on device bond0 [ 35.791702][ T3209] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller syzkaller login: [ 45.677183][ T26] kauditd_printk_skb: 37 callbacks suppressed [ 45.677201][ T26] audit: type=1400 audit(1670400793.435:73): avc: denied { transition } for pid=3420 comm="sshd" path="/bin/sh" dev="sda1" ino=73 scontext=system_u:system_r:initrc_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 45.719356][ T26] audit: type=1400 audit(1670400793.465:74): avc: denied { write } for pid=3420 comm="sh" path="pipe:[1852]" dev="pipefs" ino=1852 scontext=root:sysadm_r:sysadm_t tcontext=system_u:system_r:initrc_t tclass=fifo_file permissive=1 Warning: Permanently added '10.128.0.86' (ECDSA) to the list of known hosts. execve("./syz-executor669408860", ["./syz-executor669408860"], 0x7ffdaf974350 /* 10 vars */) = 0 brk(NULL) = 0x555555be9000 brk(0x555555be9c40) = 0x555555be9c40 arch_prctl(ARCH_SET_FS, 0x555555be9300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor669408860", 4096) = 27 brk(0x555555c0ac40) = 0x555555c0ac40 brk(0x555555c0b000) = 0x555555c0b000 mprotect(0x7f9e0ddcc000, 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 creat("./file0", 000) = 3 ioctl(3, FS_IOC_SETFLAGS, [FS_JOURNAL_DATA_FL]) = 0 openat(AT_FDCWD, "cgroup.controllers", O_RDWR|O_CREAT|O_NOCTTY|O_TRUNC|O_APPEND|FASYNC|0x18, 000) = 4 [ 59.053474][ T26] audit: type=1400 audit(1670400806.815:75): avc: denied { execmem } for pid=3633 comm="syz-executor669" scontext=root:sysadm_r:sysadm_t tcontext=root:sysadm_r:sysadm_t tclass=process permissive=1 [ 59.079988][ T3633] warning: checkpointing journal with EXT4_IOC_CHECKPOINT_FLAG_ZEROOUT can be slow [ 59.107846][ T3633] [ 59.119457][ T3633] ====================================================== [ 59.126454][ T3633] WARNING: possible circular locking dependency detected [ 59.133461][ T3633] 6.1.0-rc8-syzkaller-00014-g8ed710da2873 #0 Not tainted [ 59.140475][ T3633] ------------------------------------------------------ [ 59.147488][ T3633] syz-executor669/3633 is trying to acquire lock: [ 59.153906][ T3633] ffff888140ddd440 (&sb->s_type->i_mutex_key#7){++++}-{3:3}, at: ext4_bmap+0x52/0x470 [ 59.163510][ T3633] [ 59.163510][ T3633] but task is already holding lock: [ 59.170866][ T3633] ffff88814b5a83f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x48b/0xc00 [ 59.181502][ T3633] [ 59.181502][ T3633] which lock already depends on the new lock. [ 59.181502][ T3633] [ 59.191900][ T3633] [ 59.191900][ T3633] the existing dependency chain (in reverse order) is: [ 59.200903][ T3633] [ 59.200903][ T3633] -> #3 (&journal->j_checkpoint_mutex){+.+.}-{3:3}: [ 59.209687][ T3633] mutex_lock_io_nested+0x143/0x11a0 [ 59.215508][ T3633] jbd2_journal_flush+0x19e/0xc00 [ 59.221066][ T3633] __ext4_ioctl+0xb09/0x4a30 [ 59.226183][ T3633] __x64_sys_ioctl+0x197/0x210 [ 59.231482][ T3633] do_syscall_64+0x39/0xb0 [ 59.236424][ T3633] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.242864][ T3633] [ 59.242864][ T3633] -> #2 (&journal->j_barrier){+.+.}-{3:3}: [ 59.250883][ T3633] __mutex_lock+0x12f/0x1360 [ 59.255995][ T3633] jbd2_journal_lock_updates+0x162/0x310 [ 59.262166][ T3633] ext4_change_inode_journal_flag+0x184/0x530 [ 59.268769][ T3633] ext4_fileattr_set+0xdf0/0x1950 [ 59.274321][ T3633] vfs_fileattr_set+0x7f9/0xbe0 [ 59.279708][ T3633] do_vfs_ioctl+0xfa8/0x1600 [ 59.284834][ T3633] __x64_sys_ioctl+0x10c/0x210 [ 59.290139][ T3633] do_syscall_64+0x39/0xb0 [ 59.295076][ T3633] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.301505][ T3633] [ 59.301505][ T3633] -> #1 (&sbi->s_writepages_rwsem){++++}-{0:0}: [ 59.309936][ T3633] percpu_down_write+0x53/0x390 [ 59.317314][ T3633] ext4_ind_migrate+0x23b/0x850 [ 59.322700][ T3633] ext4_fileattr_set+0x14d6/0x1950 [ 59.328339][ T3633] vfs_fileattr_set+0x7f9/0xbe0 [ 59.333724][ T3633] do_vfs_ioctl+0xfa8/0x1600 [ 59.338847][ T3633] __x64_sys_ioctl+0x10c/0x210 [ 59.344146][ T3633] do_syscall_64+0x39/0xb0 [ 59.349082][ T3633] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.355514][ T3633] [ 59.355514][ T3633] -> #0 (&sb->s_type->i_mutex_key#7){++++}-{3:3}: [ 59.364129][ T3633] __lock_acquire+0x2a43/0x56d0 [ 59.369514][ T3633] lock_acquire+0x1e3/0x630 [ 59.374564][ T3633] down_read+0x9c/0x450 [ 59.379250][ T3633] ext4_bmap+0x52/0x470 [ 59.383928][ T3633] bmap+0xae/0x120 [ 59.388180][ T3633] jbd2_journal_bmap+0xac/0x180 [ 59.393563][ T3633] jbd2_journal_flush+0x853/0xc00 [ 59.399125][ T3633] __ext4_ioctl+0xb09/0x4a30 [ 59.404243][ T3633] __x64_sys_ioctl+0x197/0x210 [ 59.409560][ T3633] do_syscall_64+0x39/0xb0 [ 59.414503][ T3633] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.420940][ T3633] [ 59.420940][ T3633] other info that might help us debug this: [ 59.420940][ T3633] [ 59.431161][ T3633] Chain exists of: [ 59.431161][ T3633] &sb->s_type->i_mutex_key#7 --> &journal->j_barrier --> &journal->j_checkpoint_mutex [ 59.431161][ T3633] [ 59.446645][ T3633] Possible unsafe locking scenario: [ 59.446645][ T3633] [ 59.454085][ T3633] CPU0 CPU1 [ 59.459443][ T3633] ---- ---- [ 59.464800][ T3633] lock(&journal->j_checkpoint_mutex); [ 59.470366][ T3633] lock(&journal->j_barrier); [ 59.477657][ T3633] lock(&journal->j_checkpoint_mutex); [ 59.485728][ T3633] lock(&sb->s_type->i_mutex_key#7); [ 59.491108][ T3633] [ 59.491108][ T3633] *** DEADLOCK *** [ 59.491108][ T3633] [ 59.499242][ T3633] 2 locks held by syz-executor669/3633: [ 59.504784][ T3633] #0: ffff88814b5a8170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x162/0x310 [ 59.515814][ T3633] #1: ffff88814b5a83f8 (&journal->j_checkpoint_mutex){+.+.}-{3:3}, at: jbd2_journal_flush+0x48b/0xc00 [ 59.526893][ T3633] [ 59.526893][ T3633] stack backtrace: [ 59.532791][ T3633] CPU: 1 PID: 3633 Comm: syz-executor669 Not tainted 6.1.0-rc8-syzkaller-00014-g8ed710da2873 #0 [ 59.543207][ T3633] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 59.553261][ T3633] Call Trace: [ 59.556534][ T3633] [ 59.559460][ T3633] dump_stack_lvl+0xd1/0x138 [ 59.564066][ T3633] check_noncircular+0x25f/0x2e0 [ 59.569024][ T3633] ? print_circular_bug+0x1e0/0x1e0 [ 59.574232][ T3633] ? lock_downgrade+0x6e0/0x6e0 [ 59.579096][ T3633] ? finish_task_switch.isra.0+0x2b5/0xc80 [ 59.584912][ T3633] __lock_acquire+0x2a43/0x56d0 [ 59.589776][ T3633] ? lockdep_hardirqs_on_prepare+0x410/0x410 [ 59.595794][ T3633] lock_acquire+0x1e3/0x630 [ 59.600323][ T3633] ? ext4_bmap+0x52/0x470 [ 59.604667][ T3633] ? lock_release+0x810/0x810 [ 59.609374][ T3633] down_read+0x9c/0x450 [ 59.613544][ T3633] ? ext4_bmap+0x52/0x470 [ 59.617879][ T3633] ? rwsem_down_read_slowpath+0xb20/0xb20 [ 59.623609][ T3633] ? find_held_lock+0x2d/0x110 [ 59.628387][ T3633] ext4_bmap+0x52/0x470 [ 59.632546][ T3633] ? mpage_release_unused_pages+0x740/0x740 [ 59.638445][ T3633] bmap+0xae/0x120 [ 59.642174][ T3633] ? do_raw_read_unlock+0x70/0x70 [ 59.647219][ T3633] jbd2_journal_bmap+0xac/0x180 [ 59.652085][ T3633] ? jbd2_log_start_commit+0x50/0x50 [ 59.657403][ T3633] ? _raw_write_unlock+0x28/0x40 [ 59.662378][ T3633] ? jbd2_mark_journal_empty+0x307/0x3f0 [ 59.668045][ T3633] jbd2_journal_flush+0x853/0xc00 [ 59.673091][ T3633] ? jbd2_fc_get_buf+0x310/0x310 [ 59.678061][ T3633] ? _raw_spin_unlock_irqrestore+0x41/0x70 [ 59.683972][ T3633] ? __ext4_ioctl.cold+0x5/0x82 [ 59.688836][ T3633] __ext4_ioctl+0xb09/0x4a30 [ 59.693447][ T3633] ? tomoyo_path_number_perm+0x166/0x550 [ 59.699109][ T3633] ? tomoyo_execute_permission+0x4a0/0x4a0 [ 59.704940][ T3633] ? ext4_reset_inode_seed+0x450/0x450 [ 59.710418][ T3633] ? __sanitizer_cov_trace_switch+0x54/0x90 [ 59.716325][ T3633] ? do_vfs_ioctl+0x132/0x1600 [ 59.721114][ T3633] ? vfs_fileattr_set+0xbe0/0xbe0 [ 59.726153][ T3633] ? ioctl_has_perm.constprop.0.isra.0+0x29a/0x400 [ 59.732926][ T3633] ? ioctl_has_perm.constprop.0.isra.0+0x2a4/0x400 [ 59.739443][ T3633] ? selinux_inode_getsecctx+0xa0/0xa0 [ 59.744912][ T3633] ? find_held_lock+0x2d/0x110 [ 59.749688][ T3633] ? calibrate_delay+0x202/0x1130 [ 59.754730][ T3633] ? lock_downgrade+0x6e0/0x6e0 [ 59.759596][ T3633] ? selinux_file_ioctl+0xb5/0x280 [ 59.764718][ T3633] ? ext4_fileattr_set+0x1950/0x1950 [ 59.770021][ T3633] __x64_sys_ioctl+0x197/0x210 [ 59.774823][ T3633] do_syscall_64+0x39/0xb0 [ 59.779253][ T3633] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 59.785166][ T3633] RIP: 0033:0x7f9e0dd5fb69 [ 59.789584][ T3633] Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 ioctl(4, _IOC(_IOC_WRITE, 0x66, 0x2b, 0x4), 0x20000000) = 0 exit_group(0) = ? +++ exited with 0 +++ [ 59.809197][ T3633