INFO: task syz-executor.0:8688 blocked for more than 143 seconds. Not tainted 6.1.18-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25992 pid:8688 ppid:3667 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5238 [inline] __schedule+0x1391/0x4390 kernel/sched/core.c:6551 schedule+0xbf/0x180 kernel/sched/core.c:6627 rwsem_down_write_slowpath+0xe93/0x14a0 kernel/locking/rwsem.c:1189 filemap_invalidate_lock include/linux/fs.h:801 [inline] blk_ioctl_zeroout block/ioctl.c:182 [inline] blkdev_common_ioctl+0x1410/0x21c0 block/ioctl.c:486 blkdev_ioctl+0x310/0x7c0 block/ioctl.c:610 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc11de8c0f9 RSP: 002b:00007fc11eba4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc11dfabf80 RCX: 00007fc11de8c0f9 RDX: 0000000020000100 RSI: 000000000000127f RDI: 0000000000000006 RBP: 00007fc11dee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffcdd2d20f R14: 00007fc11eba4300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf27470 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf27c70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by ksoftirqd/0/15: 1 lock held by khungtaskd/28: #0: ffffffff8cf272a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3315: #0: ffff88814ad0a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by kworker/u4:13/4088: 3 locks held by syz-executor.4/7465: 1 lock held by syz-executor.0/8688: #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1410/0x21c0 block/ioctl.c:486 1 lock held by syz-executor.0/8800: #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1410/0x21c0 block/ioctl.c:486 1 lock held by syz-executor.0/8871: #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:801 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:182 [inline] #0: ffff888140c5a9c0 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1410/0x21c0 block/ioctl.c:486 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.18-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xff3/0x1040 kernel/hung_task.c:377 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7465 Comm: syz-executor.4 Not tainted 6.1.18-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:mark_lock+0x88/0x340 kernel/locking/lockdep.c:4613 Code: 41 d3 e6 49 8d 5f 20 48 89 d8 48 c1 e8 03 42 0f b6 04 28 84 c0 0f 85 29 02 00 00 8b 1b 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 <48> 8d 3c c5 80 61 26 90 be 08 00 00 00 e8 e6 17 76 00 48 0f a3 1d RSP: 0018:ffffc90015fef278 EFLAGS: 00000047 RAX: 0000000000000000 RBX: 000000000000002a RCX: 0000000000000009 RDX: 0000000000000008 RSI: ffff88807e34e238 RDI: ffff88807e34d7c0 RBP: 0000000000000009 R08: dffffc0000000000 R09: fffffbfff204cc47 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807e34e208 R13: dffffc0000000000 R14: 0000000000000200 R15: ffff88807e34e238 FS: 00007f6d9beb9700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0053be518 CR3: 000000007e1d0000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:4556 [inline] __lock_acquire+0xc6a/0x1f80 kernel/locking/lockdep.c:5010 lock_acquire+0x23a/0x630 kernel/locking/lockdep.c:5669 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:306 rcu_read_lock include/linux/rcupdate.h:747 [inline] percpu_ref_get_many+0x15/0x110 include/linux/percpu-refcount.h:202 percpu_ref_get include/linux/percpu-refcount.h:222 [inline] css_get include/linux/cgroup.h:327 [inline] charge_memcg+0x152/0x3f0 mm/memcontrol.c:6898 __mem_cgroup_charge+0x23/0x80 mm/memcontrol.c:6915 mem_cgroup_charge include/linux/memcontrol.h:667 [inline] __filemap_add_folio+0xeb1/0x1c80 mm/filemap.c:852 filemap_add_folio+0x11d/0x570 mm/filemap.c:934 page_cache_ra_unbounded+0x20c/0x7b0 mm/readahead.c:251 do_sync_mmap_readahead+0x7ae/0x980 mm/filemap.c:3044 filemap_fault+0x813/0x17e0 mm/filemap.c:3136 __do_fault+0x136/0x4f0 mm/memory.c:4198 do_read_fault mm/memory.c:4549 [inline] do_fault mm/memory.c:4678 [inline] handle_pte_fault mm/memory.c:4950 [inline] __handle_mm_fault mm/memory.c:5092 [inline] handle_mm_fault+0x3301/0x5140 mm/memory.c:5213 do_user_addr_fault arch/x86/mm/fault.c:1428 [inline] handle_page_fault arch/x86/mm/fault.c:1519 [inline] exc_page_fault+0x655/0x860 arch/x86/mm/fault.c:1575 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570 RIP: 0033:0x7f6d9b028e43 Code: 00 00 00 00 00 66 90 48 89 7c 24 f0 48 89 74 24 e8 48 89 54 24 e0 48 89 4c 24 d8 48 8b 4c 24 f0 48 8b 74 24 e8 4c 8b 44 24 e0 <8b> 81 0c 01 00 00 44 8b 89 08 01 00 00 48 8b 54 24 d8 c1 e0 04 8d RSP: 002b:00007f6d9beb9158 EFLAGS: 00010216 RAX: 00007f6d9b028e20 RBX: 00007f6d9b1abf80 RCX: 0000000020ffd000 RDX: 0000000020001380 RSI: 0000000000000000 RDI: 0000000020ffd000 RBP: 00007f6d9b0e7ae9 R08: 0000000020001380 R09: 0000000000000000 R10: 0000000020ffd000 R11: 0000000020001380 R12: 0000000000000000 R13: 00007ffd1f6cab3f R14: 00007f6d9beb9300 R15: 0000000000022000