INFO: task syz.6.950:11770 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.950       state:D stack:25096 pid:11770 tgid:11770 ppid:7874   task_flags:0x400040 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1350
 ima_file_free+0x16c/0x460
 security_file_release+0x93/0x150
 __fput+0x3b3/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9afdf8ec29
RSP: 002b:00007ffd8a535428 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f9afe1d7da0 RCX: 00007f9afdf8ec29
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f9afe1d7da0 R08: 0000000000017944 R09: 000000148a53571f
R10: 00007f9afe1d7cb0 R11: 0000000000000246 R12: 0000000000050afd
R13: 00007ffd8a535520 R14: ffffffffffffffff R15: 00007ffd8a535540
 </TASK>
INFO: task syz.6.950:11790 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.950       state:D stack:25960 pid:11790 tgid:11770 ppid:7874   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x7e6/0x1350
 ima_file_free+0x16c/0x460
 security_file_release+0x93/0x150
 __fput+0x3b3/0xa70
 task_work_run+0x1d4/0x260
 exit_to_user_mode_loop+0xec/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9afdf8ec29
RSP: 002b:00007f9afee97038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: 0000000000000000 RBX: 00007f9afe1d6180 RCX: 00007f9afdf8ec29
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f9afe011e41 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000008000c66 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9afe1d6218 R14: 00007f9afe1d6180 R15: 00007ffd8a5352c8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/34:
 #0: ffffffff8e13a0e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
5 locks held by kworker/1:1/47:
 #0: ffff88801bb78d48 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000075fbc0 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8880246fb198 (&dev->mutex){....}-{4:4}, at: hub_event+0x184/0x4a20
 #3: ffff88811cf32198 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x400
 #4: ffff888112859160 (&dev->mutex){....}-{4:4}, at: __device_attach+0x88/0x400
2 locks held by getty/5674:
 #0: ffff8880255b00a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by syz-executor/10919:
 #0: ffff88802a1600e0 (&type->s_umount_key#53){+.+.}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffffffff8e13fa40 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x570
1 lock held by syz.6.950/11770:
 #0: ffff88803aa46178 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: ima_file_free+0x16c/0x460
1 lock held by syz.6.950/11771:
1 lock held by syz.6.950/11790:
 #0: ffff88803aa46178 (&ima_iint_mutex_key[depth]){+.+.}-{4:4}, at: ima_file_free+0x16c/0x460
3 locks held by syz.7.1397/14483:
 #0: ffff888034700920 (&c->sb_lock){+.+.}-{4:4}, at: bch2_fs_open+0x11e5/0x2600
 #1: ffff8880347049d8 (&c->mark_lock){++++}-{0:0}, at: bch2_sb_replicas_to_cpu_replicas+0x117/0x1a0
 #2: ffffffff8e13fb78 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x2f6/0x730

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 34 Comm: khungtaskd Not tainted syzkaller #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+0x439/0x7d0
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 11771 Comm: syz.6.950 Not tainted syzkaller #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:sha256_blocks_generic+0x8a5/0x1b70
Code: 00 00 44 89 c1 c1 c1 0f 44 89 c2 c1 c2 0d 31 ca 41 c1 e8 0a 8b 8c 9c 80 01 00 00 89 cf c1 c7 19 41 31 d0 89 ca c1 c2 0e 31 fa <c1> e9 03 31 d1 01 f1 01 c1 44 01 c1 89 8c 9c bc 01 00 00 48 83 fb
RSP: 0018:ffffc9000352ef20 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000010 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000352f258 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffc9000352f3b0
R13: ffff8880412a6c3c R14: 0000000000000000 R15: ffffc9000352f3a8
FS:  00007f9afeed96c0(0000) GS:ffff8881a3c12000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055558eabb608 CR3: 000000011b642000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __sha256_update+0xf7/0x150
 crypto_sha256_update+0x27/0x40
 ima_calc_file_hash+0x8a0/0x16f0
 ima_collect_measurement+0x428/0x8e0
 process_measurement+0x1121/0x1a40
 ima_file_mmap+0x1a2/0x1f0
 security_mmap_file+0x7a4/0xa60
 vm_mmap_pgoff+0x129/0x4d0
 ksys_mmap_pgoff+0x51f/0x760
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9afdf8ec29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9afeed9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f9afe1d5fa0 RCX: 00007f9afdf8ec29
RDX: 00000000027ffff7 RSI: 0000000000600000 RDI: 0000200000000000
RBP: 00007f9afe011e41 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000004012011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9afe1d6038 R14: 00007f9afe1d5fa0 R15: 00007ffd8a5352c8
 </TASK>
