INFO: task syz-executor.0:21760 blocked for more than 143 seconds.
Not tainted 6.4.0-syzkaller-09904-ga507db1d8fdc #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0 state:D stack:26664 pid:21760 ppid:5019 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0x1873/0x48f0 kernel/sched/core.c:6710
schedule+0xc3/0x180 kernel/sched/core.c:6786
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845
rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178
__down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306
inode_lock include/linux/fs.h:771 [inline]
process_measurement+0x43b/0x1cf0 security/integrity/ima/ima_main.c:247
ima_file_check+0xf1/0x170 security/integrity/ima/ima_main.c:543
do_open fs/namei.c:3638 [inline]
path_openat+0x2812/0x3180 fs/namei.c:3793
do_filp_open+0x234/0x490 fs/namei.c:3820
do_sys_openat2+0x13e/0x1d0 fs/open.c:1407
do_sys_open fs/open.c:1422 [inline]
__do_sys_openat fs/open.c:1438 [inline]
__se_sys_openat fs/open.c:1433 [inline]
__x64_sys_openat+0x247/0x290 fs/open.c:1433
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe50e68c389
RSP: 002b:00007fe50f3f5168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fe50e7ac120 RCX: 00007fe50e68c389
RDX: 000000000000275a RSI: 0000000020000100 RDI: ffffffffffffff9c
RBP: 00007fe50e6d7493 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdce1a48df R14: 00007fe50f3f5300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8d326af0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8d326eb0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
#0: ffffffff8d326920 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:4/63:
2 locks held by getty/4743:
#0: ffff88823bc9c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
#1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1db0 drivers/tty/n_tty.c:2176
1 lock held by syz-executor.3/5031:
#0: ffffffff8d32bfb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#0: ffffffff8d32bfb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:992
2 locks held by kworker/1:2/19130:
#0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2569
#1: ffffc90015ac7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2571
2 locks held by syz-executor.0/21760:
#0: ffff8880389da410 (sb_writers#13){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:403
#1: ffff88807be29300 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline]
#1: ffff88807be29300 (&sb->s_type->i_mutex_key#20){+.+.}-{3:3}, at: process_measurement+0x43b/0x1cf0 security/integrity/ima/ima_main.c:247
6 locks held by syz-executor.0/21763:
1 lock held by syz-executor.1/23002:
3 locks held by syz-executor.5/23006:
3 locks held by syz-executor.4/23017:
2 locks held by syz-executor.0/23024:
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.4.0-syzkaller-09904-ga507db1d8fdc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xec2/0xf00 kernel/hung_task.c:379
kthread+0x2b8/0x350 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5117 Comm: kworker/u4:6 Not tainted 6.4.0-syzkaller-09904-ga507db1d8fdc #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: writeback wb_workfn (flush-7:3)
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4822 [inline]
RIP: 0010:__lock_acquire+0x94b/0x7f70 kernel/locking/lockdep.c:5094
Code: 0f b6 84 24 80 00 00 00 0f b6 cb 38 d8 0f 42 c8 89 8c 24 80 00 00 00 49 81 c4 ca 00 00 00 4c 89 e0 48 c1 e8 03 42 0f b6 04 00 <84> c0 0f 85 1d 01 00 00 41 80 3c 24 02 0f 84 9a 00 00 00 48 8b 5c
RSP: 0018:ffffc9000518e9e0 EFLAGS: 00000802
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000003
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9079b3f8
RBP: ffffc9000518eca8 R08: dffffc0000000000 R09: 1ffffffff20f367f
R10: dffffc0000000000 R11: fffffbfff20f3680 R12: ffffffff904d6fda
R13: 0000000000000002 R14: ffff888018ef6478 R15: ffff888018ef6478
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2a0a84a000 CR3: 000000001f387000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5761
local_lock_acquire+0x2d/0x170 include/linux/local_lock_internal.h:29
__radix_tree_preload+0x7b/0x430 lib/radix-tree.c:334
add_free_nid+0x154/0x700 fs/f2fs/node.c:2293
scan_free_nid_bits fs/f2fs/node.c:2440 [inline]
__f2fs_build_free_nids fs/f2fs/node.c:2474 [inline]
f2fs_build_free_nids+0x514/0x11a0 fs/f2fs/node.c:2532
f2fs_balance_fs_bg+0x167/0x990 fs/f2fs/segment.c:481
f2fs_write_node_pages+0x146/0x6a0 fs/f2fs/node.c:2110
do_writepages+0x3a6/0x670 mm/page-writeback.c:2551
__writeback_single_inode+0x155/0xfa0 fs/fs-writeback.c:1603
writeback_sb_inodes+0x8e3/0x11d0 fs/fs-writeback.c:1894
wb_writeback+0x44d/0xc60 fs/fs-writeback.c:2070
wb_do_writeback fs/fs-writeback.c:2217 [inline]
wb_workfn+0x400/0xff0 fs/fs-writeback.c:2257
process_one_work+0x92c/0x12c0 kernel/workqueue.c:2597
worker_thread+0xa63/0x1210 kernel/workqueue.c:2748
kthread+0x2b8/0x350 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308