=============================
[ BUG: Invalid wait context ]
6.13.0-syzkaller-05252-gbc8198dc7ebc #0 Not tainted
-----------------------------
syz.0.615/8532 is trying to lock:
ffff88807ffd7298 (&zone->lock){..-.}-{3:3}, at: rmqueue_buddy mm/page_alloc.c:2909 [inline]
ffff88807ffd7298 (&zone->lock){..-.}-{3:3}, at: rmqueue mm/page_alloc.c:3082 [inline]
ffff88807ffd7298 (&zone->lock){..-.}-{3:3}, at: get_page_from_freelist+0xbbe/0x2f80 mm/page_alloc.c:3473
other info that might help us debug this:
context-{2:2}
8 locks held by syz.0.615/8532:
#0: ffff88806e818258 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline]
#0: ffff88806e818258 (sk_lock-AF_INET){+.+.}-{0:0}, at: mptcp_sendmsg+0x13f/0x1f20 net/mptcp/protocol.c:1825
#1: ffff88806f5f1bd8 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline]
#1: ffff88806f5f1bd8 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: __mptcp_push_pending+0x2ba/0x560 net/mptcp/protocol.c:1624
#2: ffff88806f5f1b58 (k-slock-AF_INET){+...}-{3:3}, at: spin_lock_bh include/linux/spinlock.h:356 [inline]
#2: ffff88806f5f1b58 (k-slock-AF_INET){+...}-{3:3}, at: __release_sock+0x28b/0x400 net/core/sock.c:3113
#3: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#3: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#3: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x73/0x2070 net/ipv4/ip_output.c:471
#4: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#4: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#4: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x364/0x2170 net/ipv4/ip_output.c:229
#5: ffffffff8e1bd720 (rcu_read_lock_bh){....}-{1:3}, at: local_bh_disable include/linux/bottom_half.h:20 [inline]
#5: ffffffff8e1bd720 (rcu_read_lock_bh){....}-{1:3}, at: rcu_read_lock_bh include/linux/rcupdate.h:901 [inline]
#5: ffffffff8e1bd720 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit+0x277/0x43e0 net/core/dev.c:4509
#6: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
#6: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline]
#6: ffffffff8e1bd780 (rcu_read_lock){....}-{1:3}, at: dev_queue_xmit_nit+0x43/0xbc0 net/core/dev.c:2441
#7: ffff88802b744ed8 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline]
#7: ffff88802b744ed8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline]
#7: ffff88802b744ed8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline]
#7: ffff88802b744ed8 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473
stack backtrace:
CPU: 3 UID: 0 PID: 8532 Comm: syz.0.615 Not tainted 6.13.0-syzkaller-05252-gbc8198dc7ebc #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
rmqueue_buddy mm/page_alloc.c:2909 [inline]
rmqueue mm/page_alloc.c:3082 [inline]
get_page_from_freelist+0xbbe/0x2f80 mm/page_alloc.c:3473
__alloc_pages_noprof+0x221/0x2470 mm/page_alloc.c:4753
alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269
stack_depot_save_flags+0x8e0/0x9e0 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
__run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1223 [inline]
run_posix_cpu_timers+0x69f/0x7d0 kernel/time/posix-cpu-timers.c:1422
update_process_times+0x1a1/0x2d0 kernel/time/timer.c:2522
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+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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x80 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 86 b8 4d f6 48 89 df e8 ce 37 4e f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 a5 17 3f f6 65 8b 05 06 46 db 74 85 c0 74 16 5b
RSP: 0018:ffffc900263ddff8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff88807ffd7280 RCX: 1ffffffff2dc4c10
RDX: 0000000000000000 RSI: ffffffff8b6ccfe0 RDI: ffffffff8bd26c80
RBP: 0000000000000202 R08: 0000000000000001 R09: fffffbfff2dc4798
R10: ffffffff96e23cc7 R11: dffffc0000000000 R12: 000000000000000f
R13: dffffc0000000000 R14: ffff88802b744f88 R15: ffff88802b744ec0
spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
rmqueue_bulk mm/page_alloc.c:2328 [inline]
__rmqueue_pcplist+0x5b1/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+0x221/0x2470 mm/page_alloc.c:4753
alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269
stack_depot_save_flags+0x8e0/0x9e0 lib/stackdepot.c:627
save_stack+0x16f/0x1f0 mm/page_owner.c:157
__set_page_owner+0x8f/0x790 mm/page_owner.c:320
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+0x8e0/0x9e0 lib/stackdepot.c:627
kasan_save_stack+0x42/0x60 mm/kasan/common.c:48
kasan_save_track+0x14/0x30 mm/kasan/common.c:68
unpoison_slab_object mm/kasan/common.c:319 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:345
kasan_slab_alloc include/linux/kasan.h:250 [inline]
slab_post_alloc_hook mm/slub.c:4119 [inline]
slab_alloc_node mm/slub.c:4168 [inline]
kmem_cache_alloc_noprof+0x1c8/0x3b0 mm/slub.c:4175
skb_clone+0x190/0x3f0 net/core/skbuff.c:2084
packet_rcv+0x60d/0x15a0 net/packet/af_packet.c:2218
deliver_skb net/core/dev.c:2384 [inline]
dev_queue_xmit_nit+0x373/0xbc0 net/core/dev.c:2454
xmit_one net/core/dev.c:3731 [inline]
dev_hard_start_xmit+0x283/0x7b0 net/core/dev.c:3751
sch_direct_xmit+0x1ae/0xc30 net/sched/sch_generic.c:343
qdisc_restart net/sched/sch_generic.c:408 [inline]
__qdisc_run+0x53f/0x1a10 net/sched/sch_generic.c:416
__dev_xmit_skb net/core/dev.c:4043 [inline]
__dev_queue_xmit+0x2aa4/0x43e0 net/core/dev.c:4550
dev_queue_xmit include/linux/netdevice.h:3305 [inline]
neigh_hh_output include/net/neighbour.h:523 [inline]
neigh_output include/net/neighbour.h:537 [inline]
ip_finish_output2+0xc3b/0x2170 net/ipv4/ip_output.c:236
__ip_finish_output net/ipv4/ip_output.c:314 [inline]
__ip_finish_output+0x49e/0x950 net/ipv4/ip_output.c:296
ip_finish_output+0x35/0x380 net/ipv4/ip_output.c:324
NF_HOOK_COND include/linux/netfilter.h:303 [inline]
ip_output+0x13b/0x2a0 net/ipv4/ip_output.c:434
dst_output include/net/dst.h:459 [inline]
ip_local_out net/ipv4/ip_output.c:130 [inline]
__ip_queue_xmit+0x19e0/0x2070 net/ipv4/ip_output.c:528
__tcp_transmit_skb+0x2b27/0x3df0 net/ipv4/tcp_output.c:1468
__tcp_send_ack.part.0+0x390/0x6f0 net/ipv4/tcp_output.c:4272
__tcp_send_ack net/ipv4/tcp_output.c:4278 [inline]
tcp_send_ack net/ipv4/tcp_output.c:4278 [inline]
tcp_release_cb+0x428/0x4f0 net/ipv4/tcp_output.c:1169
tcp_release_cb_override+0x121/0x190 net/mptcp/subflow.c:2096
release_sock+0x1cd/0x220 net/core/sock.c:3663
__mptcp_push_pending+0x400/0x560 net/mptcp/protocol.c:1644
mptcp_sendmsg+0xce5/0x1f20 net/mptcp/protocol.c:1922
inet_sendmsg+0x119/0x140 net/ipv4/af_inet.c:851
sock_sendmsg_nosec net/socket.c:713 [inline]
__sock_sendmsg net/socket.c:728 [inline]
__sys_sendto+0x42a/0x4f0 net/socket.c:2182
__do_sys_sendto net/socket.c:2189 [inline]
__se_sys_sendto net/socket.c:2185 [inline]
__ia32_sys_sendto+0xdd/0x1b0 net/socket.c:2185
do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline]
__do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386
do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411
entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf7f51579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000f507655c EFLAGS: 00000296 ORIG_RAX: 0000000000000171
RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00000000200002c0
RDX: 0000000000300000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000296 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
----------------
Code disassembly (best guess):
0: f5 cmc
1: 53 push %rbx
2: 48 8b 74 24 10 mov 0x10(%rsp),%rsi
7: 48 89 fb mov %rdi,%rbx
a: 48 83 c7 18 add $0x18,%rdi
e: e8 86 b8 4d f6 call 0xf64db899
13: 48 89 df mov %rbx,%rdi
16: e8 ce 37 4e f6 call 0xf64e37e9
1b: f7 c5 00 02 00 00 test $0x200,%ebp
21: 75 23 jne 0x46
23: 9c pushf
24: 58 pop %rax
25: f6 c4 02 test $0x2,%ah
28: 75 37 jne 0x61
* 2a: bf 01 00 00 00 mov $0x1,%edi <-- trapping instruction
2f: e8 a5 17 3f f6 call 0xf63f17d9
34: 65 8b 05 06 46 db 74 mov %gs:0x74db4606(%rip),%eax # 0x74db4641
3b: 85 c0 test %eax,%eax
3d: 74 16 je 0x55
3f: 5b pop %rbx