INFO: task syz-executor.4:15430 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27560 pid:15430 ppid:5116 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 lock_rename+0x186/0x1a0 do_renameat2+0x549/0x13c0 fs/namei.c:4864 __do_sys_rename fs/namei.c:4969 [inline] __se_sys_rename fs/namei.c:4967 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4967 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:0x7fc37268c169 RSP: 002b:00007fc373476168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007fc3727ac050 RCX: 00007fc37268c169 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000080 RBP: 00007fc3726e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd91d4b51f R14: 00007fc373476300 R15: 0000000000022000 INFO: task syz-executor.4:15432 blocked for more than 143 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:28560 pid:15432 ppid:5116 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_read_slowpath+0x5f4/0x950 kernel/locking/rwsem.c:1086 __down_read_common+0x61/0x2c0 kernel/locking/rwsem.c:1250 inode_lock_shared include/linux/fs.h:768 [inline] lookup_slow+0x45/0x70 fs/namei.c:1702 walk_component+0x2d0/0x400 fs/namei.c:1994 lookup_last fs/namei.c:2451 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2475 filename_lookup+0x255/0x610 fs/namei.c:2504 user_path_at_empty+0x44/0x180 fs/namei.c:2877 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:551 [inline] __se_sys_chdir+0xbf/0x220 fs/open.c:545 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:0x7fc37268c169 RSP: 002b:00007fc373455168 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007fc3727ac120 RCX: 00007fc37268c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200003c0 RBP: 00007fc3726e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd91d4b51f R14: 00007fc373455300 R15: 0000000000022000 INFO: task syz-executor.4:15435 blocked for more than 144 seconds. Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:27424 pid:15435 ppid:5116 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:758 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x7ba/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 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:0x7fc37268c169 RSP: 002b:00007fc373434168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fc3727ac1f0 RCX: 00007fc37268c169 RDX: 0000000000000000 RSI: 0000000000048842 RDI: 00000000200005c0 RBP: 00007fc3726e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd91d4b51f R14: 00007fc373434300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25530 (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: ffffffff8cf25d30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf25360 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by udevd/4429: 2 locks held by getty/4740: #0: ffff88802cb9c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by syz-executor.5/5107: #0: ffff8880234c40e0 (&type->s_umount_key#49){++++}-{3:3}, at: deactivate_super+0xad/0xf0 fs/super.c:361 #1: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] #1: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:989 2 locks held by kworker/1:27/9624: #0: ffff888012472538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77e/0x10e0 kernel/workqueue.c:2363 #1: ffffc90016047d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7c8/0x10e0 kernel/workqueue.c:2365 1 lock held by syz-executor.4/15424: 2 locks held by syz-executor.4/15430: #0: ffff888020fa0460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888038330190 (&type->i_mutex_dir_key#24/1){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0 1 lock held by syz-executor.4/15432: #0: ffff888038330190 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff888038330190 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1702 2 locks held by syz-executor.4/15435: #0: ffff888020fa0460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888038330190 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888038330190 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888038330190 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 2 locks held by syz-executor.2/15496: 2 locks held by syz-executor.2/15502: #0: ffff88807eaa0460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888038330c30 (&type->i_mutex_dir_key#24/1){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0 1 lock held by syz-executor.2/15507: #0: ffff888038330c30 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:768 [inline] #0: ffff888038330c30 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: lookup_slow+0x45/0x70 fs/namei.c:1702 2 locks held by syz-executor.2/15510: #0: ffff88807eaa0460 (sb_writers#31){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888038330c30 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888038330c30 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff888038330c30 (&type->i_mutex_dir_key#24){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 1 lock held by udevd/15588: #0: ffff88801c14d5c0 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:813 [inline] #0: ffff88801c14d5c0 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xf1/0x7c0 mm/readahead.c:226 3 locks held by syz-executor.2/16652: 4 locks held by syz-executor.4/16654: #0: ffff88802312d158 (&mousedev->mutex/1){+.+.}-{3:3}, at: mixdev_close_devices+0x32/0x240 drivers/input/mousedev.c:486 #1: ffff888025674158 (&mousedev->mutex#2){+.+.}-{3:3}, at: mousedev_close_device drivers/input/mousedev.c:441 [inline] #1: ffff888025674158 (&mousedev->mutex#2){+.+.}-{3:3}, at: mixdev_close_devices+0xcd/0x240 drivers/input/mousedev.c:494 #2: ffff88802342e2c0 (&dev->mutex#2){+.+.}-{3:3}, at: input_close_device+0x4b/0x1d0 drivers/input/input.c:702 #3: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #3: ffffffff8cf2a838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3a3/0x890 kernel/rcu/tree_exp.h:989 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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+0x270/0x300 kernel/kthread.c:376 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: 15424 Comm: syz-executor.4 Not tainted 6.3.0-rc5-syzkaller-00022-g76f598ba7d8e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:preempt_count_sub+0x32/0x160 kernel/sched/core.c:5802 Code: fb 48 c7 c0 e0 30 ad 91 48 c1 e8 03 49 be 00 00 00 00 00 fc ff df 42 0f b6 04 30 84 c0 0f 85 c0 00 00 00 83 3d 3e e4 4e 10 00 <75> 22 65 8b 05 dd 67 a5 7e 89 c1 81 e1 ff ff ff 7f 39 d9 7c 23 81 RSP: 0018:ffffc900153b5978 EFLAGS: 00000246 RAX: 0000000000000004 RBX: 0000000000000001 RCX: ffffffff91ad3003 RDX: dffffc0000000000 RSI: ffffc900153b0000 RDI: 0000000000000001 RBP: ffffc900153b5a60 R08: ffffc900153b7f20 R09: ffffc900153b5ab0 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900153b5a60 R13: ffffffff8ed9b515 R14: dffffc0000000000 R15: ffffc900153b7f30 FS: 00007fc373497700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01409e567 CR3: 0000000022eca000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0x19a7/0x2180 arch/x86/kernel/unwind_orc.c:647 arch_stack_walk+0x111/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3787 [inline] kmem_cache_free+0x297/0x520 mm/slub.c:3809 free_buffer_head+0x55/0x240 fs/buffer.c:2963 try_to_free_buffers+0x306/0x610 fs/buffer.c:2904 shrink_folio_list+0x25fa/0x8b80 mm/vmscan.c:2010 shrink_inactive_list mm/vmscan.c:2536 [inline] shrink_list mm/vmscan.c:2777 [inline] shrink_lruvec+0x16e6/0x2d30 mm/vmscan.c:6250 shrink_node_memcgs mm/vmscan.c:6437 [inline] shrink_node+0x10d8/0x2730 mm/vmscan.c:6473 shrink_zones mm/vmscan.c:6711 [inline] do_try_to_free_pages+0x67e/0x1900 mm/vmscan.c:6773 try_to_free_mem_cgroup_pages+0x455/0xa50 mm/vmscan.c:7088 reclaim_high+0x1e5/0x270 mm/memcontrol.c:2403 mem_cgroup_handle_over_high+0x14a/0x2b0 mm/memcontrol.c:2588 try_charge_memcg+0x13b5/0x16d0 mm/memcontrol.c:2826 try_charge mm/memcontrol.c:2837 [inline] charge_memcg+0x11a/0x3f0 mm/memcontrol.c:6960 __mem_cgroup_charge+0x27/0x80 mm/memcontrol.c:6981 mem_cgroup_charge include/linux/memcontrol.h:678 [inline] __filemap_add_folio+0xe78/0x1b50 mm/filemap.c:857 filemap_add_folio+0x121/0x580 mm/filemap.c:939 do_read_cache_folio+0x2c4/0x820 mm/filemap.c:3650 do_read_cache_page+0x32/0x230 mm/filemap.c:3749 read_mapping_page include/linux/pagemap.h:769 [inline] dir_get_page fs/minix/dir.c:76 [inline] minix_find_entry+0x1b7/0x530 fs/minix/dir.c:176 minix_inode_by_name+0x9e/0x240 fs/minix/dir.c:460 minix_lookup+0xc5/0x150 fs/minix/namei.c:30 __lookup_slow+0x282/0x3e0 fs/namei.c:1686 lookup_slow+0x53/0x70 fs/namei.c:1703 walk_component+0x2d0/0x400 fs/namei.c:1994 lookup_last fs/namei.c:2451 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2475 do_o_path+0x95/0x230 fs/namei.c:3686 path_openat+0x29f0/0x3170 fs/namei.c:3708 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_open fs/open.c:1372 [inline] __se_sys_open fs/open.c:1368 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1368 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:0x7fc37268c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc373497168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fc3727abf80 RCX: 00007fc37268c169 RDX: 0000000000000002 RSI: 0000000000301000 RDI: 0000000020000040 RBP: 00007fc3726e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd91d4b51f R14: 00007fc373497300 R15: 0000000000022000