dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
47 lines
1.6 KiB
C
47 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_X86_SHSTK_H
|
|
#define _ASM_X86_SHSTK_H
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#include <linux/types.h>
|
|
|
|
struct task_struct;
|
|
struct ksignal;
|
|
|
|
#ifdef CONFIG_X86_USER_SHADOW_STACK
|
|
struct thread_shstk {
|
|
u64 base;
|
|
u64 size;
|
|
};
|
|
|
|
long shstk_prctl(struct task_struct *task, int option, unsigned long arg2);
|
|
void reset_thread_features(void);
|
|
unsigned long shstk_alloc_thread_stack(struct task_struct *p, u64 clone_flags,
|
|
unsigned long stack_size);
|
|
void shstk_free(struct task_struct *p);
|
|
int setup_signal_shadow_stack(struct ksignal *ksig);
|
|
int restore_signal_shadow_stack(void);
|
|
int shstk_update_last_frame(unsigned long val);
|
|
bool shstk_is_enabled(void);
|
|
int shstk_pop(u64 *val);
|
|
int shstk_push(u64 val);
|
|
#else
|
|
static inline long shstk_prctl(struct task_struct *task, int option,
|
|
unsigned long arg2) { return -EINVAL; }
|
|
static inline void reset_thread_features(void) {}
|
|
static inline unsigned long shstk_alloc_thread_stack(struct task_struct *p,
|
|
u64 clone_flags,
|
|
unsigned long stack_size) { return 0; }
|
|
static inline void shstk_free(struct task_struct *p) {}
|
|
static inline int setup_signal_shadow_stack(struct ksignal *ksig) { return 0; }
|
|
static inline int restore_signal_shadow_stack(void) { return 0; }
|
|
static inline int shstk_update_last_frame(unsigned long val) { return 0; }
|
|
static inline bool shstk_is_enabled(void) { return false; }
|
|
static inline int shstk_pop(u64 *val) { return -ENOTSUPP; }
|
|
static inline int shstk_push(u64 val) { return -ENOTSUPP; }
|
|
#endif /* CONFIG_X86_USER_SHADOW_STACK */
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* _ASM_X86_SHSTK_H */
|