============================= [ BUG: Invalid wait context ] 6.13.0-syzkaller-07644-gc2da8b3f914f #0 Not tainted ----------------------------- sshd/5927 is trying to lock: ffff88807ffd7298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline] ffff88807ffd7298 (&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} 5 locks held by sshd/5927: #0: ffff888043e62898 (sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline] #0: ffff888043e62898 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x20/0x50 net/ipv4/tcp.c:1357 #1: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #1: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x73/0x2070 net/ipv4/ip_output.c:471 #2: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8e1bd600 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x364/0x2170 net/ipv4/ip_output.c:229 #3: ffff88802b63ecd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:606 [inline] #3: ffff88802b63ecd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x7e/0x130 kernel/sched/core.c:591 #4: ffff88802b644ed8 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #4: ffff88802b644ed8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline] #4: ffff88802b644ed8 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline] #4: ffff88802b644ed8 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473 stack backtrace: CPU: 2 UID: 0 PID: 5927 Comm: sshd Not tainted 6.13.0-syzkaller-07644-gc2da8b3f914f #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_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+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 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:5660 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: 0010:stack_access_ok+0x25/0x200 arch/x86/kernel/unwind_orc.c:389 Code: 90 90 90 90 90 48 b8 00 00 00 00 00 fc ff df 41 57 41 56 4c 8d 77 08 41 55 41 54 49 89 d4 4c 89 f2 55 48 c1 ea 03 48 89 f5 53 <48> 89 fb 48 83 ec 08 80 3c 02 00 0f 85 94 01 00 00 4c 8d 6b 10 4c RSP: 0018:ffffc90000548600 EFLAGS: 00000a02 RAX: dffffc0000000000 RBX: 0000000000000002 RCX: ffffffff90ff7dca RDX: 1ffff920000a90d6 RSI: ffffc900005489e0 RDI: ffffc900005486a8 RBP: ffffc900005489e0 R08: 0000000000000001 R09: ffffffff90ff7dce R10: ffffc900005486a8 R11: 0000000000011b7f R12: 0000000000000008 R13: ffffc900005486a8 R14: ffffc900005486b0 R15: ffffc900005489f0 deref_stack_reg arch/x86/kernel/unwind_orc.c:403 [inline] unwind_next_frame+0x15dd/0x20c0 arch/x86/kernel/unwind_orc.c:648 arch_stack_walk+0x95/0x100 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x95/0xd0 kernel/stacktrace.c:122 kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_mempool_unpoison_object+0x17f/0x1c0 mm/kasan/common.c:547 kasan_mempool_unpoison_object include/linux/kasan.h:388 [inline] napi_skb_cache_get+0x327/0x890 net/core/skbuff.c:365 __napi_build_skb net/core/skbuff.c:537 [inline] napi_alloc_skb+0x438/0xaf0 net/core/skbuff.c:860 e1000_alloc_rx_skb drivers/net/ethernet/intel/e1000/e1000_main.c:4116 [inline] e1000_copybreak drivers/net/ethernet/intel/e1000/e1000_main.c:4332 [inline] e1000_clean_rx_irq+0x678/0x1040 drivers/net/ethernet/intel/e1000/e1000_main.c:4384 e1000_clean+0x9d6/0x2700 drivers/net/ethernet/intel/e1000/e1000_main.c:3807 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:7106 napi_poll net/core/dev.c:7175 [inline] net_rx_action+0xa94/0x1010 net/core/dev.c:7297 handle_softirqs+0x213/0x8f0 kernel/softirq.c:561 do_softirq kernel/softirq.c:462 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:449 __local_bh_enable_ip+0x100/0x120 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+0x8b0/0x43e0 net/core/dev.c:4611 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_transmit_skb net/ipv4/tcp_output.c:1486 [inline] tcp_write_xmit+0x1852/0x8d10 net/ipv4/tcp_output.c:2829 tcp_sendmsg_locked+0x2b15/0x37c0 net/ipv4/tcp.c:1306 tcp_sendmsg+0x2e/0x50 net/ipv4/tcp.c:1358 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:851 sock_sendmsg_nosec net/socket.c:713 [inline] __sock_sendmsg net/socket.c:728 [inline] sock_write_iter+0x4ac/0x5b0 net/socket.c:1132 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:679 ksys_write+0x207/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4c4faffbf2 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:00007ffcc8331fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000008024 RCX: 00007f4c4faffbf2 RDX: 0000000000008024 RSI: 000055a6dd8a52d0 RDI: 0000000000000004 RBP: 000055a6dd853210 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000055a6b75e4aa4 R13: 0000000000000104 R14: 000055a6b75e53e8 R15: 00007ffcc8332018 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax c: fc ff df f: 41 57 push %r15 11: 41 56 push %r14 13: 4c 8d 77 08 lea 0x8(%rdi),%r14 17: 41 55 push %r13 19: 41 54 push %r12 1b: 49 89 d4 mov %rdx,%r12 1e: 4c 89 f2 mov %r14,%rdx 21: 55 push %rbp 22: 48 c1 ea 03 shr $0x3,%rdx 26: 48 89 f5 mov %rsi,%rbp 29: 53 push %rbx * 2a: 48 89 fb mov %rdi,%rbx <-- trapping instruction 2d: 48 83 ec 08 sub $0x8,%rsp 31: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 35: 0f 85 94 01 00 00 jne 0x1cf 3b: 4c 8d 6b 10 lea 0x10(%rbx),%r13 3f: 4c rex.WR