INFO: task syz.6.986:12435 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.986       state:D stack:24704 pid:12435 tgid:12434 ppid:9351   task_flags:0x400140 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 io_schedule+0x7f/0xd0
 folio_wait_bit_common+0x6d8/0xbc0
 release_metapage+0x103/0xac0
 __get_metapage+0x9a3/0xde0
 jfs_readdir+0x1ea0/0x3c10
 wrap_directory_iterator+0x96/0xe0
 iterate_dir+0x399/0x570
 __se_sys_getdents64+0xf1/0x280
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1eefb9c799
RSP: 002b:00007f1ef0998028 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9
RAX: ffffffffffffffda RBX: 00007f1eefe15fa0 RCX: 00007f1eefb9c799
RDX: 0000000000000091 RSI: 0000200000000440 RDI: 0000000000000005
RBP: 00007f1eefc32c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1eefe16038 R14: 00007f1eefe15fa0 R15: 00007ffd9bb78bc8
 </TASK>
INFO: task syz.6.986:12452 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.986       state:D stack:28832 pid:12452 tgid:12434 ppid:9351   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x899/0x1040
 down_write_nested+0x1c6/0x210
 filename_create+0x200/0x370
 filename_mkdirat+0xd2/0x510
 __se_sys_mkdirat+0x35/0x150
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1eefb9b607
RSP: 002b:00007f1ef0976e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f1ef0976ee0 RCX: 00007f1eefb9b607
RDX: 00000000000001ff RSI: 0000200000000000 RDI: 00000000ffffff9c
RBP: 0000200000000040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000200000000040 R11: 0000000000000246 R12: 0000200000000000
R13: 00007f1ef0976ea0 R14: 0000000000000000 R15: 0000200000006780
 </TASK>
INFO: task syz.6.986:12455 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.6.986       state:D stack:28808 pid:12455 tgid:12434 ppid:9351   task_flags:0x400040 flags:0x00080002
Call Trace:
 <TASK>
 __schedule+0x15dd/0x52d0
 schedule+0x164/0x360
 schedule_preempt_disabled+0x13/0x30
 rwsem_down_write_slowpath+0x899/0x1040
 down_write+0x1bc/0x200
 path_openat+0xb4c/0x3860
 do_file_open+0x23e/0x4a0
 do_sys_openat2+0x113/0x200
 __x64_sys_openat+0x138/0x170
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f1eefb9c799
RSP: 002b:00007f1eeddf6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f1eefe16180 RCX: 00007f1eefb9c799
RDX: 0000000000000441 RSI: 0000200000000100 RDI: ffffffffffffff9c
RBP: 00007f1eefc32c99 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000193 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f1eefe16218 R14: 00007f1eefe16180 R15: 00007ffd9bb78bc8
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/35:
 #0: ffffffff8e75e5e0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by kworker/u10:2/69:
 #0: ffff8881000ac148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0xa52/0x18c0
 #1: ffffc9000179fc40 ((reaper_work).work){+.+.}-{0:0}, at: process_scheduled_works+0xa8d/0x18c0
2 locks held by getty/5637:
 #0: ffff888113f580a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc9000356b2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x45c/0x13c0
2 locks held by syz.6.986/12435:
 #0: ffff8881153c4ef8 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x246/0x320
 #1: ffff888020203c68 (&type->i_mutex_dir_key#14){++++}-{4:4}, at: wrap_directory_iterator+0x5a/0xe0
2 locks held by syz.6.986/12452:
 #0: ffff888117af2420 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888020203c68 (&type->i_mutex_dir_key#14/1){+.+.}-{4:4}, at: filename_create+0x200/0x370
2 locks held by syz.6.986/12455:
 #0: ffff888117af2420 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff888020203c68 (&type->i_mutex_dir_key#14){++++}-{4:4}, at: path_openat+0xb4c/0x3860
2 locks held by syz-executor/15052:
 #0: ffff8881ba0380e0 (&type->s_umount_key#32){++++}-{4:4}, at: deactivate_super+0xa9/0xe0
 #1: ffffffff8e764740 (rcu_state.barrier_mutex){+.+.}-{4:4}, at: rcu_barrier+0x4c/0x580
4 locks held by syz.9.1620/16264:
 #0: ffffffff8e75e5e0 (rcu_read_lock){....}-{1:3}, at: is_bpf_text_address+0x26/0x2b0
 #1: ffff88823c624588 (psi_seq){-.-.}-{0:0}, at: psi_task_switch+0x53/0x880
 #2: ffffffff8e75e5e0 (rcu_read_lock){....}-{1:3}, at: prepend_path+0x4d/0x830
 #3: ffff8881b62de610 (sb_internal#2){.+.+}-{0:0}, at: xfs_trans_alloc+0xd7/0x9b0
1 lock held by syz.9.1620/16276:

=============================================

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 35 Comm: khungtaskd Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150
 nmi_cpu_backtrace+0x274/0x2d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 sys_info+0x135/0x170
 watchdog+0xfd9/0x1030
 kthread+0x388/0x470
 ret_from_fork+0x51e/0xb90
 ret_from_fork_asm+0x1a/0x30
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 16276 Comm: syz.9.1620 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:memcg1_account_kmem+0x0/0x30
Code: 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 31 c0 e9 15 d7 79 09 cc 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <0f> 1f 40 d6 eb 06 c3 cc cc cc cc cc 48 81 c7 c0 09 00 00 85 f6 7e
RSP: 0018:ffffc9000770f3c8 EFLAGS: 00000082
RAX: 0000000080000001 RBX: ffff888175195100 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff888175195100
RBP: 0000000000000000 R08: ffffffff9011b1b7 R09: 1ffffffff2023636
R10: dffffc0000000000 R11: fffffbfff2023637 R12: 0000000000000005
R13: ffff88823c63c370 R14: 0000000000000001 R15: 00000000000002c8
FS:  00007fd77f5d56c0(0000) GS:ffff8882a945d000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd777007c00 CR3: 00000001a6bc8000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 obj_cgroup_charge_pages+0x3f/0xa0
 obj_cgroup_charge_account+0xcf/0x650
 __memcg_slab_post_alloc_hook+0x5f8/0xa80
 kmem_cache_alloc_lru_noprof+0x346/0x640
 xas_create+0x64f/0x1b90
 xas_store+0x95/0x1880
 shmem_add_to_page_cache+0x8df/0xd40
 shmem_alloc_and_add_folio+0x869/0xf80
 shmem_get_folio_gfp+0x5a9/0x1670
 shmem_write_begin+0x16c/0x330
 generic_perform_write+0x2e2/0x8f0
 shmem_file_write_iter+0xf8/0x120
 vfs_write+0x61d/0xb90
 ksys_write+0x150/0x270
 do_syscall_64+0x14d/0xf80
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fd78135cfce
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007fd77f5d4da8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd77f5d56c0 RCX: 00007fd78135cfce
RDX: 0000000000008000 RSI: 00007fd777000000 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007fd77f5d4ee0 R14: 00007fd77f5d4ea0 R15: 00007fd777000000
 </TASK>
