INFO: task syz-executor.3:18114 blocked for more than 143 seconds. Not tainted 6.6.0-syzkaller-15365-g305230142ae0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:24072 pid:18114 tgid:18113 ppid:5098 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5376 [inline] __schedule+0x1960/0x4a80 kernel/sched/core.c:6688 __schedule_loop kernel/sched/core.c:6763 [inline] schedule+0x149/0x260 kernel/sched/core.c:6778 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835 rwsem_down_write_slowpath+0xee6/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:802 [inline] f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline] __f2fs_ioctl+0x35a4/0xbb70 fs/f2fs/file.c:4234 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f577ba7cae9 RSP: 002b:00007f577c7800c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f577bb9bf80 RCX: 00007f577ba7cae9 RDX: 0000000000008301 RSI: 000000000000f502 RDI: 0000000000000005 RBP: 00007f577bac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f577bb9bf80 R15: 00007ffe1eab2538 Showing all locks held in the system: 3 locks held by kworker/0:0/8: #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc900000d7d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc900000d7d20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff888014ea0240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x2d1/0x4130 drivers/net/netdevsim/fib.c:1489 1 lock held by ksoftirqd/1/22: #0: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 1 lock held by khungtaskd/29: #0: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #0: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #0: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 4 locks held by kworker/u4:2/42: #0: ffff88801aa6d138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff88801aa6d138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90000b2fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90000b2fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #2: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: super_trylock_shared+0x22/0xf0 fs/super.c:610 #3: ffff88802a8752a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline] #3: ffff88802a8752a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x500/0x730 fs/f2fs/segment.c:437 4 locks held by syslogd/4501: #0: ffff8880b993c358 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 #1: ffff88807e797260 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #1: ffff88807e797260 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #1: ffff88807e797260 (&sb->s_type->i_mutex_key#11){+.+.}-{3:3}, at: is_bpf_text_address+0x26/0x2a0 kernel/bpf/core.c:733 #2: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #2: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #2: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: filemap_get_entry+0x127/0x4d0 mm/filemap.c:1803 #3: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline] #3: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline] #3: ffffffff8d92d0a0 (rcu_read_lock){....}-{1:2}, at: __mod_lruvec_page_state+0xaa/0x430 mm/memcontrol.c:881 2 locks held by getty/4817: #0: ffff88802674a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015c72f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 2 locks held by syz-executor.3/18114: #0: ffff88807c90c418 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:448 #1: ffff888055ec9300 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff888055ec9300 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2172 [inline] #1: ffff888055ec9300 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: __f2fs_ioctl+0x35a4/0xbb70 fs/f2fs/file.c:4234 7 locks held by syz-executor.3/18139: 2 locks held by syz-executor.0/18821: #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.1/18886: #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 2 locks held by syz-executor.0/18921: #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88807c90c0e0 (&type->s_umount_key#75){++++}-{3:3}, at: super_lock+0x176/0x390 fs/super.c:117 #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline] #1: ffff88814276e7d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xb20 fs/fs-writeback.c:2756 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-syzkaller-15365-g305230142ae0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/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+0x198/0x310 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+0xfa9/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 11 Comm: kworker/u4:0 Not tainted 6.6.0-syzkaller-15365-g305230142ae0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:check_wait_context kernel/locking/lockdep.c:4797 [inline] RIP: 0010:__lock_acquire+0x8b3/0x7f70 kernel/locking/lockdep.c:5086 Code: 41 8b 1f 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 60 23 dd 90 be 08 00 00 00 e8 35 84 7d 00 48 0f a3 1d 0d c8 6f 0f <73> 1a 48 69 c3 d0 00 00 00 4c 8d a0 60 82 aa 90 49 b8 00 00 00 00 RSP: 0018:ffffc90000107680 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 00000000000006c9 RCX: ffffffff816d5b4b RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90dd2438 RBP: ffffc90000107948 R08: ffffffff90dd243f R09: 1ffffffff21ba487 R10: dffffc0000000000 R11: fffffbfff21ba488 R12: ffff888017a44638 R13: 0000000000000000 R14: ffff888017a44660 R15: ffff888017a44660 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004c9ef000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5753 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_nc_purge_paths+0xe8/0x3a0 net/batman-adv/network-coding.c:442 batadv_nc_worker+0x365/0x610 net/batman-adv/network-coding.c:722 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242