INFO: task syz.9.6383:12272 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.6383      state:D stack:22760 pid:12272 tgid:12271 ppid:12013  task_flags:0x440140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 xlog_grant_head_wait+0x453/0xa20
 xlog_grant_head_check+0x286/0x420
 xfs_log_reserve+0x2cc/0x780
 xfs_trans_alloc+0x29c/0x980
 xfs_trans_alloc_inode+0x13c/0x4a0
 xfs_attr_set+0x7fa/0x1210
 xfs_xattr_set+0x14d/0x250
 __vfs_setxattr+0x43c/0x480
 __vfs_setxattr_noperm+0x12d/0x660
 vfs_setxattr+0x16b/0x2f0
 filename_setxattr+0x274/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_setxattr+0xbc/0xe0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcdda58ebe9
RSP: 002b:00007fcddb4d7038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007fcdda7b5fa0 RCX: 00007fcdda58ebe9
RDX: 0000200000001f00 RSI: 0000200000000140 RDI: 0000200000000100
RBP: 00007fcdda611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000e00f R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdda7b6038 R14: 00007fcdda7b5fa0 R15: 00007ffda2c106b8
 </TASK>
INFO: task syz.9.6383:12281 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.6383      state:D stack:27224 pid:12281 tgid:12271 ppid:12013  task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x872/0xfe0
 down_write+0x1ab/0x1f0
 process_measurement+0x3d8/0x1a40
 ima_file_check+0xd7/0x120
 security_file_post_open+0xbb/0x290
 path_openat+0x2f26/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcdda58ebe9
RSP: 002b:00007fcddb4b6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcdda7b6090 RCX: 00007fcdda58ebe9
RDX: 0000000000000042 RSI: 0000200000000440 RDI: ffffffffffffff9c
RBP: 00007fcdda611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdda7b6128 R14: 00007fcdda7b6090 R15: 00007ffda2c106b8
 </TASK>
INFO: task syz.9.6383:12282 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.9.6383      state:D stack:22648 pid:12282 tgid:12271 ppid:12013  task_flags:0x440040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 xlog_grant_head_wait+0x453/0xa20
 xlog_grant_head_check+0x286/0x420
 xfs_log_reserve+0x2cc/0x780
 xfs_trans_alloc+0x29c/0x980
 xfs_vn_update_time+0x1c0/0x570
 touch_atime+0x2f9/0x6d0
 filemap_read+0x1002/0x11a0
 xfs_file_buffered_read+0x1a2/0x350
 xfs_file_read_iter+0x280/0x510
 __kernel_read+0x4cf/0x960
 integrity_kernel_read+0x89/0xd0
 ima_calc_file_hash+0x85e/0x16f0
 ima_collect_measurement+0x428/0x8e0
 process_measurement+0x1121/0x1a40
 ima_file_check+0xd7/0x120
 security_file_post_open+0xbb/0x290
 path_openat+0x2f26/0x3830
 do_filp_open+0x1fa/0x410
 do_sys_openat2+0x121/0x1c0
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fcdda58ebe9
RSP: 002b:00007fcddb495038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fcdda7b6180 RCX: 00007fcdda58ebe9
RDX: 0000000000021000 RSI: 0000200000000200 RDI: ffffffffffffff9c
RBP: 00007fcdda611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fcdda7b6218 R14: 00007fcdda7b6180 R15: 00007ffda2c106b8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/11167:
 #0: ffff88810efe60a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900026282f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/1:5/9580:
 #0: ffff88802e4bc148 ((wq_completion)xfs-conv/loop9){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000299fbc0 ((work_completion)(&ip->i_ioend_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888022cfe618 (sb_internal#2){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980
3 locks held by syz.9.6383/12272:
 #0: ffff888022cfe428 (sb_writers#30){++++}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888114d29b30 (&sb->s_type->i_mutex_key#36){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888022cfe618 (sb_internal#2){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980
1 lock held by syz.9.6383/12281:
 #0: ffff888114d29b30 (&sb->s_type->i_mutex_key#36){++++}-{4:4}, at: process_measurement+0x3d8/0x1a40
4 locks held by syz.9.6383/12282:
 #0: ffff8881166efe38 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: process_measurement+0x74b/0x1a40
 #1: ffff8881135ed330 (&sb->s_type->i_mutex_key#36){++++}-{4:4}, at: xfs_ilock+0x119/0x390
 #2: ffff888022cfe428 (sb_writers#30){++++}-{0:0}, at: filemap_read+0x1002/0x11a0
 #3: ffff888022cfe618 (sb_internal#2){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980

=============================================

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:pv_native_safe_halt+0x13/0x20
Code: 13 e8 02 00 cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d 33 e7 0e 00 f3 0f 1e fa fb f4 <c3> cc cc cc cc cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffffff8de07d80 EFLAGS: 00000282
RAX: a847b696b6615200 RBX: ffffffff81968308 RCX: a847b696b6615200
RDX: 0000000000000001 RSI: ffffffff8d9b6dbe RDI: ffffffff8be33400
RBP: ffffffff8de07eb8 R08: ffff88804b032f9b R09: 1ffff110096065f3
R10: dffffc0000000000 R11: ffffed10096065f4 R12: ffffffff8fa37e30
R13: 0000000000000000 R14: 0000000000000000 R15: 1ffffffff1bd2a20
FS:  0000000000000000(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000c000 CR3: 0000000109ac0000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 default_idle+0x13/0x20
 default_idle_call+0x74/0xb0
 do_idle+0x1e8/0x510
 cpu_startup_entry+0x44/0x60
 rest_init+0x2de/0x300
 start_kernel+0x3a9/0x410
 x86_64_start_reservations+0x24/0x30
 x86_64_start_kernel+0x143/0x1c0
 common_startup_64+0x13e/0x147
 </TASK>
