INFO: task syz-executor.2:12910 blocked for more than 143 seconds. Not tainted 6.8.0-rc7-syzkaller-00260-gfa4b851b4ad6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28432 pid:12910 tgid:12893 ppid:5839 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0x177f/0x49a0 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0x149/0x260 kernel/sched/core.c:6817 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6874 rwsem_down_write_slowpath+0xeea/0x13b0 kernel/locking/rwsem.c:1178 __down_write_common+0x1ae/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:804 [inline] chown_common+0x3e0/0x850 fs/open.c:778 do_fchownat+0x16d/0x250 fs/open.c:819 __do_sys_lchown fs/open.c:844 [inline] __se_sys_lchown fs/open.c:842 [inline] __x64_sys_lchown+0x85/0xa0 fs/open.c:842 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f0be747dda9 RSP: 002b:00007f0be81ec0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000005e RAX: ffffffffffffffda RBX: 00007f0be75ac050 RCX: 00007f0be747dda9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000 RBP: 00007f0be74ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f0be75ac050 R15: 00007ffe0c96d678 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8e130be0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614 2 locks held by getty/4809: #0: ffff88802f1300a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201 1 lock held by syz-executor.3/5088: #0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8e136578 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:995 2 locks held by kworker/1:4/5139: #0: ffff888014c7a538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #0: ffff888014c7a538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 #1: ffffc9000482fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2608 [inline] #1: ffffc9000482fd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1420 kernel/workqueue.c:2706 3 locks held by syz-executor.2/12900: 2 locks held by syz-executor.2/12910: #0: ffff888011110420 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:409 #1: ffff8880375f3070 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff8880375f3070 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: chown_common+0x3e0/0x850 fs/open.c:778 2 locks held by syz-executor.2/15922: 2 locks held by syz-executor.4/15948: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.8.0-rc7-syzkaller-00260-gfa4b851b4ad6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0xfaf/0xff0 kernel/hung_task.c:379 kthread+0x2ef/0x390 kernel/kthread.c:388 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15948 Comm: syz-executor.4 Not tainted 6.8.0-rc7-syzkaller-00260-gfa4b851b4ad6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:try_charge_memcg+0x1698/0x18a0 mm/memcontrol.c:2922 Code: a0 00 00 00 4c 89 f6 e8 26 85 fe ff 31 db eb 02 eb 18 f3 0f 1e fa 48 8b 7c 24 60 4c 89 f6 e8 0f 85 fe ff eb 05 bb f4 ff ff ff <48> c7 84 24 00 01 00 00 0e 36 e0 45 48 8b 84 24 f0 00 00 00 41 c7 RSP: 0018:ffffc9000dad7500 EFLAGS: 00000246 RAX: ff715fdd97628800 RBX: 0000000000000000 RCX: ffffffff8171893a RDX: dffffc0000000000 RSI: ffffffff8baab660 RDI: ffffc9000dad7670 RBP: ffffc9000dad7760 R08: ffffffff92c584c7 R09: 1ffffffff258b098 R10: dffffc0000000000 R11: fffffbfff258b099 R12: ffff88803be00000 R13: dffffc0000000000 R14: 0000000000000246 R15: 0000000000000001 FS: 00007fb7071ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555562ac938 CR3: 000000002a788000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: try_charge mm/memcontrol.c:2930 [inline] charge_memcg+0xa2/0x160 mm/memcontrol.c:7276 __mem_cgroup_charge+0x27/0x80 mm/memcontrol.c:7291 mem_cgroup_charge include/linux/memcontrol.h:690 [inline] shmem_alloc_and_add_folio+0x393/0xde0 mm/shmem.c:1677 shmem_get_folio_gfp+0x7c3/0x1ef0 mm/shmem.c:2052 shmem_get_folio mm/shmem.c:2134 [inline] shmem_write_begin+0x170/0x4d0 mm/shmem.c:2717 generic_perform_write+0x321/0x640 mm/filemap.c:3930 shmem_file_write_iter+0xfc/0x120 mm/shmem.c:2893 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0xa81/0xcb0 fs/read_write.c:590 ksys_write+0x1a0/0x2c0 fs/read_write.c:643 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fb707e7caef Code: 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 b9 80 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 48 89 44 24 08 e8 0c 81 02 00 48 RSP: 002b:00007fb7071fee80 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000001000000 RCX: 00007fb707e7caef RDX: 0000000001000000 RSI: 00007fb6fe400000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000005597 R10: 0000000000000002 R11: 0000000000000293 R12: 0000000000000003 R13: 00007fb7071fef80 R14: 00007fb7071fef40 R15: 00007fb6fe400000