INFO: task syz.1.144:4350 blocked for more than 143 seconds. Not tainted 5.15.167-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.144 state:D stack:26320 pid: 4350 ppid: 3691 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 rwsem_down_write_slowpath+0xf0c/0x16a0 kernel/locking/rwsem.c:1165 inode_lock include/linux/fs.h:789 [inline] process_measurement+0x443/0x21c0 security/integrity/ima/ima_main.c:242 ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:533 do_open fs/namei.c:3610 [inline] path_openat+0x2748/0x2f20 fs/namei.c:3742 do_filp_open+0x21c/0x460 fs/namei.c:3769 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253 do_sys_open fs/open.c:1269 [inline] __do_sys_openat fs/open.c:1285 [inline] __se_sys_openat fs/open.c:1280 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1280 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f005735aef9 RSP: 002b:00007f00557b2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0057513058 RCX: 00007f005735aef9 RDX: 0000000000020242 RSI: 0000000020000380 RDI: ffffffffffffff9c RBP: 00007f00573cdb76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f0057513058 R15: 00007fffad5e0b48 Showing all locks held in the system: 4 locks held by kworker/u4:0/9: #0: ffff8880197b9138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90000ce7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88805bd0c0e0 ( &type->s_umount_key #60 ){++++}-{3:3} , at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff8880794c1108 ( &sbi->gc_lock ){+.+.}-{3:3} , at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:528 1 lock held by khungtaskd/27: #0: ffffffff8c91fc60 ( rcu_read_lock ){....}-{1:2} , at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3328: #0: ffff88807f489098 ( &tty->ldisc_sem ){++++}-{0:0} , at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bab2e8 ( &ldata->atomic_read_lock ){+.+.}-{3:3} , at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 5 locks held by kworker/1:5/3613: #0: ffff888141bce138 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002f47d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88802424c220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #2: ffff88802424c220 (&dev->mutex){....}-{3:3}, at: hub_event+0x208/0x54c0 drivers/usb/core/hub.c:5769 #3: ffff888059e87220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #3: ffff888059e87220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954 #4: ffff88804a3e91a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:760 [inline] #4: ffff88804a3e91a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x570 drivers/base/dd.c:954 3 locks held by kworker/u4:6/3654: #0: ffff888029910138 ((wq_completion)bat_events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003017d20 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8c91fc60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 include/linux/rcupdate.h:311 3 locks held by kworker/1:14/4013: #0: ffff888017070938 ( (wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003037d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888024056240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2cd/0x4120 drivers/net/netdevsim/fib.c:1478 6 locks held by syz.1.144/4292: 2 locks held by syz.1.144/4350: #0: ffff88805bd0c460 (sb_writers#16){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:377 #1: ffff888061612750 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:789 [inline] #1: ffff888061612750 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: process_measurement+0x443/0x21c0 security/integrity/ima/ima_main.c:242 2 locks held by syz.3.247/4848: #0: ffff88805bd0c0e0 (&type->s_umount_key#60){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:714 #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz.2.632/6303: #0: ffff88805bd0c0e0 (&type->s_umount_key#60){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:714 #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 2 locks held by syz.3.701/6600: #0: ffff88805bd0c0e0 (&type->s_umount_key#60){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:714 #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff888147bb07d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5100 Comm: kworker/u4:9 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:__local_bh_disable_ip+0x7b/0x210 kernel/softirq.c:305 Code: 8c 48 c7 44 24 30 70 7b 4d 81 4c 8d 6c 24 20 49 c1 ed 03 48 b8 f1 f1 f1 f1 00 f2 f2 f2 4b 89 44 25 00 66 43 c7 44 25 09 f3 f3 <43> c6 44 25 0b f3 65 8b 05 d0 f3 b4 7e a9 00 00 0f 00 0f 85 59 01 RSP: 0018:ffffc90002e17a60 EFLAGS: 00000a06 RAX: f2f2f200f1f1f1f1 RBX: ffffffff8a11b948 RCX: 0000000000000056 RDX: 1ffff11003f619e9 RSI: 0000000000000201 RDI: ffffffff8a11b948 RBP: ffffc90002e17b38 R08: ffffffff8186db50 R09: ffffed1009d47aa9 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff920005c2f50 R14: ffffc90002e17ac0 R15: 0000000000000201 FS: 0000000000000000(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001200 CR3: 0000000079969000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:134 [inline] _raw_spin_lock_bh+0x18/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:368 [inline] batadv_nc_purge_paths+0xe8/0x3b0 net/batman-adv/network-coding.c:446 batadv_nc_worker+0x30b/0x5b0 net/batman-adv/network-coding.c:726 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287