INFO: task syz-executor.5:25261 blocked for more than 143 seconds. Not tainted 6.4.0-syzkaller-01224-g1ef6663a587b #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27520 pid:25261 ppid:25240 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x187b/0x4900 kernel/sched/core.c:6669 schedule+0xc3/0x180 kernel/sched/core.c:6745 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6804 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 filemap_invalidate_lock include/linux/fs.h:816 [inline] blk_ioctl_zeroout block/ioctl.c:182 [inline] blkdev_common_ioctl+0x1532/0x2510 block/ioctl.c:501 blkdev_ioctl+0x520/0x730 block/ioctl.c:615 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856 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:0x7febcf08c389 RSP: 002b:00007febcfd7a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007febcf1ac120 RCX: 00007febcf08c389 RDX: 0000000020000080 RSI: 000000000000127f RDI: 0000000000000007 RBP: 00007febcf0d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff432109af R14: 00007febcfd7a300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8cf27530 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by rcu_tasks_trace/14: #0: ffffffff8cf278f0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:518 1 lock held by khungtaskd/28: #0: ffffffff8cf27360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4746: #0: ffff88802a0d8098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1db0 drivers/tty/n_tty.c:2176 1 lock held by syz-executor.5/24994: 2 locks held by syz-executor.5/25172: 2 locks held by syz-executor.5/25259: 1 lock held by syz-executor.5/25260: 1 lock held by syz-executor.5/25261: #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:816 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1532/0x2510 block/ioctl.c:501 1 lock held by syz-executor.5/25373: #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:826 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 1 lock held by syz-executor.5/25374: #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:826 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 1 lock held by syz-executor.5/25488: #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:826 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 1 lock held by syz-executor.5/25489: #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:826 [inline] #0: ffff88801e13ce48 (mapping.invalidate_lock#2){++++}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.4.0-syzkaller-01224-g1ef6663a587b #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:148 [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:379 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: 25447 Comm: kworker/u4:0 Not tainted 6.4.0-syzkaller-01224-g1ef6663a587b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:rcu_lock_release+0x5/0x30 include/linux/rcupdate.h:332 Code: 00 00 00 45 31 c0 45 31 c9 68 85 99 81 8a e8 f2 79 e9 f6 48 83 c4 08 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 e8 1b 13 0a f7 0f 1e fa e8 12 13 0a f7 48 c7 c7 60 73 f2 8c 48 c7 c6 c5 99 81 RSP: 0018:ffffc900051ffbf0 EFLAGS: 00000293 RAX: ffffffff8a8199c5 RBX: 0000000000000001 RCX: ffff88807ddc3b80 RDX: 0000000000000000 RSI: ffffffff8b386fc0 RDI: ffffffff8b386f80 RBP: 0000000000000001 R08: ffffffff8a811e99 R09: fffffbfff206764d R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000006b R13: dffffc0000000000 R14: ffff88809c2f0c80 R15: ffff888019693440 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d2a4cdf040 CR3: 000000000cd30000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: rcu_read_unlock include/linux/rcupdate.h:806 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x23d/0x5c0 net/batman-adv/network-coding.c:719 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2408 worker_thread+0xa63/0x1210 kernel/workqueue.c:2555 kthread+0x2b8/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308