/linux-6.6.21/arch/x86/kernel/ |
D | espfix_64.c | 129 void *stack_page; in init_espfix_ap() local 140 stack_page = READ_ONCE(espfix_pages[page]); in init_espfix_ap() 141 if (likely(stack_page)) in init_espfix_ap() 147 stack_page = READ_ONCE(espfix_pages[page]); in init_espfix_ap() 148 if (stack_page) in init_espfix_ap() 179 stack_page = page_address(alloc_pages_node(node, GFP_KERNEL, 0)); in init_espfix_ap() 184 pte = __pte(__pa(stack_page) | ((__PAGE_KERNEL_RO | _PAGE_ENC) & ptemask)); in init_espfix_ap() 189 WRITE_ONCE(espfix_pages[page], stack_page); in init_espfix_ap() 195 per_cpu(espfix_waddr, cpu) = (unsigned long)stack_page in init_espfix_ap()
|
/linux-6.6.21/arch/mips/kernel/ |
D | perf_event.c | 51 unsigned long stack_page = in perf_callchain_kernel() local 53 if (stack_page && sp >= stack_page && in perf_callchain_kernel() 54 sp <= stack_page + THREAD_SIZE - 32) in perf_callchain_kernel()
|
D | stacktrace.c | 46 unsigned long stack_page = in save_context_stack() local 48 if (stack_page && sp >= stack_page && in save_context_stack() 49 sp <= stack_page + THREAD_SIZE - 32) in save_context_stack()
|
D | process.c | 544 unsigned long notrace unwind_stack_by_address(unsigned long stack_page, in unwind_stack_by_address() argument 555 if (!stack_page) in unwind_stack_by_address() 562 low = stack_page; in unwind_stack_by_address() 564 high = stack_page + IRQ_STACK_START; in unwind_stack_by_address() 567 high = stack_page + THREAD_SIZE - 32; in unwind_stack_by_address() 639 unsigned long stack_page = 0; in unwind_stack() local 644 stack_page = (unsigned long)irq_stack[cpu]; in unwind_stack() 649 if (!stack_page) in unwind_stack() 650 stack_page = (unsigned long)task_stack_page(task); in unwind_stack() 652 return unwind_stack_by_address(stack_page, sp, pc, ra); in unwind_stack()
|
/linux-6.6.21/arch/hexagon/kernel/ |
D | process.c | 129 unsigned long stack_page; in __get_wchan() local 132 stack_page = (unsigned long)task_stack_page(p); in __get_wchan() 135 if (fp < (stack_page + sizeof(struct thread_info)) || in __get_wchan() 136 fp >= (THREAD_SIZE - 8 + stack_page)) in __get_wchan()
|
/linux-6.6.21/arch/powerpc/kernel/ |
D | process.c | 2146 unsigned long stack_page; in valid_irq_stack() local 2152 stack_page = (unsigned long)hardirq_ctx[cpu]; in valid_irq_stack() 2153 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack() 2156 stack_page = (unsigned long)softirq_ctx[cpu]; in valid_irq_stack() 2157 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack() 2167 unsigned long stack_page; in valid_emergency_stack() local 2181 stack_page = (unsigned long)paca_ptrs[cpu]->emergency_sp - THREAD_SIZE; in valid_emergency_stack() 2182 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_emergency_stack() 2186 stack_page = (unsigned long)paca_ptrs[cpu]->nmi_emergency_sp - THREAD_SIZE; in valid_emergency_stack() 2187 if (sp >= stack_page && sp <= stack_page + THREAD_SIZE - nbytes) in valid_emergency_stack() [all …]
|
D | stacktrace.c | 70 unsigned long stack_page = (unsigned long)task_stack_page(task); in arch_stack_walk_reliable() local 75 stack_end = stack_page + THREAD_SIZE; in arch_stack_walk_reliable() 88 if (sp < stack_page + sizeof(struct thread_struct) || in arch_stack_walk_reliable()
|
/linux-6.6.21/arch/m68k/kernel/ |
D | process.c | 270 unsigned long stack_page; in __get_wchan() local 273 stack_page = (unsigned long)task_stack_page(p); in __get_wchan() 276 if (fp < stack_page+sizeof(struct thread_info) || in __get_wchan() 277 fp >= 8184+stack_page) in __get_wchan()
|
/linux-6.6.21/arch/um/kernel/ |
D | process.c | 366 unsigned long stack_page, sp, ip; in __get_wchan() local 369 stack_page = (unsigned long) task_stack_page(p); in __get_wchan() 371 if (stack_page == 0) in __get_wchan() 379 if (sp < stack_page) in __get_wchan() 382 while (sp < stack_page + THREAD_SIZE) { in __get_wchan()
|
/linux-6.6.21/arch/nios2/kernel/ |
D | process.c | 224 unsigned long stack_page; in __get_wchan() local 227 stack_page = (unsigned long)p; in __get_wchan() 230 if (fp < stack_page+sizeof(struct task_struct) || in __get_wchan() 231 fp >= 8184+stack_page) /* ;dgt2;tmp */ in __get_wchan()
|
/linux-6.6.21/arch/arm/kernel/ |
D | process.c | 283 unsigned long stack_page; in __get_wchan() local 290 stack_page = (unsigned long)task_stack_page(p); in __get_wchan() 292 if (frame.sp < stack_page || in __get_wchan() 293 frame.sp >= stack_page + THREAD_SIZE || in __get_wchan()
|
/linux-6.6.21/arch/xtensa/kernel/ |
D | process.c | 379 unsigned long stack_page = (unsigned long) task_stack_page(p); in __get_wchan() local 386 if (sp < stack_page + sizeof(struct task_struct) || in __get_wchan() 387 sp >= (stack_page + THREAD_SIZE) || in __get_wchan()
|
/linux-6.6.21/arch/mips/include/asm/ |
D | stacktrace.h | 13 extern unsigned long unwind_stack_by_address(unsigned long stack_page,
|
/linux-6.6.21/arch/arm64/kvm/ |
D | arm.c | 2200 unsigned long stack_page; in init_hyp_mode() local 2202 stack_page = __get_free_page(GFP_KERNEL); in init_hyp_mode() 2203 if (!stack_page) { in init_hyp_mode() 2208 per_cpu(kvm_arm_hyp_stack_page, cpu) = stack_page; in init_hyp_mode() 2277 char *stack_page = (char *)per_cpu(kvm_arm_hyp_stack_page, cpu); in init_hyp_mode() local 2279 err = create_hyp_stack(__pa(stack_page), ¶ms->stack_hyp_va); in init_hyp_mode() 2291 params->stack_pa = __pa(stack_page); in init_hyp_mode()
|