INFO: task syz-executor.0:29739 blocked for more than 143 seconds. Not tainted 6.4.0-next-20230707-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28456 pid:29739 ppid:29721 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5380 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6709 schedule+0xde/0x1a0 kernel/sched/core.c:6785 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6844 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 filemap_invalidate_lock include/linux/fs.h:816 [inline] blk_ioctl_zeroout block/ioctl.c:182 [inline] blkdev_common_ioctl+0x14a0/0x1be0 block/ioctl.c:501 blkdev_ioctl+0x24f/0x760 block/ioctl.c:615 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x19d/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f63b368c389 RSP: 002b:00007f63b4428168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f63b37abf80 RCX: 00007f63b368c389 RDX: 00000000200000c0 RSI: 000000000000127f RDI: 0000000000000003 RBP: 00007f63b36d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd294ba83f R14: 00007f63b4428300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c9a3db0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c9a3ab0 ( rcu_tasks_trace.tasks_gp_mutex ){+.+.}-{3:3} , at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8c9a49c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615 1 lock held by klogd/4468: #0: ffff8880b983c3d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 2 locks held by getty/4778: #0: ffff88814aff9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015872f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187 5 locks held by syz-executor.0/29665: 1 lock held by syz-executor.0/29739: #0: ffff888148afd188 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:816 [inline] (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x14a0/0x1be0 block/ioctl.c:501 1 lock held by syz-executor.0/29795: #0: ffff888148afd188 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:816 [inline] #0: ffff888148afd188 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888148afd188 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x14a0/0x1be0 block/ioctl.c:501 1 lock held by syz-executor.0/29846: #0: ffff888148afd188 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:816 [inline] (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x14a0/0x1be0 block/ioctl.c:501 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-next-20230707-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 16552 Comm: kworker/u4:5 Not tainted 6.4.0-next-20230707-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/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:4781 [inline] RIP: 0010:__lock_acquire+0x49a/0x5e20 kernel/locking/lockdep.c:5094 Code: 41 81 e6 ff 1f 45 0f b7 f6 be 08 00 00 00 4c 89 f0 48 c1 e8 06 48 8d 3c c5 00 1e 87 91 e8 ee 9a 71 00 4c 0f a3 35 96 39 21 10 <0f> 83 9e 0c 00 00 4d 69 f6 d0 00 00 00 49 81 c6 20 22 87 91 45 84 RSP: 0018:ffffc900162c7a20 EFLAGS: 00000047 RAX: 0000000000000001 RBX: 1ffff92002c58f76 RCX: ffffffff8165e462 RDX: fffffbfff230e3c1 RSI: 0000000000000008 RDI: ffffffff91871e00 RBP: ffff88804de34698 R08: 0000000000000000 R09: fffffbfff230e3c0 R10: ffffffff91871e07 R11: 0000000000000001 R12: ffff88804de33b80 R13: ffffffff8c9a49c0 R14: 0000000000000020 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000110000 CR3: 000000002a6f6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5761 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5726 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0x131/0xfe0 net/batman-adv/network-coding.c:719 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308