============================= [ BUG: Invalid wait context ] 6.12.0-rc6-next-20241106-syzkaller #0 Not tainted ----------------------------- syz-executor/5832 is trying to lock: ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2328 [inline] ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022 other info that might help us debug this: context-{2:2} 2 locks held by syz-executor/5832: #0: ffff88803090a308 (&xt[i].mutex){+.+.}-{4:4}, at: xt_find_table_lock+0x4c/0x400 net/netfilter/x_tables.c:1243 #1: ffff8880b8744818 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #1: ffff8880b8744818 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3051 [inline] #1: ffff8880b8744818 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3095 [inline] #1: ffff8880b8744818 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7e2/0x3870 mm/page_alloc.c:3492 stack backtrace: CPU: 1 UID: 0 PID: 5832 Comm: syz-executor Not tainted 6.12.0-rc6-next-20241106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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:2328 [inline] __rmqueue_pcplist+0x4c6/0x2b70 mm/page_alloc.c:3022 rmqueue_pcplist mm/page_alloc.c:3064 [inline] rmqueue mm/page_alloc.c:3095 [inline] get_page_from_freelist+0x895/0x3870 mm/page_alloc.c:3492 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4771 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 stack_depot_save_flags+0x666/0x830 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 __run_posix_cpu_timers kernel/time/posix-cpu-timers.c:1219 [inline] run_posix_cpu_timers+0x6ac/0x810 kernel/time/posix-cpu-timers.c:1418 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:1691 [inline] __hrtimer_run_queues+0x551/0xd50 kernel/time/hrtimer.c:1755 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1817 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+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:unwind_next_frame+0xccc/0x22d0 arch/x86/kernel/unwind_orc.c:590 Code: 00 00 00 fc ff df 48 8b 44 24 30 80 3c 28 00 48 8b 5c 24 18 74 08 48 89 df e8 80 1c be 00 4c 89 33 48 8b 44 24 58 80 3c 28 00 <4c> 8b 6c 24 08 48 8b 5c 24 78 4c 8b 7c 24 50 74 08 48 89 df e8 5b RSP: 0018:ffffc90003f66f50 EFLAGS: 00000246 RAX: 1ffff920007ece0b RBX: ffffc90003f67068 RCX: 1ffff920007ece04 RDX: ffffffff9121f21e RSI: 0000000000000002 RDI: ffffc90003f67e08 RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffc90003f67110 R10: ffffc90003f67070 R11: ffffffff81817860 R12: ffffc90003f68000 R13: ffffc90003f67e08 R14: ffffffff897b5a71 R15: 1ffff920007ece06 arch_stack_walk+0x11c/0x150 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4283 [inline] __kmalloc_node_noprof+0x290/0x4d0 mm/slub.c:4289 kmalloc_node_noprof include/linux/slab.h:928 [inline] __vmalloc_area_node mm/vmalloc.c:3645 [inline] __vmalloc_node_range_noprof+0x561/0x1380 mm/vmalloc.c:3844 __vmalloc_node_noprof mm/vmalloc.c:3909 [inline] vzalloc_noprof+0x79/0x90 mm/vmalloc.c:3982 alloc_counters+0xd7/0x740 net/ipv4/netfilter/ip_tables.c:799 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:821 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1022 [inline] do_ipt_get_ctl+0xed1/0x1810 net/ipv4/netfilter/ip_tables.c:1668 nf_getsockopt+0x299/0x2c0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x222/0x2e0 net/ipv4/ip_sockglue.c:1777 tcp_getsockopt+0x163/0x1c0 net/ipv4/tcp.c:4671 do_sock_getsockopt+0x3c4/0x7e0 net/socket.c:2374 __sys_getsockopt net/socket.c:2403 [inline] __do_sys_getsockopt net/socket.c:2410 [inline] __se_sys_getsockopt net/socket.c:2407 [inline] __x64_sys_getsockopt+0x2a1/0x370 net/socket.c:2407 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:0x7fecedf8045a Code: ff c3 66 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb b8 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 c3 0f 1f 44 00 00 48 c7 c2 a8 ff ff ff f7 RSP: 002b:00007ffe7148fba8 EFLAGS: 00000212 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 00007ffe7148fc30 RCX: 00007fecedf8045a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00007ffe7148fbcc R09: 00007ffe7148ffe7 R10: 00007ffe7148fc30 R11: 0000000000000212 R12: 00007fecee10abc0 R13: 00007ffe7148fbcc R14: 0000000000000000 R15: 00007fecee10c000 ---------------- Code disassembly (best guess), 5 bytes skipped: 0: df 48 8b fisttps -0x75(%rax) 3: 44 24 30 rex.R and $0x30,%al 6: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) a: 48 8b 5c 24 18 mov 0x18(%rsp),%rbx f: 74 08 je 0x19 11: 48 89 df mov %rbx,%rdi 14: e8 80 1c be 00 call 0xbe1c99 19: 4c 89 33 mov %r14,(%rbx) 1c: 48 8b 44 24 58 mov 0x58(%rsp),%rax 21: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) * 25: 4c 8b 6c 24 08 mov 0x8(%rsp),%r13 <-- trapping instruction 2a: 48 8b 5c 24 78 mov 0x78(%rsp),%rbx 2f: 4c 8b 7c 24 50 mov 0x50(%rsp),%r15 34: 74 08 je 0x3e 36: 48 89 df mov %rbx,%rdi 39: e8 .byte 0xe8 3a: 5b pop %rbx