prctl: Add force disable speculation
For certain use cases it is desired to enforce mitigations so they cannot
be undone afterwards. That's important for loader stubs which want to
prevent a child from disabling the mitigation again. Will also be used for
seccomp(). The extra state preserving of the prctl state for SSB is a
preparatory step for EBPF dymanic speculation control.
Signed-off-by:
Thomas Gleixner <tglx@linutronix.de>
Showing
- Documentation/userspace-api/spec_ctrl.rst 21 additions, 13 deletionsDocumentation/userspace-api/spec_ctrl.rst
- arch/x86/kernel/cpu/bugs.c 25 additions, 10 deletionsarch/x86/kernel/cpu/bugs.c
- fs/proc/array.c 3 additions, 0 deletionsfs/proc/array.c
- include/linux/sched.h 9 additions, 1 deletioninclude/linux/sched.h
- include/uapi/linux/prctl.h 1 addition, 0 deletionsinclude/uapi/linux/prctl.h
Loading
Please register or sign in to comment