INFO: task syz-executor.2:31405 blocked for more than 143 seconds. Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28136 pid:31405 ppid: 3638 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5178 [inline] __schedule+0xa00/0x4c10 kernel/sched/core.c:6490 schedule+0xda/0x1b0 kernel/sched/core.c:6566 rwsem_down_write_slowpath+0x697/0x11e0 kernel/locking/rwsem.c:1182 __down_write_common kernel/locking/rwsem.c:1297 [inline] __down_write_common kernel/locking/rwsem.c:1294 [inline] __down_write kernel/locking/rwsem.c:1306 [inline] down_write+0x135/0x150 kernel/locking/rwsem.c:1553 inode_lock include/linux/fs.h:760 [inline] process_measurement+0x170b/0x1880 security/integrity/ima/ima_main.c:241 ima_file_check+0xac/0x100 security/integrity/ima/ima_main.c:517 do_open fs/namei.c:3501 [inline] path_openat+0x1611/0x28f0 fs/namei.c:3632 do_filp_open+0x1b6/0x400 fs/namei.c:3659 do_sys_openat2+0x16d/0x4c0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f812c489209 RSP: 002b:00007f812d5d4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f812c59c100 RCX: 00007f812c489209 RDX: 000000000000275a RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007f812c4e3161 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd889bc76f R14: 00007f812d5d4300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8bd86870 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8bd86570 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xc70 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8bd873c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6492 2 locks held by getty/3278: #0: ffff88814b210098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124 3 locks held by syz-fuzzer/3628: #0: ffff88807f06a460 (sb_writers#4){.+.+}-{0:0}, at: do_unlinkat+0x17f/0x650 fs/namei.c:4218 #1: ffff88803f3bc030 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:795 [inline] #1: ffff88803f3bc030 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: do_unlinkat+0x26c/0x650 fs/namei.c:4222 #2: ffff888037c27258 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:760 [inline] #2: ffff888037c27258 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: vfs_unlink+0xd5/0x920 fs/namei.c:4160 3 locks held by syz-executor.2/31397: 1 lock held by syz-executor.2/31398: 2 locks held by syz-executor.2/31405: #0: ffff88807f06a460 (sb_writers#4){.+.+}-{0:0}, at: do_open fs/namei.c:3492 [inline] #0: ffff88807f06a460 (sb_writers#4){.+.+}-{0:0}, at: path_openat+0x1b5d/0x28f0 fs/namei.c:3632 #1: ffff888037c27258 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:760 [inline] #1: ffff888037c27258 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: process_measurement+0x170b/0x1880 security/integrity/ima/ima_main.c:241 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 26908 Comm: kworker/u4:11 Not tainted 5.19.0-syzkaller-02972-g200e340f2196 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Workqueue: bat_events batadv_nc_worker RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline] RIP: 0010:rcu_is_watching+0x24/0xb0 kernel/rcu/tree.c:718 Code: 84 00 00 00 00 00 55 53 65 ff 05 77 15 9d 7e e8 42 af 12 08 48 c7 c3 48 4c 03 00 83 f8 07 89 c5 77 7a 48 8d 3c ed e0 08 80 8b <48> b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 75 RSP: 0018:ffffc9000a6e7b98 EFLAGS: 00000297 RAX: 0000000000000001 RBX: 0000000000034c48 RCX: ffffffff815e9871 RDX: dffffc0000000000 RSI: 0000000000000002 RDI: ffffffff8b8008e8 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8dbc0c17 R10: fffffbfff1b78182 R11: 0000000000000001 R12: 0000000000000001 R13: 0000000000000000 R14: dffffc0000000000 R15: 00000000000003f9 FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c002c7c408 CR3: 000000000ba8e000 CR4: 0000000000350ee0 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x1c/0x70 kernel/rcu/update.c:123 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x560/0x780 kernel/locking/lockdep.c:5677 rcu_lock_release include/linux/rcupdate.h:285 [inline] rcu_read_unlock include/linux/rcupdate.h:739 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x86b/0xfa0 net/batman-adv/network-coding.c:719 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306