=============================
[ BUG: Invalid wait context ]
6.13.0-rc4-syzkaller-00078-g059dd502b263 #0 Not tainted
-----------------------------
sshd/5327 is trying to lock:
ffff88805ffd7298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline]
ffff88805ffd7298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3003
other info that might help us debug this:
context-{2:2}
6 locks held by sshd/5327:
#0: ffff888044089bd8 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1623 [inline]
#0: ffff888044089bd8 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x22/0x50 net/ipv4/tcp.c:1357
#1: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#1: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#1: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x63/0x1ef0 net/ipv4/ip_output.c:471
#2: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#2: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#2: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x45f/0x1390 net/ipv4/ip_output.c:229
#3: ffff88801fc3c890 (bh_lock){+.-.}-{3:3}, at: local_lock_acquire include/linux/local_lock_internal.h:29 [inline]
#3: ffff88801fc3c890 (bh_lock){+.-.}-{3:3}, at: __napi_alloc_frag_align+0x17b/0x570 net/core/skbuff.c:317
#4: ffff88801fc3e8d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598
#5: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#5: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
#5: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
#5: ffff88801fc44ad8 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x37a0 mm/page_alloc.c:3473
stack backtrace:
CPU: 0 UID: 0 PID: 5327 Comm: sshd Not tainted 6.13.0-rc4-syzkaller-00078-g059dd502b263 #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+0x241/0x360 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+0x15a8/0x2100 kernel/locking/lockdep.c:5176
lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162
rmqueue_bulk mm/page_alloc.c:2309 [inline]
__rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3003
rmqueue_pcplist mm/page_alloc.c:3045 [inline]
rmqueue mm/page_alloc.c:3076 [inline]
get_page_from_freelist+0x886/0x37a0 mm/page_alloc.c:3473
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269
stack_depot_save_flags+0x72d/0x940 lib/stackdepot.c:627
kasan_save_stack+0x4f/0x60 mm/kasan/common.c:48
__kasan_record_aux_stack+0xac/0xc0 mm/kasan/generic.c:544
task_work_add+0xd9/0x490 kernel/task_work.c:77
task_tick_numa kernel/sched/fair.c:3616 [inline]
task_tick_fair+0x58c/0x7b0 kernel/sched/fair.c:13101
sched_tick+0x21e/0x660 kernel/sched/core.c:5652
update_process_times+0x276/0x2f0 kernel/time/timer.c:2524
tick_sched_handle kernel/time/tick-sched.c:276 [inline]
tick_nohz_handler+0x37c/0x500 kernel/time/tick-sched.c:297
__run_hrtimer kernel/time/hrtimer.c:1739 [inline]
__hrtimer_run_queues+0x551/0xd30 kernel/time/hrtimer.c:1803
hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1865
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
__sysvec_apic_timer_interrupt+0x110/0x420 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: 0010:orc_find arch/x86/kernel/unwind_orc.c:217 [inline]
RIP: 0010:unwind_next_frame+0x1cd/0x22d0 arch/x86/kernel/unwind_orc.c:494
Code: 0c 00 0f 45 d1 8d 42 ff 44 39 f0 0f 86 55 18 00 00 44 89 f0 48 8d 1c 85 3c 01 49 91 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 <4c> 89 e5 0f 85 97 1a 00 00 44 8b 23 44 89 f0 ff c0 48 8d 1c 85 3c
RSP: 0018:ffffc90000006d30 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffffffff914ce550 RCX: 00000000000b0001
RDX: 00000000000b0001 RSI: ffffffff81f9054a RDI: 0000000000000001
RBP: ffffc90000006e35 R08: 0000000000000004 R09: ffffc90000006ef0
R10: ffffc90000006e50 R11: ffffffff818b3a20 R12: dffffc0000000000
R13: ffffc90000006e00 R14: 000000000000f905 R15: ffffffff81f90549
arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25
stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122
save_stack+0xfb/0x1f0 mm/page_owner.c:156
__set_page_owner+0x92/0x800 mm/page_owner.c:320
set_page_owner include/linux/page_owner.h:32 [inline]
post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558
prep_new_page mm/page_alloc.c:1566 [inline]
get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3476
__alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753
__page_frag_cache_refill+0x3d/0xf0 mm/page_frag_cache.c:59
__page_frag_alloc_align+0x7a/0x4a0 mm/page_frag_cache.c:103
__napi_alloc_frag_align+0x258/0x570 net/core/skbuff.c:318
__netdev_alloc_frag_align+0x1bb/0x1f0 net/core/skbuff.c:339
netdev_alloc_frag include/linux/skbuff.h:3373 [inline]
e1000_alloc_frag drivers/net/ethernet/intel/e1000/e1000_main.c:2074 [inline]
e1000_alloc_rx_buffers+0x1a8/0xbf0 drivers/net/ethernet/intel/e1000/e1000_main.c:4584
e1000_clean_rx_irq+0x10a1/0x1290 drivers/net/ethernet/intel/e1000/e1000_main.c:4484
e1000_clean+0xf39/0x3f10 drivers/net/ethernet/intel/e1000/e1000_main.c:3807
__napi_poll+0xcb/0x490 net/core/dev.c:6883
napi_poll net/core/dev.c:6952 [inline]
net_rx_action+0x89b/0x1240 net/core/dev.c:7074
handle_softirqs+0x2d4/0x9b0 kernel/softirq.c:561
do_softirq+0x11b/0x1e0 kernel/softirq.c:462
__local_bh_enable_ip+0x1bb/0x200 kernel/softirq.c:389
local_bh_enable include/linux/bottom_half.h:33 [inline]
rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline]
__dev_queue_xmit+0x1775/0x3f50 net/core/dev.c:4461
neigh_output include/net/neighbour.h:539 [inline]
ip_finish_output2+0xe70/0x1390 net/ipv4/ip_output.c:236
ip_local_out net/ipv4/ip_output.c:130 [inline]
__ip_queue_xmit+0x12ca/0x1ef0 net/ipv4/ip_output.c:536
__tcp_transmit_skb+0x2582/0x3ba0 net/ipv4/tcp_output.c:1468
tcp_transmit_skb net/ipv4/tcp_output.c:1486 [inline]
tcp_write_xmit+0x17b5/0x6bf0 net/ipv4/tcp_output.c:2829
__tcp_push_pending_frames+0x9b/0x360 net/ipv4/tcp_output.c:3012
tcp_sendmsg_locked+0x44d6/0x4f30 net/ipv4/tcp.c:1326
tcp_sendmsg+0x30/0x50 net/ipv4/tcp.c:1358
sock_sendmsg_nosec net/socket.c:711 [inline]
__sock_sendmsg+0x1a6/0x270 net/socket.c:726
sock_write_iter+0x2d7/0x3f0 net/socket.c:1147
new_sync_write fs/read_write.c:586 [inline]
vfs_write+0xaeb/0xd30 fs/read_write.c:679
ksys_write+0x18f/0x2b0 fs/read_write.c:731
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6f65116bf2
Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc4b322948 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000000008c RCX: 00007f6f65116bf2
RDX: 000000000000008c RSI: 0000562be33ac950 RDI: 0000000000000004
RBP: 0000562be33ba210 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000562bb5f48aa4
R13: 0000000000000171 R14: 0000562bb5f493e8 R15: 00007ffc4b3229b8
----------------
Code disassembly (best guess):
0: 0c 00 or $0x0,%al
2: 0f 45 d1 cmovne %ecx,%edx
5: 8d 42 ff lea -0x1(%rdx),%eax
8: 44 39 f0 cmp %r14d,%eax
b: 0f 86 55 18 00 00 jbe 0x1866
11: 44 89 f0 mov %r14d,%eax
14: 48 8d 1c 85 3c 01 49 lea -0x6eb6fec4(,%rax,4),%rbx
1b: 91
1c: 48 89 d8 mov %rbx,%rax
1f: 48 c1 e8 03 shr $0x3,%rax
23: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax
28: 84 c0 test %al,%al
* 2a: 4c 89 e5 mov %r12,%rbp <-- trapping instruction
2d: 0f 85 97 1a 00 00 jne 0x1aca
33: 44 8b 23 mov (%rbx),%r12d
36: 44 89 f0 mov %r14d,%eax
39: ff c0 inc %eax
3b: 48 rex.W
3c: 8d .byte 0x8d
3d: 1c 85 sbb $0x85,%al
3f: 3c .byte 0x3c