============================= [ BUG: Invalid wait context ] 6.13.0-rc3-syzkaller-gc5d2bac978c5 #0 Not tainted ----------------------------- syz.3.800/6860 is trying to lock: ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_bulk mm/page_alloc.c:2307 [inline] ffff88813fffc298 (&zone->lock){-.-.}-{3:3}, at: __rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3001 other info that might help us debug this: context-{5:5} 6 locks held by syz.3.800/6860: #0: ffff88805a314a08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:818 [inline] #0: ffff88805a314a08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: __sock_release net/socket.c:639 [inline] #0: ffff88805a314a08 (&sb->s_type->i_mutex_key#10){+.+.}-{4:4}, at: sock_close+0x90/0x240 net/socket.c:1408 #1: ffffffff8fd136b0 ((netlink_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x53/0x90 kernel/notifier.c:379 #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: net_generic include/net/netns/generic.h:45 [inline] #2: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: nfnl_queue_pernet+0x23/0x240 net/netfilter/nfnetlink_queue.c:95 #3: ffff8880b873e8d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:598 #4: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #4: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #4: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: do_perf_sw_event kernel/events/core.c:10135 [inline] #4: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: ___perf_sw_event+0x1bd/0x730 kernel/events/core.c:10169 #5: ffff8880b8744958 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #5: ffff8880b8744958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3030 [inline] #5: ffff8880b8744958 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3074 [inline] #5: ffff8880b8744958 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x7d3/0x37a0 mm/page_alloc.c:3471 stack backtrace: CPU: 1 UID: 0 PID: 6860 Comm: syz.3.800 Not tainted 6.13.0-rc3-syzkaller-gc5d2bac978c5 #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:2307 [inline] __rmqueue_pcplist+0x4a2/0x2a90 mm/page_alloc.c:3001 rmqueue_pcplist mm/page_alloc.c:3043 [inline] rmqueue mm/page_alloc.c:3074 [inline] get_page_from_freelist+0x886/0x37a0 mm/page_alloc.c:3471 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751 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 __perf_event_overflow+0x78d/0xdc0 kernel/events/core.c:9901 perf_swevent_event+0x317/0x680 do_perf_sw_event kernel/events/core.c:10142 [inline] ___perf_sw_event+0x4f3/0x730 kernel/events/core.c:10169 __perf_sw_event_sched include/linux/perf_event.h:1497 [inline] perf_event_task_sched_out include/linux/perf_event.h:1530 [inline] prepare_task_switch kernel/sched/core.c:5173 [inline] context_switch kernel/sched/core.c:5316 [inline] __schedule+0x23df/0x4c30 kernel/sched/core.c:6756 preempt_schedule_notrace+0x100/0x140 kernel/sched/core.c:7028 preempt_schedule_notrace_thunk+0x1a/0x30 arch/x86/entry/thunk.S:13 class_preempt_notrace_destructor include/linux/preempt.h:481 [inline] trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x9f0/0xa30 kernel/locking/lockdep.c:5860 rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock include/linux/rcupdate.h:880 [inline] net_generic include/net/netns/generic.h:48 [inline] nfnl_queue_pernet+0x1ea/0x240 net/netfilter/nfnetlink_queue.c:95 nfqnl_rcv_nl_event+0x46/0x2c0 net/netfilter/nfnetlink_queue.c:1211 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85 blocking_notifier_call_chain+0x69/0x90 kernel/notifier.c:380 netlink_release+0x11a6/0x1bf0 net/netlink/af_netlink.c:764 __sock_release net/socket.c:640 [inline] sock_close+0xbc/0x240 net/socket.c:1408 __fput+0x23c/0xa50 fs/file_table.c:450 task_work_run+0x24f/0x310 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x13f/0x340 kernel/entry/common.c:218 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9303d85d29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc36f0af98 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000001e2ea RCX: 00007f9303d85d29 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f9303f75fac R08: 0000000000000001 R09: 00007ffc36f0b28f R10: 00007f9303c00000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f9303f75fa0 R14: 0000000000000003 R15: ffffffffffffffff