INFO: task syz.2.3180:25102 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.3180      state:D stack:22648 pid:25102 tgid:25101 ppid:23039  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:0x7f0f87d8ebe9
RSP: 002b:00007f0f88cad038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f0f87fb5fa0 RCX: 00007f0f87d8ebe9
RDX: 0000200000001f00 RSI: 0000200000000140 RDI: 0000200000000100
RBP: 00007f0f87e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000e00f R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0f87fb6038 R14: 00007f0f87fb5fa0 R15: 00007ffd7416b248
 </TASK>
INFO: task syz.2.3180:25111 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.3180      state:D stack:27568 pid:25111 tgid:25101 ppid:23039  task_flags:0x400040 flags:0x00004006
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:0x7f0f87d8ebe9
RSP: 002b:00007f0f88c8c038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0f87fb6090 RCX: 00007f0f87d8ebe9
RDX: 0000000000000042 RSI: 0000200000000440 RDI: ffffffffffffff9c
RBP: 00007f0f87e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0f87fb6128 R14: 00007f0f87fb6090 R15: 00007ffd7416b248
 </TASK>
INFO: task syz.2.3180:25116 blocked for more than 143 seconds.
      Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.3180      state:D stack:22760 pid:25116 tgid:25101 ppid:23039  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:0x7f0f87d8ebe9
RSP: 002b:00007f0f88c6b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f0f87fb6180 RCX: 00007f0f87d8ebe9
RDX: 0000000000021000 RSI: 0000200000000200 RDI: ffffffffffffff9c
RBP: 00007f0f87e11e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f0f87fb6218 R14: 00007f0f87fb6180 R15: 00007ffd7416b248
 </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/5675:
 #0: ffff88801ffa50a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000291b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
3 locks held by kworker/1:5/5891:
 #0: ffff88802fc19148 ((wq_completion)xfs-conv/loop2){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900038f7bc0 ((work_completion)(&ip->i_ioend_work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff888020fca618 (sb_internal#4){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980
3 locks held by syz.2.3180/25102:
 #0: ffff888020fca428 (sb_writers#18){++++}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888024ae5330 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff888020fca618 (sb_internal#4){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980
1 lock held by syz.2.3180/25111:
 #0: ffff888024ae5330 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: process_measurement+0x3d8/0x1a40
4 locks held by syz.2.3180/25116:
 #0: ffff88810e5d34a8 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: process_measurement+0x74b/0x1a40
 #1: ffff888011723b30 (&sb->s_type->i_mutex_key#23){++++}-{4:4}, at: xfs_ilock+0x119/0x390
 #2: ffff888020fca428 (sb_writers#18){++++}-{0:0}, at: filemap_read+0x1002/0x11a0
 #3: ffff888020fca618 (sb_internal#4){++++}-{0:0}, at: xfs_trans_alloc+0x12b/0x980
2 locks held by syz.4.3916/28136:
 #0: ffffffff8e88dea8 (bio_slab_lock){+.+.}-{4:4}, at: bioset_exit+0x44a/0x690
 #1: ffffffff8e13f840 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570

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

NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #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: 28136 Comm: syz.4.3916 Not tainted 6.17.0-rc1-syzkaller-00036-gdfc0f6373094-dirty #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:qlist_move_cache+0x86/0x120
Code: 8b 2d c6 34 9a 0b 4c 89 e7 e8 c6 55 51 ff 48 c1 e8 06 48 83 e0 c0 49 8b 4c 05 08 f6 c1 01 75 5b 49 01 c5 66 90 41 0f b6 45 33 <c1> e0 18 3d 00 00 00 f5 b8 00 00 00 00 4c 0f 45 e8 49 8b 4d 08 8b
RSP: 0018:ffffc90002ee77a0 EFLAGS: 00000086
RAX: 00000000000000f5 RBX: ffff8881208dc8c0 RCX: ffffea0000838c00
RDX: ffffc90023955000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffff88803a20e480 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff520005dced8 R12: ffff888020e36000
R13: ffffea0000838c00 R14: ffffc90002ee77d8 R15: ffffffff99b1f180
FS:  00007f3a5b59f6c0(0000) GS:ffff8880b861c000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe4c0c1f98 CR3: 00000000277fa000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 kasan_quarantine_remove_cache+0x118/0x190
 kmem_cache_destroy+0x6e/0x160
 bioset_exit+0x583/0x690
 bch2_fs_fs_io_direct_exit+0x19/0x30
 bch2_fs_release+0x22c/0x830
 kobject_put+0x22b/0x480
 bch2_fs_get_tree+0xb6e/0x1520
 vfs_get_tree+0x92/0x2b0
 do_new_mount+0x2a2/0x9e0
 __se_sys_mount+0x317/0x410
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3a5a79038a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3a5b59ee68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f3a5b59eef0 RCX: 00007f3a5a79038a
RDX: 0000200000000200 RSI: 0000200000000000 RDI: 00007f3a5b59eeb0
RBP: 0000200000000200 R08: 00007f3a5b59eef0 R09: 0000000001800402
R10: 0000000001800402 R11: 0000000000000246 R12: 0000200000000000
R13: 00007f3a5b59eeb0 R14: 00000000000059a5 R15: 0000200000000080
 </TASK>
