=============================
[ BUG: Invalid wait context ]
6.13.0-syzkaller #0 Not tainted
-----------------------------
sshd/5918 is trying to lock:
ffff88807ffd8298 (&zone->lock){..-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline]
ffff88807ffd8298 (&zone->lock){..-.}-{3:3}, at: __rmqueue_pcplist+0x6bb/0x1600 mm/page_alloc.c:3003
other info that might help us debug this:
context-{2:2}
3 locks held by sshd/5918:
#0: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#0: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#0: ffffffff8e1bb900 (rcu_read_lock){....}-{1:3}, at: lock_vma_under_rcu+0xe4/0x980 mm/memory.c:6272
#1: ffff88806a73ebd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:598
#2: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#2: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
#2: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
#2: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473
stack backtrace:
CPU: 1 UID: 0 PID: 5918 Comm: sshd Not tainted 6.13.0-syzkaller #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:4826 [inline]
check_wait_context kernel/locking/lockdep.c:4898 [inline]
__lock_acquire+0x878/0x3c40 kernel/locking/lockdep.c:5176
lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162
rmqueue_bulk mm/page_alloc.c:2309 [inline]
__rmqueue_pcplist+0x6bb/0x1600 mm/page_alloc.c:3003
rmqueue_pcplist mm/page_alloc.c:3045 [inline]
rmqueue mm/page_alloc.c:3076 [inline]
get_page_from_freelist+0x3d2/0x2f80 mm/page_alloc.c:3473
__alloc_pages_noprof+0x223/0x25b0 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:3611 [inline]
task_tick_fair+0x524/0x8e0 kernel/sched/fair.c:12996
sched_tick+0x1dd/0x4f0 kernel/sched/core.c:5652
update_process_times+0x19c/0x2d0 kernel/time/timer.c:2524
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:1739 [inline]
__hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1803
hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865
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+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__sanitizer_cov_trace_pc+0x41/0x70 kernel/kcov.c:217
Code: 00 48 8b 34 24 74 1d f6 c4 01 74 43 a9 00 00 0f 00 75 3c a9 00 00 f0 00 75 35 8b 82 1c 16 00 00 85 c0 74 2b 8b 82 f8 15 00 00 <83> f8 02 75 20 48 8b 8a 00 16 00 00 8b 92 fc 15 00 00 48 8b 01 48
RSP: 0000:ffffc90003e7fc80 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000006 RCX: ffffffff8b20cc33
RDX: ffff888035b94880 RSI: ffffffff8b20cbed RDI: 0000000000000006
RBP: ffff888029aa9638 R08: 0000000000000006 R09: 000055cd0ea7bfff
R10: 00007fb043cf1000 R11: 0000000000000000 R12: 000000000000000b
R13: 0000000000000006 R14: 00007fb043cf1000 R15: 000055cd0ea7bfff
mtree_range_walk+0x57d/0xbe0 lib/maple_tree.c:2796
mas_state_walk lib/maple_tree.c:3620 [inline]
mas_walk+0x4f9/0x910 lib/maple_tree.c:4947
lock_vma_under_rcu+0x2b5/0x980 mm/memory.c:6274
do_user_addr_fault+0x457/0x13f0 arch/x86/mm/fault.c:1329
handle_page_fault arch/x86/mm/fault.c:1481 [inline]
exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539
asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x55cd0ea28823
Code: 4c 89 ed 4c 89 e7 f3 aa eb 48 4c 89 e7 e8 95 48 f7 ff 48 89 c5 48 85 c0 74 38 48 89 c7 4c 89 ee 4d 39 f4 76 11 4c 89 f1 31 c0 a4 4c 89 e1 4c 29 f1 f3 aa eb 05 4c 89 e1 f3 a4 4c 89 ef 48 83
RSP: 002b:00007ffd017348e0 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000340000 RCX: 00000000002e3e10
RDX: 0000000000000002 RSI: 00007fb044032000 RDI: 00007fb043cf1000
RBP: 00007fb043c98010 R08: 00007fb043c98010 R09: 0000000000000000
R10: 0000000000000022 R11: 0000000000000246 R12: 0000000000340000
R13: 00007fb043fd9010 R14: 000000000033ce00 R15: 00007ffd01734a98
----------------
Code disassembly (best guess):
0: 00 48 8b add %cl,-0x75(%rax)
3: 34 24 xor $0x24,%al
5: 74 1d je 0x24
7: f6 c4 01 test $0x1,%ah
a: 74 43 je 0x4f
c: a9 00 00 0f 00 test $0xf0000,%eax
11: 75 3c jne 0x4f
13: a9 00 00 f0 00 test $0xf00000,%eax
18: 75 35 jne 0x4f
1a: 8b 82 1c 16 00 00 mov 0x161c(%rdx),%eax
20: 85 c0 test %eax,%eax
22: 74 2b je 0x4f
24: 8b 82 f8 15 00 00 mov 0x15f8(%rdx),%eax
* 2a: 83 f8 02 cmp $0x2,%eax <-- trapping instruction
2d: 75 20 jne 0x4f
2f: 48 8b 8a 00 16 00 00 mov 0x1600(%rdx),%rcx
36: 8b 92 fc 15 00 00 mov 0x15fc(%rdx),%edx
3c: 48 8b 01 mov (%rcx),%rax
3f: 48 rex.W