OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
include
/
linux
/
sched
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:23 AM
rwxr-xr-x
📄
autogroup.h
1.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
clock.h
2.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
coredump.h
2.75 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cpufreq.h
887 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
cputime.h
5.13 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
deadline.h
597 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
debug.h
1.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hotplug.h
578 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
idle.h
1.77 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
init.h
240 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
isolation.h
1.33 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
jobctl.h
1.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
loadavg.h
1.17 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mm.h
7.63 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
nohz.h
1.22 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
numa_balancing.h
1.26 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
prio.h
1.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rt.h
1.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
17.79 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
smt.h
415 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
stat.h
1.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sysctl.h
2.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
task.h
3.9 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
task_stack.h
3.03 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
topology.h
6.18 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
user.h
1.7 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
wake_q.h
1.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xacct.h
854 bytes
01/28/2018 09:20:33 PM
rw-r--r--
Editing: task_stack.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _LINUX_SCHED_TASK_STACK_H #define _LINUX_SCHED_TASK_STACK_H /* * task->stack (kernel stack) handling interfaces: */ #include <linux/sched.h> #include <linux/magic.h> #ifdef CONFIG_THREAD_INFO_IN_TASK /* * When accessing the stack of a non-current task that might exit, use * try_get_task_stack() instead. task_stack_page will return a pointer * that could get freed out from under you. */ static inline void *task_stack_page(const struct task_struct *task) { return task->stack; } #define setup_thread_stack(new,old) do { } while(0) static inline unsigned long *end_of_stack(const struct task_struct *task) { #ifdef CONFIG_STACK_GROWSUP return (unsigned long *)((unsigned long)task->stack + THREAD_SIZE) - 1; #else return task->stack; #endif } #elif !defined(__HAVE_THREAD_FUNCTIONS) #define task_stack_page(task) ((void *)(task)->stack) static inline void setup_thread_stack(struct task_struct *p, struct task_struct *org) { *task_thread_info(p) = *task_thread_info(org); task_thread_info(p)->task = p; } /* * Return the address of the last usable long on the stack. * * When the stack grows down, this is just above the thread * info struct. Going any lower will corrupt the threadinfo. * * When the stack grows up, this is the highest address. * Beyond that position, we corrupt data on the next page. */ static inline unsigned long *end_of_stack(struct task_struct *p) { #ifdef CONFIG_STACK_GROWSUP return (unsigned long *)((unsigned long)task_thread_info(p) + THREAD_SIZE) - 1; #else return (unsigned long *)(task_thread_info(p) + 1); #endif } #endif #ifdef CONFIG_THREAD_INFO_IN_TASK static inline void *try_get_task_stack(struct task_struct *tsk) { return atomic_inc_not_zero(&tsk->stack_refcount) ? task_stack_page(tsk) : NULL; } extern void put_task_stack(struct task_struct *tsk); #else static inline void *try_get_task_stack(struct task_struct *tsk) { return task_stack_page(tsk); } static inline void put_task_stack(struct task_struct *tsk) {} #endif #define task_stack_end_corrupted(task) \ (*(end_of_stack(task)) != STACK_END_MAGIC) static inline int object_is_on_stack(void *obj) { void *stack = task_stack_page(current); return (obj >= stack) && (obj < (stack + THREAD_SIZE)); } extern void thread_stack_cache_init(void); #ifdef CONFIG_DEBUG_STACK_USAGE static inline unsigned long stack_not_used(struct task_struct *p) { unsigned long *n = end_of_stack(p); do { /* Skip over canary */ # ifdef CONFIG_STACK_GROWSUP n--; # else n++; # endif } while (!*n); # ifdef CONFIG_STACK_GROWSUP return (unsigned long)end_of_stack(p) - (unsigned long)n; # else return (unsigned long)n - (unsigned long)end_of_stack(p); # endif } #endif extern void set_task_stack_end_magic(struct task_struct *tsk); #ifndef __HAVE_ARCH_KSTACK_END static inline int kstack_end(void *addr) { /* Reliable end of stack detection: * Some APM bios versions misalign the stack */ return !(((unsigned long)addr+sizeof(void*)-1) & (THREAD_SIZE-sizeof(void*))); } #endif #endif /* _LINUX_SCHED_TASK_STACK_H */