INFO: task syz.2.976:10587 blocked for more than 143 seconds.
      Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.2.976       state:D stack:25128 pid:10587 tgid:10584 ppid:9346   task_flags:0x400140 flags:0x00004004
Call Trace:
 <TASK>
 __schedule+0x1798/0x4cc0
 schedule+0x165/0x360
 io_schedule+0x80/0xd0
 lock_metapage+0x1f3/0x400
 __get_metapage+0x497/0xde0
 ea_write+0x5e6/0xdd0
 __jfs_setxattr+0x908/0x1120
 __jfs_xattr_set+0xda/0x170
 __vfs_setxattr+0x43c/0x480
 __vfs_setxattr_noperm+0x12d/0x660
 vfs_setxattr+0x16b/0x2f0
 filename_setxattr+0x274/0x600
 path_setxattrat+0x364/0x3a0
 __x64_sys_setxattr+0xbc/0xe0
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f5fc458ebe9
RSP: 002b:00007f5fc536c038 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007f5fc47b6090 RCX: 00007f5fc458ebe9
RDX: 0000200000001400 RSI: 00002000000001c0 RDI: 0000200000000380
RBP: 00007f5fc4611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000835 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f5fc47b6128 R14: 00007f5fc47b6090 R15: 00007ffd6ebb2508
 </TASK>

Showing all locks held in the system:
1 lock held by ksoftirqd/1/23:
 #0: ffff888136639f98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140
4 locks held by kworker/u10:0/27:
 #0: ffff88810268e948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc9000060fbc0 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffff8881205ca0e0 (&type->s_umount_key#93){++++}-{4:4}, at: super_trylock_shared+0x20/0xf0
 #3: ffff8880354ec250 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x1ca/0x530
1 lock held by khungtaskd/34:
 #0: ffffffff8e139ee0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x2e/0x180
2 locks held by getty/5672:
 #0: ffff88810eb9d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70
 #1: ffffc900029062f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x43e/0x1400
2 locks held by kworker/0:4/5907:
 #0: ffff88801a480d48 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc90003d5fbc0 (free_ipc_work){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
2 locks held by syz.2.976/10585:
 #0: ffff8881205ca428 (sb_writers#33){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff8880354c97e8 (&type->i_mutex_dir_key#25/1){+.+.}-{4:4}, at: filename_create+0x1f8/0x3c0
4 locks held by syz.2.976/10587:
 #0: ffff8881205ca428 (sb_writers#33){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff8880354ec600 (&sb->s_type->i_mutex_key#41){+.+.}-{4:4}, at: vfs_setxattr+0x144/0x2f0
 #2: ffff8880354ec250 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: __jfs_xattr_set+0xb9/0x170
 #3: ffff8880354ec2e8 (&jfs_ip->xattr_sem){+.+.}-{4:4}, at: __jfs_setxattr+0xe1/0x1120
2 locks held by syz.2.976/10588:
 #0: ffff8881205ca428 (sb_writers#33){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90
 #1: ffff8880354c97e8 (&type->i_mutex_dir_key#25/1){+.+.}-{4:4}, at: filename_create+0x1f8/0x3c0
1 lock held by syz.9.2121/15385:
 #0: ffffffff8e13f978 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730

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

NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 34 Comm: khungtaskd Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #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+0x189/0x250
 nmi_cpu_backtrace+0x39e/0x3d0
 nmi_trigger_cpumask_backtrace+0x17a/0x300
 watchdog+0xf93/0xfe0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 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: 14263 Comm: kworker/u10:40 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:switch_ldt+0x8a/0x250
Code: f3 4b 89 04 3c e8 46 9d 59 00 49 81 c6 00 08 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 c9 07 bd 00 4d 8b 2e <4c> 8d b3 00 08 00 00 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c
RSP: 0018:ffffc90002a8f480 EFLAGS: 00000046
RAX: 1ffffffff1c484d0 RBX: ffff88801a478000 RCX: ffff88812a090000
RDX: 0000000000000000 RSI: ffff88801a478000 RDI: ffffffff8e241e80
RBP: ffffc90002a8f510 R08: ffff88801a4788b3 R09: 1ffff1100348f116
R10: dffffc0000000000 R11: ffffed100348f117 R12: 1ffff92000551e90
R13: 0000000000000000 R14: ffffffff8e242680 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881a3c24000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe1a8c87e20 CR3: 000000001a472000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 switch_mm_irqs_off+0x5b6/0x7a0
 use_temporary_mm+0x12f/0x220
 __text_poke+0x60f/0xa10
 smp_text_poke_batch_finish+0x90a/0x1130
 arch_jump_label_transform_apply+0x1c/0x30
 static_key_disable_cpuslocked+0xc5/0x1b0
 static_key_disable+0x1a/0x20
 toggle_allocation_gate+0x1a1/0x240
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
