============================= [ BUG: Invalid wait context ] 6.13.0-rc7-syzkaller-00019-gc45323b7560e #0 Not tainted ----------------------------- syz.3.185/6692 is trying to lock: ffff88807ffd8298 (&zone->lock){-.-.}-{3:3}, at: rmqueue_buddy mm/page_alloc.c:2909 [inline] ffff88807ffd8298 (&zone->lock){-.-.}-{3:3}, at: rmqueue mm/page_alloc.c:3082 [inline] ffff88807ffd8298 (&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} 2 locks held by syz.3.185/6692: #0: ffffffff8fedd408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8fedd408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:128 [inline] #0: ffffffff8fedd408 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_dellink+0x281/0xaa0 net/core/rtnetlink.c:3510 #1: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: spin_trylock include/linux/spinlock.h:361 [inline] #1: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue_pcplist mm/page_alloc.c:3032 [inline] #1: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: rmqueue mm/page_alloc.c:3076 [inline] #1: ffff88806a744c58 (&pcp->lock){+.+.}-{3:3}, at: get_page_from_freelist+0x350/0x2f80 mm/page_alloc.c:3473 stack backtrace: CPU: 1 UID: 0 PID: 6692 Comm: syz.3.185 Not tainted 6.13.0-rc7-syzkaller-00019-gc45323b7560e #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:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x878/0x3c40 kernel/locking/lockdep.c:5176 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849 __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+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269 stack_depot_save_flags+0x8aa/0x9c0 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:2526 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:1739 [inline] __hrtimer_run_queues+0x5fb/0xae0 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865 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 76 32 4a f6 48 89 df e8 ce b1 4a f6 f7 c5 00 02 00 00 75 23 9c 58 f6 c4 02 75 37 01 00 00 00 e8 c5 96 3b f6 65 8b 05 86 40 d7 74 85 c0 74 16 5b RSP: 0018:ffffc9000702e8e0 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffff88807ffd8280 RCX: 1ffffffff2dcac10 RDX: 0000000000000000 RSI: ffffffff8b6cd9e0 RDI: ffffffff8bd1ef20 RBP: 0000000000000202 R08: 0000000000000001 R09: fffffbfff2dca798 R10: ffffffff96e53cc7 R11: 0000000000000002 R12: 000000000000000f R13: dffffc0000000000 R14: ffff88806a744d08 R15: ffff88806a744c40 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+0x223/0x25b0 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x2c8/0x620 mm/mempolicy.c:2269 stack_depot_save_flags+0x8aa/0x9c0 lib/stackdepot.c:627 ref_tracker_free+0x11e/0x820 lib/ref_tracker.c:240 netdev_tracker_free include/linux/netdevice.h:4156 [inline] netdev_put include/linux/netdevice.h:4173 [inline] netdev_put include/linux/netdevice.h:4169 [inline] __netdev_adjacent_dev_remove+0x2e8/0x720 net/core/dev.c:7969 __netdev_adjacent_dev_unlink_lists net/core/dev.c:8003 [inline] __netdev_adjacent_dev_unlink_neighbour net/core/dev.c:8019 [inline] __netdev_upper_dev_unlink+0x140/0x430 net/core/dev.c:8169 netdev_upper_dev_unlink+0x84/0xb0 net/core/dev.c:8198 hsr_del_port+0x25c/0x390 net/hsr/hsr_slave.c:235 hsr_del_ports+0x57/0xb0 net/hsr/hsr_device.c:468 hsr_dellink+0x5a/0x90 net/hsr/hsr_netlink.c:134 rtnl_delete_link net/core/rtnetlink.c:3475 [inline] rtnl_dellink+0x3c3/0xaa0 net/core/rtnetlink.c:3518 rtnetlink_rcv_msg+0x95b/0xea0 net/core/rtnetlink.c:6922 netlink_rcv_skb+0x16b/0x440 net/netlink/af_netlink.c:2542 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x53c/0x7f0 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x8b8/0xd70 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg net/socket.c:726 [inline] ____sys_sendmsg+0xaaf/0xc90 net/socket.c:2583 ___sys_sendmsg+0x135/0x1e0 net/socket.c:2637 __sys_sendmsg+0x16e/0x220 net/socket.c:2669 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:0x7fc623d85d29 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:00007fc624c4a038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc623f76080 RCX: 00007fc623d85d29 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 000000000000000b RBP: 00007fc623e01b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc623f76080 R15: 00007ffe084f5038 ---------------- 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 76 32 4a f6 call 0xf64a3289 13: 48 89 df mov %rbx,%rdi 16: e8 ce b1 4a f6 call 0xf64ab1e9 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 c5 96 3b f6 call 0xf63b96f9 34: 65 8b 05 86 40 d7 74 mov %gs:0x74d74086(%rip),%eax # 0x74d740c1 3b: 85 c0 test %eax,%eax 3d: 74 16 je 0x55 3f: 5b pop %rbx