============================= [ BUG: Invalid wait context ] 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 Not tainted ----------------------------- sshd/5912 is trying to lock: ffffffff8e3a8538 (stack_list_lock){-.-.}-{3:3}, at: add_stack_record_to_list mm/page_owner.c:182 [inline] ffffffff8e3a8538 (stack_list_lock){-.-.}-{3:3}, at: inc_stack_record_count mm/page_owner.c:214 [inline] ffffffff8e3a8538 (stack_list_lock){-.-.}-{3:3}, at: __set_page_owner+0x3ea/0x560 mm/page_owner.c:329 other info that might help us debug this: context-{2:2} 1 lock held by sshd/5912: #0: ffff88806a83ec18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:598 stack backtrace: CPU: 2 UID: 0 PID: 5912 Comm: sshd Not tainted 6.13.0-syzkaller-02526-gc4b9570cfb63 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4828 [inline] check_wait_context kernel/locking/lockdep.c:4900 [inline] __lock_acquire+0x878/0x3c40 kernel/locking/lockdep.c:5178 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5851 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 add_stack_record_to_list mm/page_owner.c:182 [inline] inc_stack_record_count mm/page_owner.c:214 [inline] __set_page_owner+0x3ea/0x560 mm/page_owner.c:329 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3476 __alloc_pages_noprof+0x221/0x2470 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269 stack_depot_save_flags+0x8aa/0x9c0 lib/stackdepot.c:627 kasan_save_stack+0x42/0x60 mm/kasan/common.c:48 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:544 task_work_add+0xc0/0x3b0 kernel/task_work.c:77 task_tick_numa kernel/sched/fair.c:3614 [inline] task_tick_fair+0x524/0x8e0 kernel/sched/fair.c:13074 sched_tick+0x1dd/0x4f0 kernel/sched/core.c:5656 update_process_times+0x19c/0x2d0 kernel/time/timer.c:2520 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x376/0x530 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1738 [inline] __hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1802 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1864 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x52/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0033:0x555f7f5964ba Code: 00 00 00 48 89 54 24 58 31 d2 89 74 24 28 8b 71 08 89 7c 24 2c 8b 79 0c 89 74 24 30 89 7c 24 34 48 83 f8 0f 0f 86 50 02 00 00 <45> 8b 20 49 8b 30 48 83 e8 10 49 83 c0 10 49 8b 48 f4 41 8b 78 fc RSP: 002b:00007ffde80dda70 EFLAGS: 00000212 RAX: 00000000000071c4 RBX: 00000000033d661c RCX: 00043b54e42e2f57 RDX: 000000003c01065b RSI: 00058c0fc60e9ea8 RDI: 00000000042609e0 RBP: 0000000000bf4c3c R08: 0000555f90095a74 R09: 00007ffde80ddb58 R10: 0000000001c8af8e R11: 0000000002ce8ddf R12: 00000000364fd80d R13: 0000000003b59d01 R14: 00238c3596f1634a R15: 004c8df32339238c