============================= [ BUG: Invalid wait context ] 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Not tainted ----------------------------- syz.4.152/7434 is trying to lock: ffff0001fea8ef58 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2309 [inline] ffff0001fea8ef58 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x39c/0x30ec mm/page_alloc.c:3003 other info that might help us debug this: context-{2:2} 9 locks held by syz.4.152/7434: #0: ffff0000db57e808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff0000db57e808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff0000db57e808 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: sock_close+0x80/0x1e8 net/socket.c:1408 #1: ffff0000d4de8aa8 (&smc->clcsock_release_lock){+.+.}-{4:4}, at: smc_clcsock_release+0x84/0xec net/smc/smc_close.c:30 #2: ffff0000cba0a898 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1623 [inline] #2: ffff0000cba0a898 (k-sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_close+0x2c/0x144 net/ipv4/tcp.c:3220 #3: ffff80008fbf3160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x18/0x54 include/linux/rcupdate.h:336 #4: ffff80008fbf3160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x18/0x54 include/linux/rcupdate.h:336 #5: ffff80008fbf3160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x18/0x54 include/linux/rcupdate.h:336 #6: ffff80008fbf3160 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:336 #7: ffff0000d2356dd8 (k-slock-AF_INET6/1){+.-.}-{3:3}, at: tcp_v4_rcv+0x2364/0x2dbc net/ipv4/tcp_ipv4.c:2347 #8: ffff0001b37e8618 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #8: ffff0001b37e8618 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline] #8: ffff0001b37e8618 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline] #8: ffff0001b37e8618 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x6a0/0x42b8 mm/page_alloc.c:3473 stack backtrace: CPU: 0 UID: 0 PID: 7434 Comm: syz.4.152 Not tainted 6.13.0-rc7-syzkaller-g1950a0af2d55 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:466 (C) __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x2034/0x7904 kernel/locking/lockdep.c:5176 lock_acquire+0x23c/0x724 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x5c/0x7c kernel/locking/spinlock.c:162 rmqueue_bulk mm/page_alloc.c:2309 [inline] __rmqueue_pcplist+0x39c/0x30ec mm/page_alloc.c:3003 rmqueue_pcplist mm/page_alloc.c:3045 [inline] rmqueue mm/page_alloc.c:3076 [inline] get_page_from_freelist+0x778/0x42b8 mm/page_alloc.c:3473 __alloc_pages_noprof+0x220/0x6a8 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x33c/0x5f0 mm/mempolicy.c:2269 alloc_pages_noprof+0x168/0x200 mm/mempolicy.c:2348 stack_depot_save_flags+0x5b4/0x8b4 lib/stackdepot.c:627 kasan_save_stack+0x54/0x6c mm/kasan/common.c:48 __kasan_record_aux_stack+0xb8/0xd0 mm/kasan/generic.c:544 kasan_record_aux_stack+0x14/0x20 mm/kasan/generic.c:549 task_work_add+0xcc/0x484 kernel/task_work.c:77 __run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1223 [inline] run_posix_cpu_timers+0x694/0x8fc kernel/time/posix-cpu-timers.c:1422 update_process_times+0x3b0/0x558 kernel/time/timer.c:2526 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x324/0x478 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1739 [inline] __hrtimer_run_queues+0x44c/0xca4 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x2bc/0xb58 kernel/time/hrtimer.c:1865 timer_handler drivers/clocksource/arm_arch_timer.c:674 [inline] arch_timer_handler_virt+0x74/0x88 drivers/clocksource/arm_arch_timer.c:685 handle_percpu_devid_irq+0x174/0x308 kernel/irq/chip.c:942 generic_handle_irq_desc include/linux/irqdesc.h:173 [inline] handle_irq_desc kernel/irq/irqdesc.c:714 [inline] generic_handle_domain_irq+0x7c/0xc4 kernel/irq/irqdesc.c:770 __gic_handle_irq drivers/irqchip/irq-gic-v3.c:865 [inline] __gic_handle_irq_from_irqson drivers/irqchip/irq-gic-v3.c:916 [inline] gic_handle_irq+0x6c/0x190 drivers/irqchip/irq-gic-v3.c:960 do_interrupt_handler+0xe0/0x138 arch/arm64/kernel/entry-common.c:312 __el1_irq arch/arm64/kernel/entry-common.c:560 [inline] el1_interrupt+0x34/0x68 arch/arm64/kernel/entry-common.c:575 el1h_64_irq_handler+0x18/0x24 arch/arm64/kernel/entry-common.c:580 el1h_64_irq+0x6c/0x70 arch/arm64/kernel/entry.S:596 __daif_local_irq_restore arch/arm64/include/asm/irqflags.h:175 [inline] (P) arch_local_irq_restore arch/arm64/include/asm/irqflags.h:195 [inline] (P) __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] (P) _raw_spin_unlock_irqrestore+0x44/0x98 kernel/locking/spinlock.c:194 (P) __mod_timer+0xa98/0xcf4 kernel/time/timer.c:1185 mod_timer+0x2c/0x3c kernel/time/timer.c:1241 sk_reset_timer+0x30/0xec net/core/sock.c:3522 inet_csk_reset_keepalive_timer+0x64/0x78 net/ipv4/inet_connection_sock.c:810 tcp_rcv_state_process+0x249c/0x3b84 net/ipv4/tcp_input.c:6915 tcp_v4_do_rcv+0x71c/0xc44 net/ipv4/tcp_ipv4.c:1939 tcp_v4_rcv+0x2498/0x2dbc net/ipv4/tcp_ipv4.c:2351 ip_protocol_deliver_rcu+0x1f8/0x484 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x284/0x4f0 net/ipv4/ip_input.c:233 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_local_deliver+0x120/0x194 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:460 [inline] ip_rcv_finish+0x220/0x24c net/ipv4/ip_input.c:447 NF_HOOK+0x328/0x3d4 include/linux/netfilter.h:314 ip_rcv+0x7c/0x9c net/ipv4/ip_input.c:567 __netif_receive_skb_one_core net/core/dev.c:5704 [inline] __netif_receive_skb+0x18c/0x3c8 net/core/dev.c:5817 process_backlog+0x640/0x123c net/core/dev.c:6149 __napi_poll+0xb4/0x3fc net/core/dev.c:6902 napi_poll net/core/dev.c:6971 [inline] net_rx_action+0x6a8/0xf4c net/core/dev.c:7093 handle_softirqs+0x320/0xd34 kernel/softirq.c:561 __do_softirq+0x14/0x20 kernel/softirq.c:595 ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:81 call_on_irq_stack+0x24/0x4c arch/arm64/kernel/entry.S:891 do_softirq_own_stack+0x20/0x2c arch/arm64/kernel/irq.c:86 do_softirq+0x90/0xf8 kernel/softirq.c:462 __local_bh_enable_ip+0x288/0x44c kernel/softirq.c:389 local_bh_enable+0x28/0x34 include/linux/bottom_half.h:33 rcu_read_unlock_bh include/linux/rcupdate.h:919 [inline] __dev_queue_xmit+0x185c/0x35b4 net/core/dev.c:4493 dev_queue_xmit include/linux/netdevice.h:3168 [inline] neigh_hh_output include/net/neighbour.h:523 [inline] neigh_output include/net/neighbour.h:537 [inline] ip_finish_output2+0xdb4/0x139c net/ipv4/ip_output.c:236 __ip_finish_output+0x1b0/0x45c ip_finish_output+0x44/0x304 net/ipv4/ip_output.c:324 NF_HOOK_COND include/linux/netfilter.h:303 [inline] ip_output+0x1a8/0x21c net/ipv4/ip_output.c:434 dst_output include/net/dst.h:450 [inline] ip_local_out net/ipv4/ip_output.c:130 [inline] __ip_queue_xmit+0xe14/0x18e8 net/ipv4/ip_output.c:536 ip_queue_xmit+0x5c/0x78 net/ipv4/ip_output.c:550 __tcp_transmit_skb+0x1954/0x34c4 net/ipv4/tcp_output.c:1468 tcp_transmit_skb net/ipv4/tcp_output.c:1486 [inline] tcp_write_xmit+0x12d8/0x5390 net/ipv4/tcp_output.c:2829 __tcp_push_pending_frames net/ipv4/tcp_output.c:3012 [inline] tcp_send_fin+0x584/0xb08 net/ipv4/tcp_output.c:3618 __tcp_close+0xa94/0xf9c net/ipv4/tcp.c:3130 tcp_close+0x38/0x144 net/ipv4/tcp.c:3221 inet_release+0x160/0x1d0 net/ipv4/af_inet.c:435 __sock_release net/socket.c:640 [inline] sock_release+0x84/0x140 net/socket.c:668 smc_clcsock_release+0xc4/0xec net/smc/smc_close.c:34 __smc_release+0x55c/0x700 net/smc/af_smc.c:301 smc_release+0x260/0x528 net/smc/af_smc.c:344 __sock_release net/socket.c:640 [inline] sock_close+0xa4/0x1e8 net/socket.c:1408 __fput+0x1bc/0x75c fs/file_table.c:450 ____fput+0x20/0x30 fs/file_table.c:478 task_work_run+0x230/0x2e0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600