============================= [ BUG: Invalid wait context ] 6.9.0-syzkaller-10323-g8f6a15f095a6 #0 Not tainted ----------------------------- jbd2/sda1-8/4506 is trying to lock: ffff8880b953e7d8 (&jfs_ip->xattr_sem){.+.+}-{3:3}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 other info that might help us debug this: context-{4:4} 3 locks held by jbd2/sda1-8/4506: #0: ffff88802ef2a208 (&journal->j_wait_done_commit){....}-{2:2}, at: __wake_up_common_lock+0x25/0x1e0 kernel/sched/wait.c:105 #1: ffff88807b92a818 (&p->pi_lock){-.-.}-{2:2}, at: class_raw_spinlock_irqsave_constructor include/linux/spinlock.h:553 [inline] #1: ffff88807b92a818 (&p->pi_lock){-.-.}-{2:2}, at: try_to_wake_up+0xb0/0x1470 kernel/sched/core.c:4262 #2: ffff8880b943e7d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 stack backtrace: CPU: 0 PID: 4506 Comm: jbd2/sda1-8 Not tainted 6.9.0-syzkaller-10323-g8f6a15f095a6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_lock_invalid_wait_context kernel/locking/lockdep.c:4751 [inline] check_wait_context kernel/locking/lockdep.c:4821 [inline] __lock_acquire+0x1507/0x1fd0 kernel/locking/lockdep.c:5087 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5754 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378 raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:559 _double_lock_balance kernel/sched/sched.h:2715 [inline] double_lock_balance kernel/sched/sched.h:2760 [inline] find_lock_lowest_rq+0x1e1/0x670 kernel/sched/rt.c:1941 push_rt_task+0x13f/0x7e0 kernel/sched/rt.c:2074 push_rt_tasks kernel/sched/rt.c:2124 [inline] task_woken_rt+0x14c/0x220 kernel/sched/rt.c:2424 ttwu_do_activate+0x338/0x7e0 kernel/sched/core.c:3805 ttwu_queue kernel/sched/core.c:4057 [inline] try_to_wake_up+0x88b/0x1470 kernel/sched/core.c:4378 autoremove_wake_function+0x16/0x110 kernel/sched/wait.c:384 __wake_up_common kernel/sched/wait.c:89 [inline] __wake_up_common_lock+0x132/0x1e0 kernel/sched/wait.c:106 jbd2_journal_commit_transaction+0x5251/0x6760 fs/jbd2/commit.c:1147 kjournald2+0x463/0x850 fs/jbd2/journal.c:201 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244